Questions tagged [nested-models]

One model is "nested" in another if it is a constrained version of it. Nested models can be compared with a likelihood-ratio test. Use this tag for questions about comparing non-nested models too.

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

Nesting in bayesian inference

I am currently trying to develop a model that takes into account different data sets that are not directly comparable. More specifically, my model needs to describe the amount of a drug in the blood, ...
Jan's user avatar
  • 11
0 votes
0 answers
17 views

Three stage nested design with repeated sampling

My experimental design is similar to that from a classic study of metal alloy hardness. The classic example: A researcher designs an experiment to study the hardness of a metal alloy. A three-stage ...
F.Sivy's user avatar
  • 11
0 votes
0 answers
34 views

Modeling a Random Effect nested in another random effect in R using the mgcv Package

I have a dataset consisting of 1000 in-vitro fertilization (IVF) cycles from a total of 700 patients. Each cycle has several variables, including; the total number of follicles the patient had in ...
insan's user avatar
  • 85
0 votes
0 answers
16 views

Nested Model building

I am trying to write the model which is like this.Suppose you have a nested design (B nested within A), but the number of levels of B can change, depending on the level of A. In addition, the sample ...
rony's user avatar
  • 1
1 vote
1 answer
19 views

Pooling data after a nested anova

I have a general question (data can be provided if needed). If I ran a nested anova and there is no significant effect of the nested factor on the model, is it reasonable to remove that variable and ...
Liam T Sullivan's user avatar
0 votes
0 answers
26 views

Variance and Covariance Expectations in 2-Level Model with Random slope & intercept

1. Could you provide an example of how to hypothesize the variance and covariance expectations for a multi-level model with random slopes and random intercepts? I do not yet have access to my data, so ...
shesmartsometimes's user avatar
0 votes
0 answers
20 views

Nested Fixed Effects

I have been reading up on nesting in Linear Mixed Effects modelling, and typically nesting is for random effects. However, if I want to estimate the effects of language and type of word for each ...
Wei Ting Chua's user avatar
0 votes
0 answers
24 views

How to fit a nested glm model using deviance for selectio?

I have weight as response variable which is continuous variable. And 3 explanatory variables viz; Parity(Count), Age(continuous) and Sex(Factor). I want to fit a glm model using deviances analysis to ...
A M Bello's user avatar
1 vote
1 answer
75 views

Nested Linear Mixed Effects Model for Region-of-Interest to Region-of-Interest (ROI-to-ROI) Analysis

I am trying to examine the effects of language (English/Mother Tongue) on functional connectivity between different regions of interest (ROI). Hence, I employed a nested Linear Mixed Effects Model ...
Wei Ting Chua's user avatar
0 votes
0 answers
64 views

Post-hoc test for comparing nested linear models in R

I'm taking a stats class, and we're working in R and doing a bunch of different types of regression. Where I'm having issues is that we're doing an F-test on nested models (or a partial F-test, I ...
Heather Marie's user avatar
1 vote
0 answers
61 views

Partially nested ANOVA

I have a data set that I would describe as unbalanced or partially nested and I am unclear about how to proceed. My data is nested as follows. The number of samples I have is listed in parentheses. ...
mels's user avatar
  • 23
2 votes
0 answers
36 views

Whats the model of this experiment

$36$ blood samples are collected at random from a blood bank and $6$ samples are sent to $6$ laboratories for studies. The assignment of each sample to each laboratory is random. A friend of mine told ...
Jonathan Baram's user avatar
0 votes
0 answers
22 views

Comparing nested simple and multiple regression models

I have a question regarding the intepretation of results from two regression models, these are based on the CAPM and APT (Arbitrage Price Theory) The models are presented in the picture below: Where E(...
Simon Rydstedt's user avatar
3 votes
2 answers
202 views

Multilevel regression question: can you use level 2 variable as a predictor variable?

I was just reading a paper in the field of education and there was a part I couldn't comprehend. The author did a multilevel regression analysis with the data which was nested in a school level. So ...
Danielle G.'s user avatar
1 vote
1 answer
46 views

Do I need a nested random effect if I do not care about decomposing variance within clusters?

Consider I have a linear mixed effect model fitted via the R package lme4 with a nested random effect structure as: model<-lmer(y~x+(1|A/B/C)) If I look at the ...
Jmmer's user avatar
  • 79
0 votes
0 answers
26 views

Nested/Crossed model specification

Experimental setup: samples are taken by two different operators each operator takes samples over the course of two days These days aren't necessarily the same day across operators On a given day, ...
Gmiller's user avatar
0 votes
0 answers
15 views

Title: Three questions about adding predictors to the highest level of a cross classified model

I’m working with a dataset that has a very complicated nesting structure. Unfortunately, because it is privacy sensitive I cannot provide a reproducible example so I will do my best to explain the ...
Twim's user avatar
  • 13
1 vote
0 answers
16 views

Crossed effects without all combinations

There are a number of posts on Cross Validated explaining the difference between nested and crossed random-effects. In this example, it is noted that all feasible random effects categories are linked ...
geoscience123's user avatar
1 vote
0 answers
269 views

Nested ANOVA in Python and singular matrices

TL;DR: Models with nested categorical factors in Statsmodels lead to singular matrices and incorrect results. I am trying to specify a nested model in the Python Statsmodels formula API to describe ...
gunport987's user avatar
0 votes
1 answer
24 views

Is it possible to get a stable hyperparameter with unstable generalization error from a nested CV?

I have created the following pipeline: ...
randomname876's user avatar
0 votes
0 answers
35 views

Multilevel model won't run in RStudio [duplicate]

I have a repeated measures dataset with provider-level data (i.e., provider's responds to questionnaires on a scale) and patient outcomes. The providers are nested within clinics and the clinics are ...
Daniel Bromberg's user avatar
0 votes
0 answers
26 views

Statistical comparison of clustered variables

I have a data set consisting of 50 measurements of cytokine concentrations in 70 patients, resulting in a (70, 50) data frame. In addition, I have a data set containing covariables related to the ...
svalkiers's user avatar
3 votes
2 answers
405 views

AIC for nested models: is the AIC of a smaller model A always smaller than that of the nesting model B?

Is it true that if models A and B are such that the covariates of B are a subset of A, the AIC of model A is always smaller than that of model B? Why?
Yvonne Shi's user avatar
3 votes
1 answer
292 views

Testing a Null Hypothesis Nested by the Alternative Hypothesis

Consider a parameter of interest $\beta \in \mathcal{B}$, and two hypotheses $$H_0:\;\beta\in\mathcal{B_0}\quad versus \quad H_1:\;\beta\in\mathcal{B}_1$$ where $\mathcal{B}_0\cup\mathcal{B_1}=\...
M.C. Park's user avatar
  • 785
1 vote
0 answers
33 views

cannot reproduce the example for nested anova

I'm working on the example for nested ANOVA from the Handbook of Biological Statistics. Copy-pasteable data can be found at https://www.biostathandbook.com/nestedanova.html and below shows my ...
foehn's user avatar
  • 131
5 votes
2 answers
63 views

How to choose number of sites and number sub-sites within each site in planning stage of a study? (ecology)

I have a situation in which I am going to perform a study on live blue mussels. The research question is how the prevalence of mussels affects the prevalence of other animals living on the sea floor. ...
Yung Gud's user avatar
4 votes
0 answers
90 views

Confused about the correct model specification given the study design (fully-crossed factors with nested repeated measures)

THE ISSUE Apologies in advance, being primarily a biologist and only tangentially a statistician I hesitate to ask this question for fear of overly complicating a simple situation. That said, I have ...
Wu Wei's user avatar
  • 144
1 vote
0 answers
39 views

Difference between nested anova coded with "/" and linear mixed model with nested random factors

I'm trying to analyze data where site is nested within habitat which is then nested within region. Site is a random variable, but habitat should technically be fixed based on how the study was ...
Erin Voigt's user avatar
1 vote
1 answer
97 views

Does there always exist for n small, a non-chi-squared test-statistic for the likelihood-ratio (neyman-pearson, karlin-rubin), score, and wald-tests?

An additional reason that the chi-squared distribution is widely used is that it turns up as the large sample distribution of generalized likelihood ratio tests (LRT).[6] LRTs have several desirable ...
user avatar
2 votes
0 answers
37 views

Can log-likelihood test be applied to test two models which are not nested but nested within a full model?

If we have a response variable y and three predictor variables x1, x2, and x3 and M1 and M2 are nested within M3 where ...
wkde's user avatar
  • 131
4 votes
1 answer
618 views

how to compare the AUCs of ROC from nested models and non-nested models from published papers

I'm interested in comparing two AUCs from ROC in two nested models and two AUCs in non-nested models but using the same dataset in a paper. I know DeLong test can be used to compare them, but the ...
Zhoufeng's user avatar
  • 143
1 vote
1 answer
55 views

Is ARIMA-GARCH nested within ARIMA?

I wanted to compare ARIMA(1,1,1)-GARCH(1,1) and ARIMA(1,1,1) model forecasts with a Diebold-Mariano test, but I know that it cannot be used for nested models. Is ARIMA-GARCH technically nested within ...
Ula 's user avatar
  • 25
1 vote
1 answer
228 views

How to determine if a model is nested?

I have two models for prospect theory utility functions and want to compare their fits. However, I'm not sure if the models are nested or not. The first model is given by: $U(x) = x^α$ for $x ≥ 0$ ...
user277044's user avatar
0 votes
0 answers
96 views

Non-orthogonal Nested ANOVA

I am running a nested statistical analysis of variance on a field study I preformed. Unfortunately due to the conditions of the field it is non-orthogonal nested design where the number of sub-factors ...
Erin Voigt's user avatar
0 votes
0 answers
237 views

Strange residuals vs. fitted values plot for linear mixed model / hierarchical model

I have read a couple of related questions and their answers, but nothing really fits to my specific case. I have a model like this: ...
Mika2019's user avatar
1 vote
1 answer
35 views

Hierarchical mixed-effects models notation

I have a hierarchical mixed-effects model where observations i, from group S_2 (representing municipalities), are nested inside group S_1 (representing states), which in turn are nested inside N (...
TWest's user avatar
  • 307
0 votes
0 answers
43 views

Determine feature importance of nested regression model

For remote sensing purposes, I'm trying to combine data from two different satellites. To do so, one of the two has a much higher weight than the other, but this is area specific. My goal is to use a ...
Anne0102's user avatar
1 vote
1 answer
1k views

How I can compare three models (nested) using lavaan with R?

I want to test a new model, and for doing this, as I only have cross sectional data, I need to compare different models. My model is like this: ...
JUB's user avatar
  • 11
0 votes
0 answers
96 views

How to choose the right analysis for a partially nested design?

I am not even sure if it is appropriate to call this scenario a partially nested design, but I settled for it for lack of a better term. My design is similar to the following in terms of its overall ...
Freya's user avatar
  • 165
1 vote
0 answers
227 views

How to implement nested logit model if the choice set for each individual is dynamic changing

I think this question is similar to Discrete choice model with different choice set for each sample, but that question does not have an answer. I have a dataframe in which individuals have dynamic ...
Jacob2309's user avatar
2 votes
0 answers
32 views

How to represented nested model with a varying slope?

I have a study wherein we enrolled about 40 subjects and from each subject we have collected repeated images of burns on subject's body. Approx. 2 burn locations on the body are selected initially and ...
jeffalltogether's user avatar
4 votes
3 answers
930 views

How to correctly do a nested test (t-test, rank-sum, etc)

Let's say there are two groups of participants. Each group is randomly split into control subgroup A and task subgroup B. For each of the 4 cases some random variable $x$ is measured, whose mean is ...
Aleksejs Fomins's user avatar
3 votes
1 answer
467 views

Nested repeated measures linear mixed-effects model without time as a variable

I want to build a linear repeated measures mixed-effects model in R. I have a sample N=105 that completed measures at two timepoints (baseline and follow-up), and small group (N= 29) that received an ...
Ann's user avatar
  • 31
1 vote
0 answers
36 views

Estimating the mean and variance for a set of probabilities (bounded by 0 and 1) based on Image Segmentation results

Data My data is from a set of images wherein I am computing the Sensitivity of an image segmentation algorithm. Sensitivity is computed as: $$Sensitivity=\frac{TP_{pixels}}{TP_{pixels}+FN_{pixels}}$$ ...
jeffalltogether's user avatar
1 vote
1 answer
646 views

Comparison between Nested and Non-nested Model: BIC and LRT

I would like to select the best model for predicting breast cancer risk, specifically, it is the comparisons between weight/BMI/height, as other covariates remain the same in all the models. But I got ...
Zhoufeng's user avatar
  • 143
1 vote
1 answer
36 views

Is computing the average of a ratio the correct approach, and how to do it with nested data?

In general, is computing the average of a ratio appropriate? And secondly, is the nested model below appropriate for doing this? Here is a data set created from the Iris data that resembles my ...
jeffalltogether's user avatar
1 vote
0 answers
386 views

Should I use Friedman test or Mixed Model for my data in R? Nested or not?

I have my Response variable which is Proportion of Range Exposed to extreme events for terrestrial mammal species in the future. More clearly, it is the Difference of Proportion of Range Exposed (DPRE)...
matteo s.'s user avatar
3 votes
1 answer
209 views

Added variable non-significant but model fit better?

I ran two nested models: Model 1 without an interaction term, and model 2 with the interaction term. The interaction term turned out to be non-significant in model 2, but the model fit index (wald ...
Susan's user avatar
  • 33
0 votes
0 answers
32 views

How to interpret nested GLMM results

I have a dataset like the following: ...
geoscience123's user avatar
0 votes
1 answer
195 views

What is the appropriate random effect model and R-code for following data and question?

I attached a data here called image_study. The “image_study.csv” dataset contains data from a study examining the speed of classification of two different types of image: artworks, and natural images. ...
Mehdi Looha's user avatar