lmer (& siblings glmer & nlmer) are functions in the R package lme4 that fit mixed effects models (ie, models that include fixed & random effects). These models can be non-linear in the sense that the dependent variable is transformed by a non-linear function (eg, logistic or log) to accommodate ...

learn more… | top users | synonyms

0
votes
0answers
13 views

Need serious help preparing a GLMM and multinomial logit model in R

I am having trouble choosing appropriate statistical packages in R, in order to analyze (1) the relationship between a binary response variable and a few categorical variables which may be nested ...
3
votes
1answer
76 views

Repeated-measures linear mixed effect model

I have used a repeated-measures ANOVA in SPSS to analyse some of my data. It's the typical approach in my area, but I think it might be more appropriate to use a mixed effect model. However, I ...
1
vote
1answer
35 views

linear mixed models - fixed and random effects

I am analyzing plant Functional Diversity as function of environmental variables. The nature of my data is hierarchical, I have a variable x measured at plant scale, and another one, z, measured at ...
1
vote
0answers
19 views

Model Matrices for Mixed Effects Models

In the lmer function within lme4 in R there is a call for constructing a model matrix of ...
1
vote
0answers
10 views

Conflicting Mean Squares, lme vs. lmer

thanks in advance for the help. I've been getting different values for the mean squares (and as a result, F-values) using the base R lmversus ...
1
vote
0answers
10 views

Showing shrinkage with a plot for the interaction coefficient in a mixed-model

I am trying to illustrate shrinkage in linear mixed models in a 2x2 factorial design. I would like to show the shrinkage effect for all coefficients including the ...
1
vote
0answers
24 views

Spherical Parameterization of Variance-Covariance Matrix in Mixed-Effects Regression

I wonder if someone can please help me with a passage on the article by José Pinheiro and Douglas Bates on unconstrained matrix parametrization. I have been slowly working through it, and getting ...
0
votes
0answers
9 views

how to specify the order of repeated measure of same subject in multilevel modelling

I am trying to do multilevel modelling for finding the management of diabetes in 100s of patients using R (lmer). Each patient has multiple measurements of blood glucose which is taken in unequal ...
0
votes
0answers
45 views

3-way interaction with polynomials and 2 categorical variables in a LMER-model in r

