kancova | R Documentation |
Returns a robust rank-based analysis of covariance for a k-way layout assuming heterogenous slopes; see Section 5.4 of Kloke and McKean (2014)/Sections 5.6 and 7.3 of Kloke and McKean (2024). Currently only wilcoxon scores are used.
kancova(levs,data,xcov,print.table=TRUE)
levs |
vector of levels corresponding to the factors A, B, C, etc. |
data |
matrix with response in column 1 and level in column 2 |
xcov |
matrix of covariates |
print.table |
logical indicating a table should be printed |
Returns the analysis of covariance table assuming heterogenous slopes for a k-way layout.
tab2 |
analysis of covariance |
fint |
rank-based ful model (heterogenous slopes |
fithomog |
rank-based ful model (homogeneous slopes |
John Kloke, Joseph McKean
Kloke, J. and McKean, J.W. (2014), Nonparametric statistcal methods using R, Boca Raton, FL: Chapman-Hall. Kloke, J. and McKean, J.W. (2024), Nonparametric statistcal methods using R, Second Edition, Boca Raton, FL: Chapman-Hall.
levels <- c(2,2)
y.group <- huitema496[,c('y','i','j')]
xcov <- huitema496[,'x']
kancova(levels,y.group,xcov)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.