Skip to main content

Questions tagged [lme4]

lme4 is an R package for fitting and analyzing linear, nonlinear and generalized linear mixed models.

0 votes
0 answers
23 views

Matrix will not download in R despite updated version [duplicate]

I was trying to do a linear mixed model in R (lmer) and I got an error Error in initializePtr() : function 'cholmod_factor_ldetA' not provided by package 'Matrix' I used ChatGPT and it told me to ...
L55's user avatar
  • 203
0 votes
0 answers
22 views

Problem with factors with a linear model lmer

I have a problem with a linear lmer model. Indeed, I have several factors that interest me and I want to see if they have an impact on my data. I have 6 of them and for 4 of them, I have no worries. ...
Jules Brochon's user avatar
0 votes
0 answers
28 views

Degrees of Freedom in Emmeans

I am using the 'emmeans' package in R to compute estimated marginal means for my (liner mixed-effects) model. However, I am enountering a warning message related to the number of observations ...
travxx's user avatar
  • 11
0 votes
0 answers
8 views

R - 95 CI for rmse from lmer

Is it possible to get the 95 CI for rmse? Thank you library(lme4) library(performance) dat <- read.csv("https://stats.idre.ucla.edu/stat/data/demo3.csv") m1 <- lmer(pulse ~ time ...
jtjtjtjt's user avatar
  • 105
0 votes
0 answers
6 views

Factor Random Slope Models Showing Referece as Random Effects in Glmer Logit

I am running a logistic regression model with random slopes in R, where the variable m_edu varies between countries. fsdisability1 ~ factor(caretakerdis) + (-1 + factor(caretakerdis) | country) ...
Md. Sabbir Ahmed Mayen's user avatar
0 votes
0 answers
19 views

Add Random Effects to Stargazer table

I have a Mixed-effects model and I want to use stargazer to create a regression table including the Random Effects part. I can get something similar using either sjPlot::tab_model() or texreg::texreg()...
Ttytamaki's user avatar
0 votes
0 answers
33 views

Extract the scale and shape parameter of Gamma-distribution GLMER model to calculate the prob. densities of unseen data

I'm using lme4 to fit a generalized linear mixed effects regression model (GLMER) for a Gamma-distributed response variable. After fitting the model, I want to calculate the log-transformed ...
code_505's user avatar
1 vote
1 answer
28 views

bootstrap for model estimation with a created function

I am trying to make comparisons between treatments of my heritability estimates, values ​​that I calculated with the following function: data <- data.frame(treatment=c("control", "...
Andrea Esquivel Román's user avatar
2 votes
0 answers
80 views

“Error in initializePtr() : function 'cholmod_factor_ldetA' not provided by package 'Matrix'” when applying lmer function

I keep on receiving an error when I use the lmer() function: Error in initializePtr() : function 'cholmod_factor_ldetA' not provided by package 'Matrix' I have tried multiple times based ...
Alfred's user avatar
  • 21
0 votes
0 answers
30 views

Pre-specifying Random Effect Covariance Matrix in glmer

I need some help with manually specifying a random effect using glmer similar to how it's done in a brm model. In this brm model, Scott Claessens used a pre-specified covariance matrix for a random ...
Olivia's user avatar
  • 81
0 votes
0 answers
10 views

Model comparison or beta coefficient of full model? [migrated]

my question is a rather theoretical one. I have to decide in advance how I want to analyze my data (I'm going with the lme4 package in R) and feel torn between doing a model comparison by creating two ...
Sahila's user avatar
  • 35
0 votes
1 answer
44 views

I have multiple lmer models, how to adjust the p-values for multiple testing?

I couldn't find any similar questions because all the questions I found deal with correcting for multiple comparisons within a single lmer model. I have a set of lmer models, which always have the ...
J. Doe's user avatar
  • 1,660
0 votes
1 answer
61 views

df = 1 for an intercept-only linear mixed model, how to fix? (R) [closed]

I'm testing the intercept of a linear mixed model regression predicting a binary variable in an intercept-only model with random intercepts for another dichotomous variable and one factor variable ...
PGJ's user avatar
  • 13
0 votes
1 answer
27 views

implementing an overall Wald test for a glmer model [closed]

I would like to know how to get the overall Wald test and its p-value for a fitted glmer model from the lme4 package. For example: credec ~ passexp + soctie + recexp + peer + soctie * recexp + (1 |...
ewqe dasdad's user avatar
1 vote
1 answer
163 views

"Error in initializePtr(): function 'cholmod_factor_ldetA' not provided by package Matrix" gets displayed while trying to generate mixed effects model

I have already tried the previous solutions displayed by some users. I have tried removing and reinstalling Matrix and lme4 packages. To make matters worse, now R is unable to install lme4 or Matrix ...
Ramanpreet Kaur's user avatar

15 30 50 per page
1
2 3 4 5
122