model.matrix()
1
1
Entering edit mode
Yisong Zhen ▴ 200
@yisong-zhen-2952
Last seen 6.8 years ago
Hello list, I am confused about the model.matrix(). In the limma manual, Page 31, there is a design matrix, model.matrix(~1+..). But in the Page 44, the desgin matrix is model.matrix(~0+...). What's is the diffirence between -1 or 0? Thanks. Bests, Yisong [[alternative HTML version deleted]]
limma limma • 609 views
ADD COMMENT
2
Entering edit mode
@gordon-smyth
Last seen 22 minutes ago
WEHI, Melbourne, Australia

Dear Yisong,

Actually you mean "~-1+" rather than "~1+".

Both "-1" and "0" have the same meaning in a formula in R. There is no difference. See help("formula")

Best wishes
Gordon

ADD COMMENT

Login before adding your answer.

Traffic: 761 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6