在R中,是model.matrix(~ Treatment + Time + Treatment*Time, table_design)相当于model.matrix(~ Treatment*Time, table_design)
model.matrix(~ Treatment + Time + Treatment*Time, table_design)
model.matrix(~ Treatment*Time, table_design)
azpvetkf1#
是的。
table_design<-data.frame( Treatment=rep(c("A","B"), each=10), Time=rpois(20,20) ) all.equal( model.matrix(~ Treatment + Time + Treatment*Time, table_design), model.matrix(~ Treatment*Time, table_design) ) # [1] TRUE
1条答案
按热度按时间azpvetkf1#
是的。