You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does the package automatically handle an interaction term, e.g. for the model and contrast statement below,
fit1<- lm(y~x+z+x*z)
contrast(x=10, z=10)
Will the contrast statement include in its calculation the x*z interaction? Some testing I have done suggests it does not.
If I am correct (that the contrast statement written above does NOT include the interaction term in its computation), is there a way to specify the interaction in the contrast statement?
I have tried contrast(x=10, z=10, xz=100), contrast(x=10, z=10, xz=100), contrast(x=10, z=10, “xz”=100) none of which run; all produce an error message.
In a model with an offset, will the contrast statement work and include the offset in its computation, for example
From John Sorkin via email
Does the package automatically handle an interaction term, e.g. for the model and contrast statement below,
Will the contrast statement include in its calculation the x*z interaction? Some testing I have done suggests it does not.
If I am correct (that the contrast statement written above does NOT include the interaction term in its computation), is there a way to specify the interaction in the contrast statement?
I have tried contrast(x=10, z=10, xz=100), contrast(x=10, z=10, xz=100), contrast(x=10, z=10, “xz”=100) none of which run; all produce an error message.
In a model with an offset, will the contrast statement work and include the offset in its computation, for example
Some experimentation suggests the contrast function does not account for the offset.
Assuming I am correct, that the offset term is NOT honored in the contrast statement, is there a way to write a contrast statement that will work?
The text was updated successfully, but these errors were encountered: