Just a short post in reply (comments between your lines):
>
> First, nesting in SAS. You need to look at the
> documentation for MIXED or GLM that covers this. The
> parameterization of A nested in B and A crossed with
> B is the same. That is why it makes no difference in
> the rcorr. Here is what the online manual says:
> Nested Effects
> Nested effects are generated in the same manner as
> crossed effects. Hence, the design columns generated
> by the following two statements are the same (but the
> ordering of the columns is different):
>
> model Y=A B(A);
>
> model Y=A A*B;
>
> The nesting operator in PROC MIXED is more a
> notational convenience than an operation distinct
> from crossing. Nested effects are typically
> characterized by the property that the nested
> variables never appear as main effects.
Hm, meaning must not appear as main effect ?
In my example the nested variable (within parentheses) period would appear in the model as main effect, since I am interested in the period effect.
Did I miss the full meaning of this?
> Note that nested effects are often distinguished from
> interaction effects by the implied randomization
> structure of the design. That is, they usually
> indicate random effects within a fixed-effects
> framework. The fact that random effects can be
> modeled directly in the RANDOM statement might make
> the specification of nested effects in the MODEL
> statement unnecessary.
Hm, I don't have any nested effect in the MODEL statement anyway, neither in the random statement, but in the repeated statement.
>
> The other part that I want to address is the doubly
> repeated measures. This assumes that the correlation
> of residuals amongst days is the same, no matter
> which period we have. I was thinking that
> observations on the close time points would be more
> highly related, and probably similar, so that an
> ar(1) or cs structure might fit. The separated time
> points (i.e., periods) would have a different
> relationship.
>
> If you want to deal with all at once without those
> assumptions, you have unequal spacing and the spatial
> power method goes after that with the assumption that
> the errors are "constantly correlated" as in ar(1),
> but that the points used to estimate that correlation
> are not equally spaced.
>
I am certainly willing to try your recommendations.
In Proc MIXED I'd prefer the former, and, if I get your point, to do that I have to model doubly repeated measures expressed as: repeated period day / subj=animal*farm type=UN@AR(1) with period in the first place instead of a nested repeated , right?
does the order of these variables make any difference for the type=cov structure option?
and in Proc GLIMMIX (for count data) maybe a spatial power method with sp(pow)(time) with repeated day*period / subj=animal*farm as the UN@AR(1) is not available.
Would you confirm or reject my statements?
Thanks a lot for your patient comments anyway, at least some of the points may be a bit clearer now.
Karin
... View more