Skip to main content

All Questions

18 questions from the last 30 days
Filter by
Sorted by
Tagged with
6 votes
1 answer
127 views

Is there a way to forecast by subgroup without forecasting each subgroup separately?

I am trying to find an appropriate model to forecast the number of applications received at the end of a recruitment cycle based on previous recruitment cycles and the number of applications received ...
Richard Manser's user avatar
4 votes
2 answers
41 views

Accounting for non-independence and autocorrelation in HGAM

I am currently trying to fit a HGAM to model differences in daily activity patterns of fish in two treatments. Data were collected with high-resolution telemetry, and I currently have estimates of ...
Jack B's user avatar
  • 105
3 votes
2 answers
109 views

R: How to fit a linear mixed model with a custom covariance structure for two random intercepts

Suppose I have a dataset with repeated measurements on q clusters. I want to fit an LMM with two random intercepts, on the same cluster, with a non-diagonal covariance structure on the random effects (...
Giora Simchoni's user avatar
3 votes
1 answer
46 views

Calculate marginal effects for random effects model with two crossed random effects

I am trying to get effects marginal of two crossed random effects (using STAN or brms). I understand how to do it for a single random effect following McElreath's book and Kurtz's brms version of the ...
Christopher Rounds's user avatar
4 votes
0 answers
73 views

Major discordance between uncertainties estimated by `predictInterval()` and `bootMer()` for binomial GLMM with cloglog link

We have been using predictInterval() from the merTools package to bootstrap uncertainty for binomial GLMM models (complementary ...
Karthik Thrikkadeeri's user avatar
1 vote
0 answers
51 views

Opposite results using Bayesian (STAN) vs Multilevel model (nlme). How is this possible?

My datasets contains the median wages and the cumulative installed wind-capacity for 4000 counties over a period of 20 years. The wages tend to rise over the period and the capacity tends to highly ...
user442239's user avatar
0 votes
3 answers
43 views

Problem finding a distribution for my data (glmm)

I want to do a correlation analysis of two variables ranging from zero to one (including those values), and including other possible environmental explanatory variables. I opted for a mixed model, ...
LidiaFernandez's user avatar
0 votes
0 answers
42 views

LMM: effect of day may differ between subjects - fixed or random effect?

We tested 12 animals in a test with three phases (a/b/c) in three conditions (C1/C2/C3) on nine days, i.e. every animal experienced each condition three times. On each day, four animals were tested in ...
bos's user avatar
  • 13
1 vote
2 answers
31 views

Should I conduct a multilevel for this or another analysis? Need help

I have three sources of data (teachers, parents and students) assessing students, in three waves. I want to assess all and see the differences between moments but then I also want to use variables for ...
Margarida Santos's user avatar
1 vote
1 answer
38 views

Correct binomial GLMM for temporal trends in species occurrences

I have a dataset with 80 species which were sampled in about 120 water bodies at two time periods (historical / recent). Only presence/absence of the species in each water body is considered. The data ...
Friede's user avatar
  • 11
0 votes
0 answers
18 views

How to Forecast Sales for Sub-Locations Without Historical Proportion Data?

I have a time series dataset of total sales for a product in a store over time. This product is available in two different locations within the store: one stand near the checkout and another stand in ...
Raheshi Knuwga's user avatar
0 votes
0 answers
32 views

GLMM with log-Gaussian, log-Gamma

I need someone smarter than I am to look at this problem, and I'd appreciate it if you'd take the time. So, I am trying to predict reaction times here in a glmm using a battery of IVs. You can see the ...
Waaaayne's user avatar
0 votes
0 answers
22 views

Derive gamma-parameters from preset R^2 in mixed models

For a simulation study in R, I want to select the effect sizes according to a preset $R^2$. Consider this two level random intercept mixed model, with one L1 predictor $X_{ij}$ and one L2 predictor $...
Linus's user avatar
  • 153
1 vote
0 answers
11 views

How to model frequency data with mixed effects?

I have some frequency data that I am not sure how to model I have two independent experiments (replicate: A, B), where I treat neurons (10 per treatment) with the same drug but for different time ...
Sebastian Rivas's user avatar
1 vote
0 answers
9 views

Fauna activity responses to fire with camera traps - issues with lacking spatial independence and how to analyse

I am trying to work out the best approach for data analysis for my PhD and have gotten a bit stuck. I am working in the field of ecology, trying to understand responses of fauna before and after a ...
Gabrielle Brennan's user avatar
-1 votes
0 answers
8 views

what happens when a network has low closeness centrality - what happens to nodes on the periphery [closed]

I have thirty-nine nodes with closeness centrality scores but I do not know what to say about the nodes on the periphery who do not have scores.
user451331's user avatar
0 votes
0 answers
6 views

Does mediate() in r work with a multicategorical predictor?

My data is multilevel (multiple measures for each participant within each condition) with 3 conditions. DV = continuous; Mediator = continuous; IV = categorical (with 3 conditions: control, condition ...
stats.guy.412's user avatar
0 votes
0 answers
9 views

Extracting individual level posterior class memebership probabilities in multilevel LCA

I am conducting a multilevel laten class analysis using the R package multilevLCA. I have fitted the model using multiple steps (i.e. determining optimal number of classes as well as clusters). I now ...
Simon's user avatar
  • 1