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
1answer
12 views

Using and interpreting nested manova in R

I have measured the concentration of 7 elements in 30 Lakes. I have between 8 and 12 observations per Lake (i.e., I measured the ...
1
vote
0answers
16 views

Nested Multinomial Logit Estimation

I am trying to estimate a nested multinomial logit model for transportation mode - the decision tree of how consumers choose a travel mode for a trip. One way of estimating the nested multinomial ...
1
vote
0answers
19 views

Mixed model with first and second levels nested, but crossed higher levels

I'm having trouble figuring out the equation of a mixed model I'm trying to estimate. For beginning, I have data collected for several municipalities and banking institutions over the years. In the ...
0
votes
0answers
19 views

Random effect nested within fixed effect in mixed model in R

I am trying to respond to a reviewers assessment of my data analysis for a peer reviewed journal. I sampled fish abundance at 4 sites Inside a reserve and 4 sites outside of a Reserve ('Reserve' has ...
1
vote
0answers
16 views

Syntax for repeated measures, nested, mixed effects model using lmer()?

I'm trying to analyze temporal trends in a community of amphibians and looking to see what variables may be important in understanding declines. My response is a single vector of ln transformed ...
3
votes
1answer
43 views

¿How to compaire nested logit models using anova in R?

I have two logit models: Model A: ...
0
votes
0answers
20 views
1
vote
1answer
35 views

Reliability in R

I'm having trouble understanding the difference between omega 1 and omega 3 in reliability function in the semTools package in <...
0
votes
0answers
18 views

Nested Variables- Insiginficant estimate. Whats Next?

Note: for more background about nested variables please see: this link. I have 2 variables ( one nested in the other) and I am trying to model them in R. The variables are as the following: ...
0
votes
1answer
26 views

What defines “nested model” for the likelihood ratio test?

I have a question about what defines “nested models” that can be compared using the likelihood ratio test (LRT). For example, given the 3 linear models… M1: Y = Intercept + B1 * X1 + B2 * X2 M2: Y = ...
0
votes
0answers
16 views

Can a more complex model be rejected while a simpler nested model is accepted?

When testing log-linear models on data, I was under the impression that if the model just below the saturated model, say $\log(m_{ijk}) = u + u^A_i + u^B_j + u^C_k + u^{AB}_{ij} + u^{AC}_{ik} + u^{BC}...
1
vote
1answer
19 views

How is conditioning on a variable different than specifying nested random effects

How is conditioning on a variable similar to or different from using a mixed effect model? I am a biologist. I'm analyzing my data. I have body sites nested within individuals. We're interested in ...
0
votes
0answers
17 views

3 way Anova with nested factor?

I would like to look at the difference in plant height between treatments and species of plants, my experimental setup is as follows: 6 plots are situated on 3 different elevations and are either ...
0
votes
0answers
40 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 ...
0
votes
0answers
19 views

Temporal data in nested design - GLMM

I have a question about how to deal with the temporal aspect in a nested design. Let's say that I have different sites, in these sites, I have different blocks, and within each block, I measured every ...
3
votes
2answers
46 views

Multilevel between-subject design using glmer

I want to test the effect of different learning strategies across time. Conditions were manipulated between subjects. Each participant answered the same set of binary questions across 3-time points....
0
votes
1answer
38 views

Is GLM with one continuous variable of 4 levels a nested model of GLM with 3 dummy variables?

Y is just a binary variable 0 and 1. X is a variable with 4 levels 0, 1, 2, 3. We fit a logistic model A regarding X as continuous variable. Then we fit a logistic model B regarding X as categorical ...
1
vote
0answers
32 views

nested regression model using lmer?

I have to look for the affect of crater degradation, rim irregularity (RI), radii variation (RV), depth-diameter rati (Dd) and mantled rim percentage (MRP) on crater rim thermal inertia. 138 craters (...
0
votes
0answers
16 views

Is a likelihood ratio test used mostly for nested hypothesis?

In internet, many people claim that a likelihood test is used when the parameter space of the null hypothesis is in the parameter space of the alternative hypothesis. This sounds contradictory to what ...
0
votes
0answers
31 views

Why does DEVIANCE decrease when I delete a variable? Multinomial regression

I am comparing several nested models in a multinomial regression (multinom package Rsoftware). As far as I know, when we add a variable to a model the fitting is improved and should be reflected in a ...
5
votes
0answers
44 views

What are some of the robustness checks for the likelihood ratio test?

In the application of statistical methods in social science, one usually does a lot of robustness checks. If I got some publishable findings using LRT test by discrimination two theoretical models, ...
0
votes
0answers
27 views

Nested Negative Binomial (or zero-inflated) Regression

I am currently working on methods for a thesis project. I will be modeling the outcome of disease incidence for two different diseases using negative binomial regression. It will most likely be zero-...
0
votes
0answers
11 views

Can two linear models be nested even when one does not have a subset of the exogenous variables of the other?

The definition I keep seeing of 'nested linear models' is that the second model should contain a subset of the exogenous variables of the first model. However, in my situation it is most natural to ...
2
votes
0answers
19 views

Multilevel Analysis for count variable

I have a general question about multilevel analysis and have therefore created a minimal example to represent the data I want to analyse: ...
1
vote
2answers
55 views

What is a “symbolically nested” model?

survey::anova.svyglm is a method of anova() that does model comparison for survey data. The details section of the documentation ...
0
votes
2answers
66 views

Mathematical notation (or formula) of mixed effect models

I am unsure how the correct mathematical notation of two mixed model I've estimated in R should look like. The data consists of test scores of students that were in different classes. Some of the ...
0
votes
0answers
46 views

cross nested model R

I need help to understand how to enter a nested factor in a model. Basically, I tested 38 Italians and 35 Persian asking them to decide whether a sentence was congruent or not with an action they ...
1
vote
1answer
70 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 ...
1
vote
1answer
223 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 ...
1
vote
1answer
29 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 ...
1
vote
0answers
22 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 ...
1
vote
0answers
34 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 (...
1
vote
0answers
26 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 ...
0
votes
0answers
167 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 ...
4
votes
1answer
46 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 ...
0
votes
0answers
23 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. ...
2
votes
1answer
150 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 ...
0
votes
0answers
99 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 ...
1
vote
0answers
40 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 ...
3
votes
2answers
53 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 ...
2
votes
1answer
393 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() ...
0
votes
1answer
92 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 ...
1
vote
0answers
27 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/...
0
votes
1answer
112 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 ...
0
votes
2answers
301 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 ...
2
votes
1answer
70 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 ...
0
votes
1answer
339 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 ...
2
votes
1answer
363 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 "...
1
vote
0answers
87 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 ...
0
votes
1answer
304 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: ...