kancova: Robust Analysis of Covariance under Heterogeneous Slopes for...

View source: R/racov.r

kancovaR Documentation

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

Description

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). Currently only wilcoxon scores are used.

Usage

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.

Value

tab2

analysis of covariance

fint

rank-based ful model (heterogenous slopes

fithomog

rank-based ful model (homogeneous slopes

Author(s)

John Kloke, Joseph McKean

References

Kloke, J. and McKean, J.W. (2014), Nonparametric statistcal methods using R, Boca Raton, FL: Chapman-Hall.

Examples

 levels <- c(2,2)
 y.group <- huitema496[,c('y','i','j')]
 xcov <- huitema496[,'x']
 kancova(levels,y.group,xcov)


npsm documentation built on Nov. 15, 2023, 1:08 a.m.