Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
30 views

Why won't my multilevel model converge in R (lme4)?

i have a multilevel model at firm and local authority district level, with both firm level and LAD level predictors. It is a binary logistic model, the outcome is presence of women on the board of a ...
Anya's user avatar
  • 1
0 votes
1 answer
281 views

mice creates NaN and NA after imputing cluster-level variable for clustered data with maxit >0

I have clustered data with 21% missing values in the cluster variable, which was derived from a 'date' variable with similar missing data. I'm trying to impute the missing data in the cluster variable ...
august2020's user avatar
0 votes
1 answer
182 views

How does the metafor aggregate() function affect single-outcome studies in a multi-level meta-analysis?

I'm currently conducting a meta-analysis study. In my study, there are several studies that reported multiple outcomes. According to the literature, I figured out that the multilevel meta-analysis ...
Yang Travis's user avatar
1 vote
1 answer
69 views

compare different multi level regressions

i am struggeling at the following: My idea is to analyse the development (slope) of an output of different multi level regressions. The output is matched in my data with 2 different timepoints. I have ...
Rajeshwari's user avatar
0 votes
1 answer
103 views

Create a new Variable of values of another variable-multilevel regression

I am up to create a multilevel analysis (and I am a total newbie). In this analysis I want to test if a high value of a predictor( here:senseofhumor) (numeric value - transfered into "high",&...
Rajeshwari's user avatar
1 vote
1 answer
35 views

Restructuring 2-level data to 3-level data [duplicate]

I have a two-level multilevel data. Below is an example of it. I have two participants that reported their fruits consumption for two days. id day apple orange 1 1 34 12 1 2 54 43 2 ...
ND2020's user avatar
  • 11
1 vote
1 answer
235 views

Multilevel R squared error in package 'mitml'

I am trying to use the package 'mitml' in R to calculate R squared measures for a multilevel model. I have tried using lme4 and nlme to specify my models. However, when I use lme4 to specify the model ...
Victoria Whitaker's user avatar
0 votes
0 answers
60 views

in R, Fitting multilevel mode (linear mixed effect model) by adding variables from two different data set?

I fitted a linear mixed effect model using lme4, however, it is a hierarchical structure of data and I have two different data set from level 1 and level 2, but I was struggling to include a variable ...
Hani's user avatar
  • 35
0 votes
0 answers
41 views

How does R understand a multi level model?

I'm new to MLM both in R and in general. I have a dataset of Building permits for a couple of cities and I have created a variable counting the number of parcels with a permit. Now, I want to perform ...
Kawi's user avatar
  • 19
1 vote
1 answer
2k views

Grouping Variables in Multilevel Linear Models

I am trying to learn hierarchical models in R and I have generated some sample data for myself. I am having trouble with the correct syntax for coding a multilevel regression problem. I generated ...
Vaidyanathan Viswanathan Sauna's user avatar
4 votes
0 answers
669 views

Estimating and plotting predicted probabilities from a multilevel ordinal logit (clmm)

I'm estimating a multilevel ordinal logit with one interaction term using clmm. The coefficients I get are interesting and statistically significant and I now want to compute and plot predicted ...
saladin1991's user avatar
0 votes
0 answers
151 views

Alternative solutions to multilevel modelling due to level 2 and 3 not having enough clusters

I have been running some multilevel models on my data but have now been told my clusters are too small and I need to consider taking out two of the levels and add them in as covaraites (dummy ...
Jade's user avatar
  • 1
2 votes
0 answers
281 views

Python: Random intercept model (have to replicate R code)

I'm trying to replicate code from R that estimates a random intercept model. The R code is: fit=lmer(resid~-1+(1|groupid),data=df) I'm using the lmer command of the lme4 package to estimate random ...
Hamza's user avatar
  • 73
2 votes
2 answers
195 views

Reshape/gather function to create dataset ready for multilevel analysis

I have a big dataset, with 240 cases representing 240 patients. They all have undergone neuropsychological tests and filled in questionnaires. Additionally, their significant others (hereafter: ...
Hannie's user avatar
  • 427
2 votes
0 answers
1k views

Multilevel multinomial logistic regression with mlogit (R)

I´m trying to model a multilevel multinomial logistic regression. I have 42 subjects with 82 observations per person. In each observation the suvjects("VP") were able to react in three different ways ...
Fabian123's user avatar