Dear all,
I am currently working on a project where we aim to estimate a random effects models. Unfortunately, I cannot share the data or make an example using dataex as it is confidential. However, our data takes on the following form:
Factor1 (level 1) is nested within Factor2 (level 2). On level 3, we have two different factors, i.e., factor3a and factor 3b. Factor 3a is nested within factor 2, which is nested in factor 1. Factor 3b is also nested within factor 2 (which is nested in factor 1). Factor 3a and factor 3b are not nested within each other, i.e., to my understanding they are cross-nested.
After consulting the syntax, I tried to implement this structure using the following code:
(1)
However, I always get an error code "3900 unable to allocate real <tmp>" when running the code with the full set of data (around 17'000 obs.; ). The model runs if the "R." in front of "factor3a" is omitted, i.e.,
(2)
However, then, factor 3a and factor 3b are not cross-nested, to my understanding.
Unique factors: Level 1: 239; Level 2: 2'079 unique factors; Level 3a: 3'817; Level 3b: 12'423
Hence, the following question: Does the proposed code (1) capture my intended model, i.e., that factor 3a and factor 3b are cross-nested, and both are nested within factor 2, which is nested in factor 1? If so, any idea how the estimation could work?
Best regards,
Pascal
I am currently working on a project where we aim to estimate a random effects models. Unfortunately, I cannot share the data or make an example using dataex as it is confidential. However, our data takes on the following form:
Factor1 (level 1) is nested within Factor2 (level 2). On level 3, we have two different factors, i.e., factor3a and factor 3b. Factor 3a is nested within factor 2, which is nested in factor 1. Factor 3b is also nested within factor 2 (which is nested in factor 1). Factor 3a and factor 3b are not nested within each other, i.e., to my understanding they are cross-nested.
After consulting the syntax, I tried to implement this structure using the following code:
Code:
mixed Y|| factor1: || factor2: || _all: R.factor3a || factor3b:, var mle
However, I always get an error code "3900 unable to allocate real <tmp>" when running the code with the full set of data (around 17'000 obs.; ). The model runs if the "R." in front of "factor3a" is omitted, i.e.,
Code:
mixed Y|| factor1: || factor2: || _all: factor3a || factor3b:, var mle
However, then, factor 3a and factor 3b are not cross-nested, to my understanding.
Unique factors: Level 1: 239; Level 2: 2'079 unique factors; Level 3a: 3'817; Level 3b: 12'423
Hence, the following question: Does the proposed code (1) capture my intended model, i.e., that factor 3a and factor 3b are cross-nested, and both are nested within factor 2, which is nested in factor 1? If so, any idea how the estimation could work?
Best regards,
Pascal
Comment