Displaying 1 result from an estimated 1 matches for "admit_gend".
Did you mean:
admit_gender
2014 Jan 10
0
proposal: stats::as.matrix.ftable method
...imnames=c(makeDimNames(attr(x, "row.vars")),
makeDimNames(attr(x, "col.vars"))),
row.vars=NULL,
col.vars=NULL)
}
Some test cases:
> UCB <- UCBAdmissions
> as.matrix(ftable(Dept ~ Admit + Gender, data=UCB))
Dept
Admit_Gender A B C D E F
Admitted_Male 512 353 120 138 53 22
Admitted_Female 89 17 202 131 94 24
Rejected_Male 313 207 205 279 138 351
Rejected_Female 19 8 391 244 299 317
> as.matrix(ftable(Dept ~ ., data=UCB))
Dept
Admit_Gender A B C...