# \#regression

**URL:** https://discourse.julialang.org/tag/regression/204.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Pluto fails to precompile on v1.13](https://discourse.julialang.org/t/pluto-fails-to-precompile-on-v1-13/139450)

<div class="topic-metadata">

**Author:** [@lazylavenders](https://discourse.julialang.org/u/lazylavenders)\
**Replies:** 13\
**Last updated:** [September 16, 2026, 11:16am UTC](https://discourse.julialang.org/t/pluto-fails-to-precompile-on-v1-13/139450 "2026-09-16T11:16:25Z")

</div>

I recently upgraded to Julia v1.13 and was pleasantly surprised by how quickly packages downloaded. However, Pluto fails to precompile on my machine, which didn’t used to happen on v1.12.7. It appeared that someone else …

---

## [Proposal for TuringRegressions.jl - Bayesian regression model alternative to TuringGLM.jl](https://discourse.julialang.org/t/proposal-for-turingregressions-jl-bayesian-regression-model-alternative-to-turingglm-jl/138815)

<div class="topic-metadata">

**Author:** [@jalster](https://discourse.julialang.org/u/jalster)\
**Replies:** 7\
**Last updated:** [August 22, 2026, 12:10pm UTC](https://discourse.julialang.org/t/proposal-for-turingregressions-jl-bayesian-regression-model-alternative-to-turingglm-jl/138815 "2026-08-22T12:10:35Z")

</div>

Hi everyone, I would like to propose TuringRegressions.jl - a more fully featured alternative to TuringGLM.jl offering much more of what brms does in R, most notably: correlated random effect slopes, i.e. full support…

---

## [\[ANN\] LinRegOutliers: a Julia package for detecting outliers in linear regression](https://discourse.julialang.org/t/ann-linregoutliers-a-julia-package-for-detecting-outliers-in-linear-regression/47280)

<div class="topic-metadata">

**Author:** [@jbytecode](https://discourse.julialang.org/u/jbytecode)\
**Replies:** 24\
**Last updated:** [June 18, 2026, 7:50pm UTC](https://discourse.julialang.org/t/ann-linregoutliers-a-julia-package-for-detecting-outliers-in-linear-regression/47280 "2026-06-18T19:50:20Z")

</div>

Hi there, This is an open invitation for the community. LinRegOutliers is a Julia package for detecting outliers in linear regression. In its current state, the package contains some pioneering algorithms that have take…

---

## [Quantile Random Forest in Julia?](https://discourse.julialang.org/t/quantile-random-forest-in-julia/133383)

<div class="topic-metadata">

**Author:** [@allixender](https://discourse.julialang.org/u/allixender)\
**Replies:** 1\
**Last updated:** [November 12, 2025, 4:42am UTC](https://discourse.julialang.org/t/quantile-random-forest-in-julia/133383 "2025-11-12T04:42:11Z")

</div>

Hi there, I have played a bit with DecisionTree.jl and MJL.jl. Now I would like to get some uncertainty quantification for my RandomForest regressions. I have seen that Quantile Random Forest is an increasingly accepte…

---

## [Adding base level when interacting categorical variables](https://discourse.julialang.org/t/adding-base-level-when-interacting-categorical-variables/132796)

<div class="topic-metadata">

**Author:** [@miguelborrero](https://discourse.julialang.org/u/miguelborrero)\
**Replies:** 0\
**Last updated:** [September 30, 2025, 11:00pm UTC](https://discourse.julialang.org/t/adding-base-level-when-interacting-categorical-variables/132796 "2025-09-30T23:00:24Z")

</div>

High level problem: reg from FixedEffectModels seem to ignore contrasts for a categorical variable if I interact this variable with another one. MWE df = DataFrame(y = rand(100), x1 = categorical(rand(1:3, 100)), x2 =…

---

## [LinkFunctions.jl: help with package development and registration](https://discourse.julialang.org/t/linkfunctions-jl-help-with-package-development-and-registration/132296)

<div class="topic-metadata">

**Author:** [@giovannitinervia9](https://discourse.julialang.org/u/giovannitinervia9)\
**Replies:** 2\
**Last updated:** [September 11, 2025, 5:12pm UTC](https://discourse.julialang.org/t/linkfunctions-jl-help-with-package-development-and-registration/132296 "2025-09-11T17:12:43Z")

</div>

Hi everyone, I’m a new Julia user currently learning the language, and I’m interested in developing packages for distribution regression model fitting. For this work, I need to use link functions, which are implemented …

---

## [Mystery of invalidations in V\>1.10. Even in precompiled code](https://discourse.julialang.org/t/mystery-of-invalidations-in-v-1-10-even-in-precompiled-code/132081)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 10\
**Last updated:** [September 7, 2025, 3:42pm UTC](https://discourse.julialang.org/t/mystery-of-invalidations-in-v-1-10-even-in-precompiled-code/132081 "2025-09-07T15:42:15Z")

</div>

I have reported before the very large degradation in TTFP in GMT for version 1.11 and later. One example as reminder | | |\_| | | | (\_| | | Version 1.10.10 (2025-06-27) \_/ |\\\_\_'\_|\_|\_|\\\_\_'\_| | Official https://juli…

---

## [Best way for linear regression problem on product features](https://discourse.julialang.org/t/best-way-for-linear-regression-problem-on-product-features/127786)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 28\
**Last updated:** [April 11, 2025, 12:05am UTC](https://discourse.julialang.org/t/best-way-for-linear-regression-problem-on-product-features/127786 "2025-04-11T00:05:49Z")

</div>

Hi, I need to solve the following least-squares problem efficiently, where X and Z denote two matrices of features. I can transform this into a least-squares problem manually by first creating a feature matrix W by takin…

---

## [Regression table star level](https://discourse.julialang.org/t/regression-table-star-level/127904)

<div class="topic-metadata">

**Author:** [@Junhyuk](https://discourse.julialang.org/u/Junhyuk)\
**Replies:** 2\
**Last updated:** [April 10, 2025, 7:34am UTC](https://discourse.julialang.org/t/regression-table-star-level/127904 "2025-04-10T07:34:39Z")

</div>

Hello, I’m new to Julia and currently conducting several IV regressions. I’d like to report the results using the following code: regtable(ivmodel1, ivmodel2, ivmodel3, render = LatexTable(), digits = 5) In economics,…

---

## [How to isolate & report non-deterministic bug](https://discourse.julialang.org/t/how-to-isolate-report-non-deterministic-bug/127176)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 16\
**Last updated:** [March 28, 2025, 8:12am UTC](https://discourse.julialang.org/t/how-to-isolate-report-non-deterministic-bug/127176 "2025-03-28T08:12:20Z")

</div>

I have a large (15k LOC) calculation that works fine in 1.10.9 but gives an error in 1.11.4 (nothing else changed, not even the manifest). I isolated the function where this happens and I can reproduce it (within my cod…

---

## [Custom labels instead of numbering in RegressionTables.jl](https://discourse.julialang.org/t/custom-labels-instead-of-numbering-in-regressiontables-jl/123908)

<div class="topic-metadata">

**Author:** [@miguelborrero](https://discourse.julialang.org/u/miguelborrero)\
**Replies:** 0\
**Last updated:** [December 17, 2024, 5:29am UTC](https://discourse.julialang.org/t/custom-labels-instead-of-numbering-in-regressiontables-jl/123908 "2024-12-17T05:29:28Z")

</div>

Hi there, currently RegressionTables.jl automatically numbers the regression models when more than one is passed to regtable (using integers). However, I dont seem to find a way to replace these integers with custom lab…

---

## [Performance regression on v1.12 (nightly): \`hypot(::Float64, ::Float64)\` causes allocations](https://discourse.julialang.org/t/performance-regression-on-v1-12-nightly-hypot-float64-float64-causes-allocations/123871)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [December 16, 2024, 5:41am UTC](https://discourse.julialang.org/t/performance-regression-on-v1-12-nightly-hypot-float64-float64-causes-allocations/123871 "2024-12-16T05:41:56Z")

</div>

I don’t have a MWE yet (tried but failed as of yet), mostly writing this so I wouldn’t forget to make an actual bug report later. I have some code, and profiling it on Julia nightly show that this line allocates Float64 …

---

## [Julia 1.11 is slower than 1.10?](https://discourse.julialang.org/t/julia-1-11-is-slower-than-1-10/121077)

<div class="topic-metadata">

**Author:** [@dqeeq](https://discourse.julialang.org/u/dqeeq)\
**Replies:** 48\
**Last updated:** [October 29, 2024, 12:40pm UTC](https://discourse.julialang.org/t/julia-1-11-is-slower-than-1-10/121077 "2024-10-29T12:40:42Z")

</div>

So I was reading the blog post and decided to test the speedup of the Stdlib excision section, % hyperfine 'julia +1.10 --startup-file=no -e "1+1"' Benchmark 1: julia +1.10 --startup-file=no -e "1+1" Time (mean ± σ): …

---

## [I find R's DSL for defining regression a bit mind blowing. GLM.jl and other have tried to "adopt" them. What would an ideal DSL for defining regression look like in Julia?](https://discourse.julialang.org/t/i-find-rs-dsl-for-defining-regression-a-bit-mind-blowing-glm-jl-and-other-have-tried-to-adopt-them-what-would-an-ideal-dsl-for-defining-regression-look-like-in-julia/120786)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 10\
**Last updated:** [October 4, 2024, 5:44pm UTC](https://discourse.julialang.org/t/i-find-rs-dsl-for-defining-regression-a-bit-mind-blowing-glm-jl-and-other-have-tried-to-adopt-them-what-would-an-ideal-dsl-for-defining-regression-look-like-in-julia/120786 "2024-10-04T17:44:45Z")

</div>

In R glm(x~-1+y+z) fits a GLM model without an intercept and using y and z as data, so there will be two coefficients from the model fit. I think GLM.jl has adopted the ~ DSL. But I’ve always found R’s DSL on regression…

---

## [Recover weights of logistic regression using MLJ.jl](https://discourse.julialang.org/t/recover-weights-of-logistic-regression-using-mlj-jl/119331)

<div class="topic-metadata">

**Author:** [@PeX](https://discourse.julialang.org/u/PeX)\
**Replies:** 0\
**Last updated:** [September 12, 2024, 2:55pm UTC](https://discourse.julialang.org/t/recover-weights-of-logistic-regression-using-mlj-jl/119331 "2024-09-12T14:55:07Z")

</div>

Hi all, I’m trying to see if I can recover the weights of the logistic regression from data I’m generating synthetically, but for some reason there is large error in the optimized weights when using MLJ.jl. To create t…

---

## [Multiple fixed effects using FixedEffects.jl](https://discourse.julialang.org/t/multiple-fixed-effects-using-fixedeffects-jl/117113)

<div class="topic-metadata">

**Author:** [@shilong-sun](https://discourse.julialang.org/u/shilong-sun)\
**Replies:** 2\
**Last updated:** [July 17, 2024, 2:16am UTC](https://discourse.julialang.org/t/multiple-fixed-effects-using-fixedeffects-jl/117113 "2024-07-17T02:16:30Z")

</div>

Hi I’m using FixedEffects.jl to residualize matrices with fixed effects. I might be missing something with the syntax, but I couldn’t get the same results using a simple regression approach. Below is the code from the r…

---

## [Package for implementing regression with spatial correlation](https://discourse.julialang.org/t/package-for-implementing-regression-with-spatial-correlation/111893)

<div class="topic-metadata">

**Author:** [@JedPhillips](https://discourse.julialang.org/u/JedPhillips)\
**Replies:** 1\
**Last updated:** [March 24, 2024, 11:03pm UTC](https://discourse.julialang.org/t/package-for-implementing-regression-with-spatial-correlation/111893 "2024-03-24T23:03:59Z")

</div>

Are there any Julia packages that allow one to specify spatial correlation (or any correlation structure) when implementing generalizes least squares regression? I’m looking for something akin to the gls() function in th…

---

## [Lsqfit Nonlinear Regression Using Two Parameters: One Parameter Is Stuck At The Initial Parameter Value](https://discourse.julialang.org/t/lsqfit-nonlinear-regression-using-two-parameters-one-parameter-is-stuck-at-the-initial-parameter-value/108001)

<div class="topic-metadata">

**Author:** [@HNormanW](https://discourse.julialang.org/u/HNormanW)\
**Replies:** 0\
**Last updated:** [December 24, 2023, 8:53am UTC](https://discourse.julialang.org/t/lsqfit-nonlinear-regression-using-two-parameters-one-parameter-is-stuck-at-the-initial-parameter-value/108001 "2023-12-24T08:53:48Z")

</div>

Hi, I’m trying to run a nonlinear regression fit for a perturbation function, but it seems to only fit one of my two parameters. The perturbation function is for modeling grating efficacy curves, with wavelength as the …

---

## [Any way to efficiently run Poisson regression thousands of times?](https://discourse.julialang.org/t/any-way-to-efficiently-run-poisson-regression-thousands-of-times/106727)

<div class="topic-metadata">

**Author:** [@xxxxx](https://discourse.julialang.org/u/xxxxx)\
**Replies:** 23\
**Last updated:** [December 4, 2023, 3:44pm UTC](https://discourse.julialang.org/t/any-way-to-efficiently-run-poisson-regression-thousands-of-times/106727 "2023-12-04T15:44:18Z")

</div>

I need to run Poisson regression around 3000 times with the same set of Y and X but different weights. I’m currently using GLM.jl with a for-loop. The whole thing takes about 58 seconds. I was wondering if there are more…

---

## [What are the t-tests in the GLM.jl's models?](https://discourse.julialang.org/t/what-are-the-t-tests-in-the-glm-jls-models/103261)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 7\
**Last updated:** [August 28, 2023, 7:38pm UTC](https://discourse.julialang.org/t/what-are-the-t-tests-in-the-glm-jls-models/103261 "2023-08-28T19:38:53Z")

</div>

Hi all, I’m not sure about the meaning of the pretty prints of GLM.jl’s models: julia\> model StatsModels.TableRegressionModel{LinearModel{GLM.LmResp{Vector{Float64}}, GLM.DensePredChol{Float64, LinearAlgebra.CholeskyPiv…

---

## [lme4::lmList equivalent in Julia](https://discourse.julialang.org/t/lme4-lmlist-equivalent-in-julia/102670)

<div class="topic-metadata">

**Author:** [@lindemann09](https://discourse.julialang.org/u/lindemann09)\
**Replies:** 2\
**Last updated:** [August 14, 2023, 10:23am UTC](https://discourse.julialang.org/t/lme4-lmlist-equivalent-in-julia/102670 "2023-08-14T10:23:43Z")

</div>

The lme4 package in R has the function lmList, which I use heavily to examine shrinkage in mixed-models. MixedModels.jl does not seem to have the function. MixedModelsMakie.jl is great to visualize shrinkage, but it doe…

---

## [How can I substitute NaN in a GLM model with zeroes?](https://discourse.julialang.org/t/how-can-i-substitute-nan-in-a-glm-model-with-zeroes/102038)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 0\
**Last updated:** [July 24, 2023, 7:44pm UTC](https://discourse.julialang.org/t/how-can-i-substitute-nan-in-a-glm-model-with-zeroes/102038 "2023-07-24T19:44:03Z")

</div>

Hi all! I have a linear model, created with GLM.jl. Since I correlated some variables with a categorical one, I have lots of NaN as coefficients, when the data are provided for only some of the categorical values: juli…

---

## [Basis functions to approximate the inverse of quadratic function](https://discourse.julialang.org/t/basis-functions-to-approximate-the-inverse-of-quadratic-function/101449)

<div class="topic-metadata">

**Author:** [@EricJohnson](https://discourse.julialang.org/u/EricJohnson)\
**Replies:** 33\
**Last updated:** [July 14, 2023, 10:58pm UTC](https://discourse.julialang.org/t/basis-functions-to-approximate-the-inverse-of-quadratic-function/101449 "2023-07-14T22:58:55Z")

</div>

I have many observations of measuring a physical parameter over time. Each observation is basically a function p(t), t \\in \[t\_1, t\_2\]. I also have the value \\int\_{t\_1}^{t\_2} q (t) dt = Q I have many observations: \\le…

---

## [Choice of Kernel Function (MultiOutput Gaussian Process)](https://discourse.julialang.org/t/choice-of-kernel-function-multioutput-gaussian-process/101359)

<div class="topic-metadata">

**Author:** [@lsablon](https://discourse.julialang.org/u/lsablon)\
**Replies:** 0\
**Last updated:** [July 8, 2023, 6:55pm UTC](https://discourse.julialang.org/t/choice-of-kernel-function-multioutput-gaussian-process/101359 "2023-07-08T18:55:35Z")

</div>

Hi ! I am using Gaussian Processes in my research, but I lack some theoretical knowledge about multioutput kernels. For the moment, I am using the JuliaGaussianProcesses ecosystem. My training data are maps associated…

---

## [How to express this repeated measures model with dummy variables?](https://discourse.julialang.org/t/how-to-express-this-repeated-measures-model-with-dummy-variables/101164)

<div class="topic-metadata">

**Author:** [@Juan](https://discourse.julialang.org/u/Juan)\
**Replies:** 0\
**Last updated:** [July 4, 2023, 10:38am UTC](https://discourse.julialang.org/t/how-to-express-this-repeated-measures-model-with-dummy-variables/101164 "2023-07-04T10:38:50Z")

</div>

I would like to fit a model to predict a future outcome from a given time (t=1 in the attached plot) using covariates X. But I have many missings at that time, and I’ve thought about also using past information of X. …

---

## [How can I perform GLM regression on column names with spaces?](https://discourse.julialang.org/t/how-can-i-perform-glm-regression-on-column-names-with-spaces/96442)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 6\
**Last updated:** [March 22, 2023, 5:06pm UTC](https://discourse.julialang.org/t/how-can-i-perform-glm-regression-on-column-names-with-spaces/96442 "2023-03-22T17:06:37Z")

</div>

Hi all, very noob question but I can’t find an answer. I’m trying to do a linear regression on some data I have: julia\> df\_under\_test\[:, \[instruction\_sym, measure\_power\_sym, binary\_weight\_sym\]\] 1165×3 DataFrame Row │…

---

## [Linear regression without the intercept term](https://discourse.julialang.org/t/linear-regression-without-the-intercept-term/18063)

<div class="topic-metadata">

**Author:** [@leejm516](https://discourse.julialang.org/u/leejm516)\
**Replies:** 7\
**Last updated:** [March 8, 2023, 9:14am UTC](https://discourse.julialang.org/t/linear-regression-without-the-intercept-term/18063 "2023-03-08T09:14:32Z")

</div>

In GLM.jl, the use of DataFrame is preferred, but the lm function does support the use of vectors and matrices. In the latter case, however, I can’t do fit without the intercept term (i.e. b0 = 0). Is there a way to do t…

---

## [\[ANN\] Package for sinusoidal regressions](https://discourse.julialang.org/t/ann-package-for-sinusoidal-regressions/95703)

<div class="topic-metadata">

**Author:** [@mbaz](https://discourse.julialang.org/u/mbaz)\
**Replies:** 0\
**Last updated:** [March 7, 2023, 11:17pm UTC](https://discourse.julialang.org/t/ann-package-for-sinusoidal-regressions/95703 "2023-03-07T23:17:54Z")

</div>

SinusoidalRegressions.jl is a package that focuses on fitting data to sinusoidal models. Source and docs. It has been submitted to the general registry but it’s on the 3-day waiting period. Main features are: Implement…

---

## [Multi output Gaussian Process package?](https://discourse.julialang.org/t/multi-output-gaussian-process-package/95335)

<div class="topic-metadata">

**Author:** [@lsablon](https://discourse.julialang.org/u/lsablon)\
**Replies:** 3\
**Last updated:** [February 28, 2023, 4:00pm UTC](https://discourse.julialang.org/t/multi-output-gaussian-process-package/95335 "2023-02-28T16:00:54Z")

</div>

Hello, I am attempting to predict temperatures on a grid using a small dataset. Based on my research, I believe that Gaussian Processes would be the most effective approach. However, I am having trouble finding a packag…

---

## [What is the difference between the two methods of lm on GLM.jl](https://discourse.julialang.org/t/what-is-the-difference-between-the-two-methods-of-lm-on-glm-jl/95140)

<div class="topic-metadata">

**Author:** [@dpabon](https://discourse.julialang.org/u/dpabon)\
**Replies:** 2\
**Last updated:** [February 25, 2023, 3:00pm UTC](https://discourse.julialang.org/t/what-is-the-difference-between-the-two-methods-of-lm-on-glm-jl/95140 "2023-02-25T15:00:17Z")

</div>

The application of each one of the methods produced a different result: using DataFrames using GLM new\_x = rand(100,3) new\_y = rand(100) GLM.lm(new\_x, new\_y) Produce: LinearModel{GLM.LmResp{Vector{Float64}}, GLM.Den…

[Next page](https://discourse.julialang.org/tag/regression/204.md?match_all_tags=true&page=1&tags%5B%5D=regression)
