onecovaheter: Robust Analysis of Covariance under Heterogeneous Slopes

View source: R/racov.r

onecovaheterR Documentation

Robust Analysis of Covariance under Heterogeneous Slopes

Description

Returns a robust rank-based analysis of covariance for a one-way layout assuming heterogenous slopes; see Section 5.4 of Kloke and McKean (2014). Currently only wilcoxon scores are used.

Usage

onecovaheter(levs,data,xcov,print.table=TRUE)

Arguments

levs

Number of levels of the one-way design

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.

Value

tab

analysis of covariance

fit

rank-based ful model (heterogenous slopes

References

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

Examples

data=latour[,c('quality','rain')]
xcov<-cbind(latour['end.of.harvest'])
onecovaheter(2,data,xcov,print.table=TRUE)

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