Skip to main content

All Questions

1,273 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0 votes
1 answer
163 views

multilevel modeling (lmer)

I'm trying to run some main effects models with the lmer function (lme4 package) in R but they keep coming out as a singular fit. It's possible this is because the model is overfit, but even when I ...
maddiek314's user avatar
0 votes
0 answers
28 views

Shall I further belive DHARMapackages whan dignosed?

Today , I get the terrible resulits from the glmer.nb(). I tried a plent of methods to change the variables. However, When I finaly fitted a model with FUll variable . qqPlot(resid(Model)) tell me I ...
PeterPanPan's user avatar
0 votes
0 answers
234 views

How to fit a power curve for a glm with simr

My response variable is counts of turtles at sea surface per aerial survey (possible values: 0,1,2) and I use a Poisson distribution for it (since my data are not overdispersed neither zero inflated). ...
Livia Tolve's user avatar
0 votes
0 answers
267 views

Need R help with an HLM model with 2 level 1 (categorical) predictors and 1 level 2 (continuous) predictor

I am trying to create a HLM in R where I have one outcome measure: Y; two dummy coded Level-1 predictors: A and B; and 1 continuous Level-2 predictor: Z. Investigating a 3-way interaction with this ...
user275801's user avatar
0 votes
0 answers
39 views

Is it valid to build a binomial hierarchical model with skewed observations between random effect levels?

