Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results for nonlinear regression tagged with
Search options answers only not deleted score>= 2

Use this tag for any *on-topic* question that (a) involves `R` either as a critical part of the question or expected answer, & (b) is not *just* about how to use `R`.

3 votes
Accepted

Understanding and reporting Cox models with spline terms

With Cox survival regression models, what you get are estimated log-hazard differences or hazard ratios. Plots like those you show are log-hazard differences from some chosen reference condition. … lwd.se, col = col.se) } The difference between rcs() (restricted cubic spline) and pspline() (penalized smoothing spline) is outlined on this page, along with several other ways to model nonlinear
EdM's user avatar
  • 102k
2 votes
Accepted

Applying Log Link to Quantile Regression

If your quantile functions are linear in predictors, transformation leaves you with nonlinear functions. … If you had a quantile version of a GLM, or some form of nonlinear-quantile regression, perhaps you can implement a log-link, but I'm not sure I've seen any offhand. …
Glen_b's user avatar
  • 290k
6 votes
Accepted

What I have to do more to improve my regression model in r

Are there nonlinear patterns in your data? Do the polynomials actually do a good job of fitting the data as you have here? … I tend to prefer splines for nonlinear patterns of data, but more information about that point may be helpful. …
Shawn Hemelstrand's user avatar
3 votes

How to choose between ordered logit and ordered probit regression?

Regression assumptions are usually about the latter. … I recommend the R package ordinal to explore all these possibilities of scale and nominal effects with a variety of link functions. …
DrJerryTAO's user avatar
  • 2,305
3 votes

Is there a way to calculate LC50 from a continuous dependent variable?

A typical best practice is to fit all the data, in your case absorbance versus toxicant concentration, with a nonlinear least squares regression model that captures the underlying dynamics. … Using this package takes some care, however, as fitting a nonlinear regression only works reliably if you have good starting estimates for the model parameters. …
EdM's user avatar
  • 102k
2 votes

Regression Modelling using lme4 in R

I would like to model the effect of temperature on the daily movement patterns of the animals using a regression model in lme4 The model: TOTAL_DIST ~ TEMP.MAX + (1 | COLLARID) Has the following features … If it is nonlinear then you can add nonlinear terms, or regression splines for TEMP.MAX …
Robert Long's user avatar
  • 65.8k
2 votes

Testing a linear combination of coefficients in R

Because normal and logistic cumulative probability curves are nonlinear, the effect of any predictor on probability is nonlinear and depends on all predictors. … See discussions at Discrete-Time Event History (Survival) Model in R and book Tutz, G., & Schmid, M. (2016). Modeling discrete time-to-event data. …
DrJerryTAO's user avatar
  • 2,305
2 votes

How to fit a GAM with double seasonality to a daily time series? (mgcv package)

As the comment from @user11852 suggests, you can incorporate multiple forms of seasonality (and how those seasonalities may change over time) using the cyclic cubic regression basis in the {mgcv} package … There are better ways to handle nonlinear splines and generate good forecasts, which I have made available in the {mvgam} R package. …
Nicholas Clark's user avatar
5 votes
Accepted

How do I prioritise model diagnostics while considering model selection and parameter uncert...

That's why I say in Regression Modeling Strategies that using the data to select the model is almost as bad as not doing so. …
Frank Harrell's user avatar
2 votes

2-way Anova on Unequal Group Proportions

For a binary response you can use logistic regression. In SAS that would be PROC LOGISTIC. … If I understand correctly there are several approaches for proportional/fractional outcomes: Tobit (with PROC QLIM or NLMIXED), NLS (nonlinear least squares, with PROC NLMIXED), fractional logit (PROC …
Robert Long's user avatar
  • 65.8k
2 votes
Accepted

Measuring the effect of treatment on variable over time

Edit You asked about nonlinear effects in the comments. There are a couple things you could consider. … J., & Inger, R. (2018). A brief introduction to mixed effects modelling and multi-model inference in ecology. PeerJ, 6, e4794. https://doi.org/10.7717/peerj.4794 Meteyard, L., & Davies, R. A. …
Shawn Hemelstrand's user avatar
4 votes

What possible effects to include when running a Mixed Model, time variable and or lags for D...

This is easiest to do using structural equation modeling, but can also be accomplished in R with nlme. …
Erik Ruzek's user avatar
  • 5,890
3 votes
Accepted

Specifying a mixed effects model with repeated constructs but cross-sectional observations (...

To combat the error distribution assumption, you can consider using ordinal regression. The R package ordinal has functions “clmm()” and “clmm2()” that allow random intercepts and slopes. … Beta regression with random effects can be done in package glmmTMB. …
DrJerryTAO's user avatar
  • 2,305
4 votes
Accepted

Should I use negative binomial GAM?

If the response variable is binary (0/1, presence/absence) there's really not much you can do other than some form of logistic regression (in R, glm(..., family="binomial"); a negative binomial model, … A GAM is a generalized additive model, which can account for nonlinear patterns in continuous variables. You can fit these easily with mgcv::gam(). It might be worth considering this option. …
Ben Bolker's user avatar
  • 47.3k
2 votes
Accepted

Structural equation modelling in lavaan

Transformation may be necessary if data is heavily skewed, nonlinear, or has other features that make ML problematic (other estimation methods may be used to counteract this, but I would educate yourself … If you are new to statistics, I would highly recommend going through the primers that come with the book to educate yourself on some of the underpinnings of SEM that are important (psychometrics, regression
Shawn Hemelstrand's user avatar

1
2 3 4 5
11
15 30 50 per page