Questions tagged [random-effects]
238 questions
0
votes
1 answer
How can I solve the random effects and residual variance error using the lme4 package in R?
I am trying to analyze some simulated data (long data format) of 199 participants using the lme4 package. In this dataset, belongingness, authenticity, and inclusion are measured two times and are predicted by exercise condition (= 0, 1, 2), Time (=…
0
votes
1 answer
Random effect with gam() with betar family in R
I'm having trouble with my gam() analysis with betar family and the weird thing is that it worked perfectly before. After I restarted R, all kinds of error and warning messages showed up.
I'm analysing the effect of a proportion on another…

Peter
- 343
- 5
- 17
0
votes
1 answer
specify random effects in lme4
I would like to ask for your help in specifying the random effects of a model I have been working on in lme4. I have data from a field survey. The objective of the study is to relate wing size (respond variable) with habitat (exploratory variable,…

user3225272
- 1
- 3
0
votes
1 answer
Creating a GLMM with binomial response and a mix of categorical/continuous variables
I am analysing several amphibian sightings (6000+ records) to understand what environmental variables influence the presence and absence of amphibians.
The response variable for each amphibian species is a logical vector (true,false), and the…

chlha
- 1
- 1
0
votes
0 answers
How to know if the variables are statistically significant to the model in an R lme4 model?
I have Y (dependent variable) and I have multiple X (independent variables) in mixed linear random effect model. I want to know which variables are statistically significant in an automated way
I have tried the following code to obtain P-value…

Lush_coding
- 33
- 4
0
votes
1 answer
How to back-transform with a continuous variable
I would like to know how to properly back-transform the output from a univariate linear mixed effects model in order to interpret it. I have not posted data to go along with my question because my question should be answerable without data.
My model…

Blundering Ecologist
- 1,199
- 2
- 14
- 38
0
votes
0 answers
Package to get an estimate of the survival function with random effects?
I would like an estimation of the cumulative hazard in a function that includes random (and fixed) effects.
The estimation should be semi-parametric (estimation with splines, piecwise constant exponential, etc)
I tried the R package frailtypack but…

Flora Grappelli
- 659
- 9
- 26
0
votes
0 answers
lmer Model failing to converge with random effects structure
I am trying to use intercept and slope effects in my random effects structure (best model fit) and I get the following errors when I do.
MLM <- lmer((sqrt(degrees))~ Condition*CogLoad + (Video|Subject),
data=dataset)
Warning messages:
1: In…

Taylo R Simonson
- 1
- 1
0
votes
1 answer
Comparing script for random intercept and slope independent between nlme and lme4
So for random mixed effects, I am making a comparison list of scripts between the 2 packages.
For independent random intercept and slope, if I am using the following code in lme4 package, what is the corresponding script in nlme?
model1 <- lmer(y~A…

Hamham Rhapsody
- 1
- 3
0
votes
1 answer
Store regression coefficients, merge back into data-frame
I'm trying to estimate a random effects model, and store those coefficients. I then want to merge them to the data-frame to predict the dependent variable.
There is a random effect coefficient for each group. In the data-frame, if an observation…

Hamza
- 63
- 1
- 7
0
votes
1 answer
SAS proc mixed Degree of freedom error
I have a dataset in this format:
Factor A is a between subject factor (with 2 levels - High and Low).
Factor B is a within subject factor (with 3 levels - High , Moderate and Low).
I want to run a mixed model with nested random effects factor.
The…

Prometheus
- 673
- 3
- 25
0
votes
0 answers
Cannot estimate difference-in-differences RE model (system is exactly singular error)
I'm trying to estimate a DiD model using panel data methods (pooling, FE and RE). The model is used to determine whether a cartel presence (dummy variable E1 in regression - 1 for the cartel period and 0 otherwise) affects the consumer price of fish…

DenizKutlu
- 21
- 2
0
votes
1 answer
A full parameterized model
I have a model like this:
fm<-lmer(V4 ~ V2 * V3 + (1 | V1), data = data)
I want to obtain the full parameterization of it, with random intercept and randon slope.
I can use this model?
fm<-lmer(V4 ~ V2 * V3 + (1 + V2 + V3 | V1), data = data)

piravi
- 109
- 1
- 6
0
votes
2 answers
Newbie attempting linear mixed effects model in R studio - TOTAL FAIL
After searching over an hour (this forum, Youtube, class notes, google) I've found no help for my question. I'm a complete newb who knows nothing about R or stats.
I'm attempting to create a linear mixed effects model in R. I'm measuring leaf width…

Richard Gourderton
- 37
- 8
0
votes
1 answer
Can I estimate those models with the plm package
I want to compare the estimations of the following models but I don't know if I can estimate models (5) with the plm package:
1/ pooled -> Yit
fit.pooling <- plm(form, data = pdata, model = "pooling")
2/ Within (ind/time/both effects) -> Yit - Yi.…

tristanjou
- 35
- 8