All Questions
Tagged with simulation mixed-model
57
questions
5
votes
2
answers
80
views
How to deal with competition for variance between a fixed and random effect?
I am performing an analysis on data in which there is a hypothesized relationship between X (predictor) and Y (the response) across a broad area, but random (no relationship) within groups of ...
1
vote
2
answers
65
views
Mixed model: Which parameters to provide for sample size calculations?
I am currently planning an analysis in a relatively new area of research and would like to provide data that will allow for future power analyses. Unfortunately, I am completely lost in the ...
0
votes
0
answers
35
views
Calculating Sample Size for Cumulative Link Mixed Model (CLMM)
I am going to collect data in which each participant answers to 3 questions to 18 vignettes (each vignette has 3 questions), each question with likert scales 1-5. The dependent variables (questions) ...
0
votes
0
answers
12
views
Assigning variance-covariance matrix in generating artificial data for mixed-effect model
I can’t understand specifying correlation between within-participant conditions when generating artificial data for mixed-effect model regression. It would be grateful if you could help me.
My story ...
0
votes
0
answers
25
views
Specifying random effects for simulation of categorical data
I am simulating data for an experimental design with two conditions. I specified the following multilevel model:
$$
y_{ijk} = \beta_0 + u_{0j} + v_{0k} + (\beta_1 + u_{1j} + v_{1k}) * X_1 + e_{ijk}
$$
...
3
votes
0
answers
17
views
What are the expected residual standard deviations from each of the fitted models and data-generating process?
I simulate data to be analyzed using a linear mixed-effects model. It is based on an experiment with 2 levels (A and B) of a ...
3
votes
0
answers
95
views
Simulating a (simple) robust mixed-effects model to calculate DHARMa residuals
I am planning to simulate a mixed-effects model fitted with robustlmm::rlmer to validate if the model is correctly specified or not by using ...
0
votes
0
answers
8
views
Simulating a dataset from model output when model includes multiple binary deviation-coded variables
I am trying to simulate data using parameters from a glmer() model output. The model, which comes from a published paper, is as follows: DV ~ 1 + group* sex *verb type + trial number + (1 |participant)...
1
vote
1
answer
110
views
simr Power analysis consistently yields low power
I've been running the following code:
...
3
votes
1
answer
82
views
Why do we have to simulate the response variable in simulation-based power analysis?
I have some existing data, and I want to do a power analysis for a second confirmatory study. I want to estimate the number of participants I would need for having a power of .9, keeping the same ...
0
votes
0
answers
25
views
Analyzing multiple data points per condition of a simulation model
I wish to perform statistical analysis on a data set that is the result of running a simulation model.
I have simulated this model by varying five parameters, TA_PS, TA_IP, PA_PS, PA_IP, and PA_LGPP. ...
0
votes
0
answers
124
views
Simulating hierarchical / multi-level data for regression analysis in R
I want to simulate a dataset whereby I have a continuous variable that represents a response to treatment (normally distributed). The dataset should also include sex (50:50) and age (normally ...
2
votes
1
answer
386
views
Power analysis for simple LMER model in R from scratch
I'd like to compute power for some rather simple lmer models. I am aware of some packages like simr but the tutorials are not easy to follow because they ...
2
votes
0
answers
34
views
Can't recover residual error variance parameter with linear mixed effect model
In an attempt to check my understanding, I've been attempting to tweak and reproduce the results of this analysis (data found here). In this original analysis, the author fit a linear mixed effects ...
1
vote
0
answers
62
views
Identifying random effects structure to simulate dataset - lmer
I am trying to simulate a dataset based on an existing study.
60 participants completed the experiment twice. Each time, they were randomly assigned to either condition A or condition B. The condition ...