Skip to content
Prev 284677 / 398502 Next

dropterm in MANOVA for MLM objects

Dear Prof Fox,
I tried anova but got the following error message:

mat <- matrix(rnorm(700), ncol=5, dimnames=list( paste("f", c(1:140), sep="_"), c("A", "B", "C", "D", "E")))
summary(Anova(lm(cbind(A, B, C, D, E) ~ factor(rownames(mat)), data=as.data.frame(mat))))

Error in summary(Anova(lm(cbind(A, B, C, D, E) ~ factor(rownames(mat)),? : 
? error in evaluating the argument 'object' in selecting a method for function 'summary': Error in linearHypothesis.mlm(mod, hyp.matrix.2, SSPE = SSPE, V = V, ...) : 
? The error SSP matrix is apparently of deficient rank = 0 < 5

I looked in previous forum and it seems like i have only option of performing the univariate test here. 

Therefore I used the following, but it still results in an error message:
Anova(lm(cbind(A, B, C, D, E) ~ factor(rownames(mat)), data=as.data.frame(mat)), univariate=TRUE, multivariate=F)
Error in linearHypothesis.mlm(mod, hyp.matrix.2, SSPE = SSPE, V = V, ...) : 
? The error SSP matrix is apparently of deficient rank = 0 < 5

Any suggestions ?

Thanks
Vickie



I think I am still missing some important clues here. Is it because the feww