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)/Sections 5.6 and 7.3 of Kloke and McKean (2024). 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. Kloke, J. and McKean, J.W. (2024), Nonparametric statistcal methods using R, Second Edition, Boca Raton, FL: Chapman-Hall.

Examples

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

kloke/npsm documentation built on June 13, 2024, 4:23 p.m.