Top "Nlme" questions

An R package for fitting Non-Linear Mixed Effects statistical models.

Error in na.fail.default: missing values in object - but no missing values

I am trying to run a lme model with these data: tot_nochc=runif(10,1,15) cor_partner=factor(c(1,1,0,1,0,0,0,0,1,0)) age=runif(10,18,75) …

r missing-data error-code nlme
lmer error: grouping factor must be < number of observations

I am attempting to run a mixed effect model on some data but struggling with one of the fixed effects, …

r lme4 mixed-models nlme
How to fit two random effects separately in lme?

I'm doing Linear mixed-effects model fit by REML in nlme package. And these are codes that work for me: # Linear …

r random nlme
Solving error message "step halving factor reduced below minimum in NLS step": adjusting nlsTols not working

I am trying to fit a logistic growth curve to some data using the gnls function. Data: structure(list(Nest = …

r nlme convergence
How to compare a model with no random effects to a model with a random effect using lme4?

I can use gls() from the nlme package to build mod1 with no random effects. I can then compare mod1 …

r lme4 mixed-models nlme
Extracting coefficients and their standard error for each unit in an lme model fit

How could I extract coefficients (b0 and b1) with their respectively standard errors for each experimental unit (plot )in a …

r mixed-models nlme coefficients
Plotting predicted values from a lme model (with polynomials) in R

I am using linear mixed-effect model (run with the lme() function in the nlme package in R) that has one …

r predict mixed-models polynomials nlme