kancova function

Robust Analysis of Covariance under Heterogeneous Slopes for a k-way layout

Robust Analysis of Covariance under Heterogeneous Slopes for a k-way layout

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)

Arguments

  • 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

Details

Returns the analysis of covariance table assuming heterogenous slopes for a k-way layout.

Returns

  • tab2: analysis of covariance

  • fint: rank-based ful model (heterogenous slopes

  • fithomog: rank-based ful model (homogeneous slopes

References

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.

Author(s)

John Kloke, Joseph McKean

Examples

levels <- c(2,2) y.group <- huitema496[,c('y','i','j')] xcov <- huitema496[,'x'] kancova(levels,y.group,xcov)
  • Maintainer: John Kloke
  • License: GPL (>= 2)
  • Last published: 2024-05-26