Skip to content
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

When using identity link for k-sample design tests, offset is not added correctly. #17

Open
JoFAM opened this issue Jun 13, 2018 · 0 comments

Comments

@JoFAM
Copy link
Contributor

JoFAM commented Jun 13, 2018

> set.seed(17337656)
> wb<-data.frame(weight=c(runif(5),runif(5)+0.2,runif(5)+0.8),trt=c(rep("L",5),rep("M",5),rep("H",5)))
> 
> m <- pim(weight ~ trt,data = wb, link = "identity",  model="difference")
> summary(m)

should give the outcome of:

m <- pim(weight ~ trt + 1,data = wb, link = "identity",  model="difference", compare = "all")

This could be done by adding an offset argument for constructing the correct model matrix en response for fitting, or by automatically selecting compare = "all" in case link = identity and model = difference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant