The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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.

84 questions
Filter by
Sorted by
Tagged with
31 views

Multilevel Non-parametric Model: using signed ranks in a classic linear mixed model?

I have data that with my best efforts cannot be transformed into something resembling a normal distribution. Or more specifically, the residuals of the linear model I want to run on the data is in no ...
38 views

rules determining nesting in generalized additive models

I understand the concept of nesting when all of the free parameters are clearly identified in linear or generalized linear models (one model is nested within another if its free parameters are a ...
24 views

Help for possible nested mixed effect model

I'm super new to mixed effect models and I wanted to make sure I was interpreting R code correctly. I'm using the "lmer" function in the "lme4" R package to do my analyses. I'm interested in ...
20 views

Is a repeated measures design a crossed design? [closed]

I have read about the distinction between crossed and nested designs. I would like to know if a repeated measures design is a crossed or a nested one. I'm leaning towards crossed but I can't find any ...
32 views

Can I do a regression with 3 independent observations and inside of each several nested (thus dependent) observations?

I have an (ecological/soil science) experiment with a multiple nested design with 3 real independent observations (sites with different caracteristics), and several dependent observations within them (...
24 views

what is the model for all random effects multilevel nested anova in lmer()? [closed]

Is it lmer(y ~ 1 + (1|a/b/c) or lmer(y ~(a + (1|a/b/c))? The first input gives a blank output for ANOVA and I try to get an ...
57 views

Multiple Nested Random Effects affecting a Mixed Model

I have a quite complex psychophysiological data dependant of different nested data in a repeated measures experiment. The first nested structure comes from the data collection were there are several ...
32 views

How to deal with subset of variables that are invariant for subsets of sample

I am thinking about a problem in which I have a sample which consists of subsamples with the same values for a subsample of independent variables. I want to apply a simple linear regression with ...
20 views

Summary Output for Nested Random Effect in Fixed Effect

I am trying to build a mixed model with random effect nested in fixed effect. Below is an example dataset. ...
65 views

ANOVA with Error term

I am looking for help to create a model for the following data: I'd like to understand if the abundance of a certain microbial group (dependent continuous variable QUANTITY) found in soils is been ...
48 views

Model selection: Comparing nested models without likelihood

Say I have a set of three models $M = \{M_1, M_2, M_3\}$ that are nested, i.e. $M_1$ is a constrained version of $M_2$ which again is a constrained version of $M_3$. I have a set of data $X$ with some ...
40 views

nested logit: must all nests contain at least 2 items?

I'm estimating a model about how people travel in R. There are 4 alternatives: air, car, bus, and train. I want to create a nested logit model in which travelers first choose whether or not to fly, ...
26 views

Inestability of BIC when selecting nested models

Currently I am working with spline regression and a method for selecting knots adaptively. My method gives me a set of potential knots that generally has a large number of elements. Following He et al....
38 views

fit the linear mixed effects model

I was suggested by StackOverflow that it's probably better to post this question here. Suppose we have the following linear mixed effects model: How do we fit this nested model in ...
49 views

Comparing non-nested GLMMs with AIC

Suppose I want to compare four non-nested models: m0 = lm(y ~ 1) m1 = lm(y ~ x) m2 = lmer(y ~ 1 +(1|A)) m3 = lmer(y ~ x + (1|A)) Can we use AIC to compare ...
17 views

what does non-nested copulas mean?

I read from "Pair-copula constructions of multiple dependence", the following statement: "The likelihood of the Clayton copula is lower than that of the Student copula (39.72 vs. 47.81). However, ...
187 views

How do you deal with “nested” variables in a regression model? in R

A conceptual solution for this scenario has been posted in: How do you deal with "nested" variables in a regression model? Problem is I am having trouble using this solution in R - glm() ...
48 views

Stacking Final Model Development After Cross Validation

CV (or Nested CV) are normally done to evaluate and compare different ML algorithms as part of model development and evaluation phases. Once these stages are complete, one normally develops the final ...
64 views

Nested design with “lmer” function

I have a nested data which I cannot model properly. The data satisfies all the assumptions of ANOVA. Data description: 4 varieties of plants planted in 4 blocks and in each block the same variety has ...
22 views

Determining nested or crossed random effects in study design

I've found several versions of the canonical example of nested random effects about classes in schools or students in classes.. However, I'm still having a hard time connecting the school/classes/...
43 views

Generalized Estimation Equations 3 levels

I have a dataset where students are nested within classes, and classes are nested within schools. I am interested in evaluating the effects of a treatment delivered at the student level. The response ...
143 views

The correct random slope model for nested data

I'm trying to see how personalities of individuals change with time. The variables in my data are: 1. latency to emerge (response variable in continuous scale) measured for 204 individuals from 14 ...
17 views

Introducing random slopes in models with nested random effects

I'm trying to see how latency to emerge (response variable) is varies with time (trials). Individuals (ID) are nested within colonies. The nesting is such that individuals 1-20 belong to colony 1, 21-...
26 views

Comparing nested models with orthogonal predictors using the t-statistic

Imagine we have a pair of nested models. Model A includes $n$ terms. Model B includes $n+m$ terms. To assess the "value add" of ...
59 views

Logistic regression when the number of options differs by group?

I have data from a laboratory experiment in which I look at the effect of expanding the choice set on a particular option being chosen. The idea is that introducing an Option "B" reduces demand for an ...
97 views

glm model with two nested variables in R (lme4)

I have a problem writing a glmm model in the lme4 package. A little background: I measured olfactory behavior (OB) in fruit flies (80 genetic lines in total), they are from two different populations, ...
205 views

How can I do a nested t-test?

I have data. Soil samples were taken from meadows and adjacent arable fields (see picture): There are always three samples per each opposing site. Since those 6 spatially conjoined sampling points ...
204 views

Mixed Effects Model: How to Specify a Random Effect Nested Within 2 Factors in R

I have some example data that I need to fit using a mixed effects model. I can do this in Minitab, but struggling to specify the model correctly in R. I need 2 factors treated as fixed effects "...
63 views

Why always AIC and BIC are used in mixture model than Vuong test

I am working with mixture models. I fitted more than one model to the data and then try to select the most appropriate model using different selection criteria, for example, AIC. My supervisors asked ...
196 views

How to calculate estimated log-sum coefficient in the context of nested logit model in R?

On page 13 of this document, it indicated the estimated log-sum coefficient. How can I obtain the result with R? The R output I think is relevant for this answer: ...
329 views

Can one give an example(s) of when non-nested AIC model comparison is not useful for model selection?

Note: The question here is not the same as this one. Indeed, as an answer to that question the answer below was closed as unrelated, together with the suggestion (credit @gung) to ask a separate ...
176 views

Does the order of models (and so variables) matter in nested models?

I am trying to use nested models to investigate the influence of 5 factors on my dependent variable. I am not interested in interactions, only the influence of each variable taken separately. My ...
20 views

If nested models are a restricted version of some model, how would i call it's extended versions?

Let's say I have a model like A = α0 + α1*B + α2*C + α3*D + ϵ (Model 1) Then I can estimate it's nested models ...
305 views

Multilevel nested glmer model (logistic regression) with 4 groups

I have 3 level nested data that is causing convergence problems (glmer function in lme4, R for multilevel logistic regression). The Data Country(4 groups) -> School(100 groups) -> respondent A ...
56 views

Comparison of nested regression models vs predictor's significance within model

I am building regression models to evaluate the effect of several characteristics of genetic variants (my predictors) on a handful of phenotypic parameters (continuous and binary - hence I am building ...
82 views

Comparing measures of association

In a survival analysis, I would like to prove that a variable Y is more associated with an outcome than another variable Y'. My ...
44 views

Mixed effects model for experimental setup

I conducted an experiment with a system that allows to perform a task on a test-object using several methods. The quality of how the task was performed is measured by an error. I measured the errors ...
51 views

How to adjust for the number of nested model tests?

How should I adjust for the number of tests I do when using the likelihood ratio difference test in a model estimated using maximum likelihood (or some flavor of), where the null hypothesis of the ...
73 views

Is it possible to have a lower AIC value for the smaller of two nested models?

I am testing the parallel lines assumption of an ordered probit model by running a likelihood-ratio test against a model where the coefficients can vary for each step of the ordinal response variable. ...
82 views

Likelihood ratio test for non-integer degrees of freedom?

I want to compare two (non-linear) models, defined by two parameters $\beta_1$ and $\beta_2$. The first (null) model is nested inside the second (alternative) model. Specifically, in the null model, ...
35 views

Regression to check predictivity of mutation position on phenotype

I am interested in checking how (and if at all) predictive is the position of genetic mutations in a given disease gene on the severity of the disease phenotype (so, I only have affected individuals (...
64 views

nested cross validation and class imbalance

I cannot find any answer or literature to my problem. I have completed a nested cross validation using the mlr package in R. Before I conducted the nested cross validation I first tried to improve my ...
569 views

What is the relationship between ANOVA to compare means of several groups and ANOVA to compare nested models?

I've so far seen ANOVA used in two ways: First, in my introductory statistics text, ANOVA was introduced as a way to compare means of three or more groups, as an improvement over pairwise comparison, ...
149 views

How the Error() term in aov() decides what goes in which stratum?

I am trying to understand how the principles of nested anova in R, but I am having extreme difficulty with the error term. Imagining the simplest case. I measured plant growth in two places, A and B. ...
113 views

What is the best way to model nested binomial data?

I have results from a simple experiment where organisms on a plate are exposed to one of 4 concentrations and the lowest concentration is the control. I have coded the concentrations as a factor. ...
148 views

Nested effects in lme4

I have one park where each half is under different management (due to county lines splitting it) and I'm interested in examining the effect of the management style on individual subjects. Within each ...
45 views

random terms in nested mixed effects

I have 300 subjects in 2 conditions and behavioral measures over 6 years. Each subject is measured twice (in each condition) at each time point. I know would like to see if the slopes of condition one ...
212 views

Do I have a nested design or simple three-way Anova?

I have measured nitrogen release from sediment in a river at six different sites (blue squares), at each site I took 3 replicate measurements of nitrogen release within each of two habitat types (...