I am trying to model the relationship between vegetation growth and insect outbreaks (binomial: 0=non-outbreak, 1 = outbreak) by bioregion and season. To do this, I am constructing a hierarchical GAM (...
Douglas's user avatar
  • 111
0 votes
0 answers
128 views

Clustering Algorithm for data where each type has multiple observations?

I am trying to segment football teams based on their playing style using multiple features. I want to see which football teams have similar playing styles using cluster algorithms. For each team I ...
Aditya Kaushik's user avatar
0 votes
0 answers
408 views

conducting a multilevel model with a continuous variable and categorical variable in r (+ post hoc)

I conducted a study in which I presented three types/blocks of visual stimuli (neutral stimuli in baseline, negative stimuli, neutral stimuli following negative stimuli). To examine the relationship ...
SJ K's user avatar
  • 1
0 votes
0 answers
252 views

Binomial Logistic-Normal Updating

I've been considering how sports with binary outcomes might be modelled e.g. the probability of a tennis player winning a point on serve. In text books the usual Bayesian approach uses the beta-...
Batfink's user avatar
  • 61
0 votes
1 answer
36 views

Is a GLM the best option to analyze my data with R?

I would like to see which factors can better explain the success of a particular event to happen. I'm interested in 4 factors, being before, ...
juansalix's user avatar
  • 177
0 votes
1 answer
21 views

Proper use of multilevel analysis in team settings [conceptual question]

i am faced with the following question: I sit on a data-set of about 200 teams, that contains information about the mental health of the individuals (i.e., GHQ-12, ex: sleeplessness and so on.) and ...
George GL's user avatar
0 votes
0 answers
44 views

Four level mixed model (multi-level linear model) - formal model specification with mathematical annotations

I am running a mixed-model in nlme (R) with momentary assessments (5 times, L1) nested in days (4 days, L2) nested in trimester (3 Trimester, L3) nested in participants (152, L4) from a longitudinal ...
esm_cort's user avatar
0 votes
1 answer
93 views

Could this variable be modeled by a poisson regression?

I have a pc experiment and an ordered response variable with 8 levels (from 0 to 7). I have also a factor (different types of stimuli) to include as a predictor in the model. So in each trial, the ...
Filippo Gambarota's user avatar
0 votes
0 answers
50 views

Unusual residual artefacts in GLMM, is GAM or another model more appropriate?

I'm having trouble finding an appropriate model for my data. The data comprises behavioural observations of chimpanzees, where I instantaneously sampled their locomotor behaviours and parameters of ...
David Pettifer's user avatar
0 votes
0 answers
67 views

Generalized linear (logit) mixed-effects model with the random (crossed) effects drawn from a bivariate normal distribution

I am trying to implement a generalized mixed-effects model specified as: Dependent variable $y = \log(\frac{p}{1 - p})$ where $p$ is a quantity measured for a pair of individuals ($i$ and $j$). $E(...
Pranav Goel's user avatar
0 votes
0 answers
19 views

How can parameters be modeled differently if they share hyperparameters?

In one popular example of multilevel Bayesian models (2007 Gelman et. al paper), radon exposure in a household is modeled as a function of the county and whether the house has a basement. In this ...
mnmn's user avatar
  • 196
0 votes
1 answer
108 views

Multi-level survival modeling

I'm struggling with choosing the appropriate model for a study I'm doing where I determine the survival times of certain technological applications. The goal here is to estimate how long individuals ...
KBoghe's user avatar
  • 31
0 votes
1 answer
124 views

Explanatory variable on group level in mixed model

I'm looking at how the scoring procedure influences individual behaviour in competitions. The independent variable (scoring procedure) is measured on the competition level, while the dependent ...
Sebas.M's user avatar
  • 21
0 votes
0 answers
38 views

Determining Link for GLM

I am having a great deal of difficulty understanding how to use the Generalized linear model for my data set. The response variable of interest is hatch success of sea turtles, which is a %. The ...
Manu's user avatar
  • 1
0 votes
0 answers
45 views

How to test significance of difference between regression coefficients for multiple interaction categories?

Suppose I have N multiple categories (a discrete interaction variable) and representative samples of which. I'm fitting a multi-variate X linear regression model to response variable Y for each ...
JasperK's user avatar
0 votes
1 answer
19 views

Multi-level data query

We want to find the relationship between supervisor's narcissism and subordinate's job commitment. We have collected data from 600 supervisors and 1800 subordinates reporting to them (three ...
Rahul Yadav's user avatar
0 votes
0 answers
81 views

On how to interpret paired comparisons for model-adjusted means in GLMM

I have been trying to learn how to obtain the model-adjusted means (or least-square means) from GLMM, and come across some counterintuitive results. Below is the data I am currently using. It's the ...
bbKZO's user avatar
  • 129
0 votes
0 answers
148 views

HELP: LM shows no relationship, but LMM does

My research question is assessing if a variable (let’s call it ‘x') can predict another variable (let’s call it ‘y’). The two variables x and y are in the same units, but they just come from ...
mucaua's user avatar
  • 9
0 votes
0 answers
308 views

Why are the confidence intervals so large for the difference of differences?

I have run a generalized linear mixed effects model with the glmmTMB package to determine if there is an interaction between two categorical predictors, treatment and location, in predicting the ...
Rachael's user avatar
  • 81
0 votes
1 answer
233 views

Multilevel analysis - interpretation not significant at level 1

I'm doing a multilevel analysis for the first time for my master thesis. The goal of my study was to create behaviour change through an intervention. Participants are measured for behaviour at 3 ...
clarmar's user avatar
0 votes
1 answer
117 views

Mixed-effects models for within-subject psych experiment (in Stata)

I have a question about how to best analyze data from an experimental psychology study. Briefly, 250 participants were asked to assign four different pictures (Pictures A - D) to two different ...
PotterFan's user avatar
0 votes
0 answers
81 views

Multilevel model with nested groups

I am making a multi-level linear model in R using lmer Structure of my data is a bit convoluted There are 8 Bogs with 6 squares where damage is evaluated and 3 sweeps for insects. Squares 1,2 ...
NicoFish's user avatar
0 votes
0 answers
385 views

Linear Mixed Model Failing to Converge

I am attempting to run a Multilevel Mediation in R with overtime data (4 time points, 50 participants). I was hoping to create two new columns for each outcome and predictor variable, a baseline ...
Katie Harrison's user avatar
0 votes
0 answers
33 views

How to choose the independent variables in a GLMM without performing stepwise selection? With a global model? How to decide then?

I am trying to conduct an inferential binomial GLMM with a large dataset and many independent variables. I was attempting to do a stepwise AIC selection but keep reading it is a bad idea. However, ...
JVal's user avatar
  • 11
0 votes
0 answers
777 views

confused about effects vs. means parameterization in R - which is right for Anova?

I'm running a few GLMs and using the effects (e.g. glm(var1~var2...) ) and then means parameterization (i.e. glm(var1~-1+var2...) -- the one without the intercept). I understand that effects gives you ...
user246952's user avatar
0 votes
1 answer
127 views

Generation of synthetic data for Hierarchical clustering

I wanted to test various hierarchical clustering algorithms to check which algorithm performs best. For this, I was considering simulating some ground truth. Is the possible to generate a correlation ...
newbie's user avatar
  • 255
0 votes
0 answers
21 views

How to formulate a generalized linear mixed model?

I have a data set like this: population: numeric country: categorical city: categorical, nested in country century: categorical, crossed by city and country year: categorical, nested in century, ...
A. Caikov's user avatar
0 votes
0 answers
66 views

forced fixed intercept but lattice plot showed random intercept

I was running a model and something weird pops up. I ran a multi-level regression using the code below: ...
Fan Xuan Chen's user avatar
0 votes
0 answers
54 views

In a Multi-level Bayesian Hierarchical Model, would higher level parameters be affected by how they are jointly modeled in lower levels?

Suppose we have a Multi-level Hierarchical Model where: $$ \begin{equation} Y_{0i} \sim Bin(\theta_{0i}, n_{0i}) \\ Y_{1i} \sim Bin(\theta_{1i}, n_{1i}) \\ \theta_{0i} \sim Unif(0,1) \\ log\left(\...
user321627's user avatar
  • 4,260
0 votes
0 answers
20 views

Pre-whitening longitudinal MLM

I am conducting longitudinal multilevel models (Level-1 = Daily observations; Level-2 = PARTICIPANT). Predictors and outcome variables are measured every day. Do I need to pre-whiten my data (and why)...
George's user avatar
  • 21
0 votes
1 answer
145 views

The function of TIME in longitudinal MLM

I am conducting longitudinal multilevel models with Daily observations as level-1 variable and PARTICIPANT as level-2 variable. Predictors and outcome variables are measured every day. I am confused ...
George's user avatar
  • 21
0 votes
0 answers
625 views

Predicting individual-level outcome with only group-level data

Suppose I have summary data from a number of different classrooms, and I want to model a binary outcome (pass/fail) for individual students. I have no individual-level data. I have some classroom ...
DWal's user avatar
  • 101
0 votes
0 answers
198 views

Posterior distribution of ATE with Bayesian propensity score model?

I am using propensity score weighting (PSW) to estimate the average treatment effect (ATE) of some treatment $D$ on an outcome $Y$ with covariates $X$. I have seen several ways in the literature (both ...
user242413's user avatar
0 votes
0 answers
115 views

random effect variance as pseudo-rsquared in GLMM

Suppose I have data on the abundance of a species across multiple sites that differ in some covariate of interest. Suppose that the logarithm of the abundance (logAbun) meets assumptions for linear ...
Jacob Socolar's user avatar
0 votes
0 answers
66 views

If change is DV and Pretest is covariate, should random effects take the form of (1|subjects) or (Pretest|subjects)?

I have Change from Pretest to Posttest (gain, no_gain, decline) as the DV. Pretest and Group as covariates. This called for a multinomial regression ...
Acer acer's user avatar
0 votes
0 answers
55 views

How to run a nonlinear repeated measure multilevel regression?

I'm working with a colleague on a project that requires analysis a fair bit beyond my expertise. Background We are looking at recall of events in films. We broke down the film by Events and by shots ...
Michael Bailey's user avatar
0 votes
0 answers
384 views

3 Level Hierarchical Models in STATA; Null model fails to converge

3 Level Hierarchical Models in STATA; Null model failed to converge About the Dataset I am working with DHS (Demographic and Health Survey Data) data. DHS uses a two-stage cluster sampling process. ...
Mayank Agrawal's user avatar
0 votes
1 answer
105 views

How to interpret the output when one or two levels are significant in the seemingly insignificant categorical predictor in logistic regression

I am running a multilevel binary logistic in SPSS. The predictor variable in question is a categorical variable with four levels. In the first fixed effect table, it seems like the predictor variable ...
Jieun Kim's user avatar
0 votes
0 answers
26 views

Analyse interaction/moderators first and then adjust for confounding

In my research I am interested in subgroup analyses. I am looking at a general association between two variables (environment and health outcome) with interaction terms (personal factors, which are ...
katia00's user avatar
  • 11
0 votes
0 answers
2k views

How to Interpret the result of generalized linear mixed model?

I ran a generalized linear mixed model using lmer in R, and I'm struggling how to interpret the result. The response variable is a result of 25 consecutive binary choices. The point where I'm stuck is:...
user165723's user avatar
0 votes
0 answers
32 views

Different significance in GLMM interactions

I am confused about different significance results obtained in GLMM's. First, my set of relevant variables: ...
mto23's user avatar
  • 637
0 votes
0 answers
26 views

Compare treatment effects across Levels of aggregation

Suppose I am running an experiment to see if a treatment changes the mean weight of a group of people. Note that I am specifically interested in the mean weight: if half the people get heavier, and ...
samplesize1's user avatar
0 votes
1 answer
88 views

Multilevel Model Application / Specification

I have some multilevel-data-structure, where I want to regress top 10 music chart listings (dependent variables: downloads and rank) on some song characteristics (Xi). The problem for me now comes ...
Mr.Morgan's user avatar
0 votes
0 answers
128 views

linear mixed model gives wrong results

I am currently learning Stan (MCMC C++ engine with wrappers in python and R) and implemented a linear mixed model $y_{i,j} = \beta_0 + \mathbf{x}_{i,j}^T\beta + \alpha_i + \epsilon_{i,j},\ 1\leq i\...
tenticon's user avatar
  • 175
0 votes
0 answers
434 views

Paired sample t-test equivalent for intensive longitudinal assessments

I am a bit new to multilevel and mixed-effects modeling. I have a dataset, where I have sensor measurements throughout the day for 4 weeks on N participants. I have some prompts on their smartphones ...
RforResearch's user avatar
0 votes
0 answers
349 views

Why am I getting low effective samples and high rhats with multilevel Bayes models using brms?

I've been using the brms package in R to run some multilevel Bayes models. I've been getting some strange results however (such as extreme predictions and not ...
Will T-E's user avatar
  • 479