-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
joint_tests omits covariate transformed with asin(sqrt()) via make.tran() #438
Comments
The covariate is actually taken into account, but then the results are suppressed because those terms have zero d.f..:
This in turn happens because by default,
That is, the transformation is applied to values outside its valid range. If you use a function that yields values within the interval (0,1), you get less puzzling results:
|
BTW, the example is kind of flaky because you use response and covariate values as dimensions in the grid you created. I think you intended to do:
Now if we re-fit the model, we see P values other than 1:
|
Thank you for the explanation and for correcting my dummy data set. I thought asin.sqrt took [0,1] inclusive as
In case covar must be transformed before fitting, would you recommend |
If you transform first and save it as a predictor, then you are talking about a different model with I do not have a recommendation as to which is right or which is preferable. And as is discussed on the help page, covariates create complications and there are infinitely many possible results for What may be more meaningful to you might be results like this:
which gives you three different anova tables for just the factors, depending on which covariate value is used. Those tests are based on easy-to-understand hypotheses, formulated for those specific covariate values. |
Thank you for the details. I was looking for the impact of the For cases that
In this case, though, |
You are asking if This series of questions seems to be following a meandering path. We (or at least I) have established that this is not a bug, and now we're not even talking about the same transformation. |
It looks like this thread is completed, so am closing |
Thanks for correcting. I appreciate your help. |
Also new make.meanint() and make.symmint() fcns (inspired by #438)
Describe the bug
joint_tests omits covariate transformed with
asin(sqrt())
viamake.tran()
To reproduce
set.seed(83)
library(emmeans)
Switching resp and covar, and the joint_tests(mod2) below gave the full ancova model
Expected behavior
A full ANCOVA table similar to the table obtained from
joint_tests(mod2)
.The text was updated successfully, but these errors were encountered: