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

Description Usage Arguments Details Value Author(s) References Examples

View source: R/racov.r

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

1

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 [email protected], Joseph McKean

References

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

Examples

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

npsm documentation built on May 29, 2017, 12:12 p.m.