My dataset contains the following variables: Within-Subject factor: Target After Onset Prime (4 levels) Within-Subject factor:Prime (2 levels; Categorical) Within-Subject factor:Target (2 levels; ...
0
votes
0answers
24 views

reporting mixed effects linear regression: t statistic or model comparison?

We have a one factor three level repeated measure experiment with ratio data (reaction times). We fit a mixed effects linear model using lmer (in fact lmerTest) - maximal, with subjects and items as ...
1
vote
1answer
48 views

Theta Calculation in Lmer R function for Mixed Effects Models

In mixed-effects models within the lmer R function of lme4 calculating the vector $\theta$ seems to be a key step, necessary to ...
0
votes
0answers
40 views

lmer replication

I did a study where I built a lmer model1 on data1. The dependent variable is continuous. There are 5 predictors (fixed effects), also continuous, and 2 random effects - factor and counts. Now I ...
1
vote
0answers
58 views

How to backtransform data that has been log transformed in order to report raw values for ease of interpretation?

I have run some lme4 analyses on reaction time data in R, with RT being the main outcome variable of interest, which I first log transformed due to non-normality ...
1
vote
0answers
58 views

Linear Mixed model with lmer in R. How to formulate the within subject factors?

I would like to know which of these formulas is better for answering my research questions (see below) and explain why, or maybe someone can suggest me another one. ...
3
votes
1answer
58 views

R lmer confint: theta values not the same as summary values

I've been using lmer's confint procedure to compute bootstrapped confidence intervals for random effects. I noticed that extracting the theta values using "getME" produces estimates that are slightly ...
1
vote
0answers
12 views

Non normality and nonlinearity in a generalized mixed model

My thesis is about the encroachment in Arctic regions. My experiment contained 6 plots, of each type (encroached and non-encroached) on three elevations. Elevation and type are fixed factors, plot is ...
1
vote
0answers
31 views

Specification of partially crossed longitudinal subjects in linear mixed effects model (lme4, lmer)

I am familiar with linear regression models, but I am in the process of learning about linear mixed effects models. My data consists of measurements for each month for a set of subjects over a long ...
2
votes
1answer
46 views

split-split plot design with unbalanced repeated measures in lme4 or nlme (SAS translation)

I am sorry if this answer has been answered before but most answers here (e.g. here, or here ) do not really adress my issue (or maybe I just do not see correctly how they do. I want to use a (linear) ...
0
votes
0answers
37 views

replication of findings in regression models

Let's say we have a dataset for which we constructed a multiple linear regression model and obtained a particular set of $\beta$ coefficients and their significance values. Now, we want to replicate ...
0
votes
0answers
15 views

interpretation of deviation coded data

How do I interpret the following result of a deviation coded dataset? As far as I understand, Cog are more accurate than NonCog irrespective of the language of the word (Code_IS_Langauge: 2 levels) or ...
1
vote
0answers
79 views

lmer, glmer, and r squared

Seems like I got really confused, so here I am... I'm trying to fit lmer model with a quite simple dataset - Observation.count as a dependent variable - count of observations for a student within ...
2
votes
1answer
80 views

Nested mixed effects with lme4

I am trying to analyze data from an experiment using lme4. In the experiment, subjects saw either dark or bright versions of 50 stimuli (between-subjects; fixed effect "brightness"). All subjects saw ...
0
votes
0answers
25 views

Interpreting output with deviation (sum)coding

How do I interpret main and interaction effects with deviation coding? This is the output I generated for Code_IS_Condition (3 levels), ...
0
votes
0answers
22 views

How to model a 2x2x2 within-subjects glmer with dichotomous dependent variable

I have a 2x2x2x2 within-subjects design with a dichotomous dependent variable. So far I've modeled this as follows: mod0=glmer(DV ~ fact1 * fact2 * fact3 * fact4+(1|subject), family="binomial", ...
1
vote
0answers
20 views

Using lmer for my data?

I´ve been using two-way repeated measurement anova for some time, but recently I started learning about linear mixed effect models. So I´m definitely a novice! Here´s my project outline (see the data ...
1
vote
0answers
46 views

Split Plot Design? lmer analysis

I need advice regarding the analysis of a project that I am working at the moment. Here the picture of the experiment: We have an RCBD with four blocks. Within each block there are 5 plots. Each plot ...
0
votes
0answers
27 views

lmer: How to determine the weights?

I want to do a meta-analysis with lme4, where for each study several values $(x_1,y_1),(x_2,y_2),...$ are reported. These values have a linear relationship, so I want to use a mixed model with study ...
6
votes
1answer
254 views

Prediction interval for lmer() mixed effects model in R

I want to get a prediction interval around a prediction from a lmer() model. I have found some discussion about this: ...
1
vote
1answer
45 views

Crossed & nested random effects in lmer

I'm trying to get the specification correct for a crossed and nested effect model. Suppose I want to cross Sample & ...
0
votes
0answers
17 views

Intra-individual covariance matrix in lme4

I wonder, why do not need to specify the structure of the variance covariance matrix and the lmer function library lme4, since using the lm function library nlme this is possible. Thank you.
0
votes
1answer
39 views

Mixed model adjusted for lme4

I am trying to fit a mixed model using the library lme4, and is emerging the following error. fixed-effect model matrix is rank deficient so dropping 10 columns / coefficients. In this case, I'm ...
1
vote
1answer
74 views

Mixed models: wrong random intercepts and interpretation issues

I have a dataset of individuals that participated in several races, but not all individuals did every race. Of every individual I have their average speed. My goal is to have a measure of how ...
2
votes
2answers
63 views

getting degrees of freedom from lmer

I've fit an lmer model with the following (albeit made up output): ...
0
votes
0answers
40 views

Linear mixed model with two correlated dependent variables

I'm using the swissmunicipalities dataset in the package sampling of R. I consider two correlated dependent variables, the population between 40 and 65 (Pop4065), and the population aged 65 or more ...
0
votes
2answers
93 views

When the dependent variable and random effects 'overlap' in mixed effects models

I have added a new example here for clarity, see original question below Eg. I have 10 schools in 5 countries, ten students from each school is sampled. Prediction variables: student test marks for ...
0
votes
0answers
33 views

Fitting a model

I have a problem with fitting a model in lmer. My DV is reaction time to picture naming which is a continuous variable. I have three IV which are categorical. The first factor is TMS condition: either ...
0
votes
1answer
120 views

Post-hoc testing in multcomp::glht for mixed-effects models (lme4) with interactions

I am new to CrossValidated, so if there is a better way for me to format or ask my question, please feel free to comment. I am performing post-hoc tests on a linear mixed-effects model in R (package ...
0
votes
0answers
25 views

Degrees of Freedom of Cross-Level Interactions Terms in LME/LMER models

I am currently working on a hierarchical linear model using a dataset with variables on two levels. Level 1 variables have roughly 90000 observations and level 2 variables 141 observations. ...
0
votes
0answers
16 views

Correlated subjects in linear mixed model

I have a continuous variable that I want to model using linear mixed model. Goal is to measure two effects related to city and data source from which the variable came. The target variable is in fact ...
0
votes
1answer
74 views

How to translate percentage decline into a regression slope?

I want to model a negative relationship of count/binary data over 10 years with a known value for the decline rate (in percentage). However, I have problems in calculating the correct slope value for ...
1
vote
0answers
56 views

Use lmer to test main effects and interaction

I have to solve a problem using a linear mixed model (lmer). Six subjects performed two tests, (test1, ...
0
votes
1answer
59 views

lmer syntax for a two-way model with one fixed and one random factor [closed]

Please could anyone tell me if my R code is correct? I have a two-way model with one fixed factor, habitat, and one random factor, site. The code I am using is: ...
0
votes
0answers
18 views

Multilevel model with multiple level 2 variables

I am estimating a model where I want to know how the performance will vary across the students as influenced by their individual characteristics and aspects of their schools. Performance is the ...
3
votes
1answer
55 views

Hypothesis testing: If not a p-value in mixed effect models, then what?

I've been working on a messy, repeated measures data set of endocrine data looking at a small group of variables (after eliminating several uninteresting contenders in exploratory data analysis), each ...
0
votes
1answer
159 views

Model averaging predictions from lmer models [closed]

I am trying to model average predictions (not betas) and estimate confidence intervals from linear mixed models run with lme4::lmer. I have experimented with functions in the MuMIn and AICcmodavg ...
1
vote
0answers
40 views

What does (1|g1/g2) mean in a lmer formula?

What does this formula mean? lmer(y ~ (1|g1/g2)) equivalently: lmer(y ~ (1|g1) + (1|g1:g2) According to the PDF that I ...
1
vote
1answer
189 views

Correct glmer distribution family and link for a continuous zero-inflated data set

Data set details: Zeros are "real" (volume) Data set is heavily left skewed (even when zeros are excluded) Response is continuous (volume) Can anyone recommend a distribution family and link that I ...
2
votes
0answers
113 views

Comparing mixed-effects and fixed-effects models

Given three variables, y and x, which are positive continuous, and z, which is categorical, ...
0
votes
0answers
121 views

Error when using mixed function in afex package on GLMM

I have been using lme4 in order to fit an overdispersion model and GLMM to my data as shown below. This seems to work fine. ...
1
vote
0answers
17 views

How to include questionnaire data with behavioral counts in lmer() maximal logistic regression model?

I’m using a maximal logistic regression model to analyze some data. I would like to keep using this technique if possible, just include more data in the model. The main data I’m looking at is counts ...