## S3 method for class 'formula':
maxstat_test(formula, data, subset = NULL, weights = NULL, \dots)
## S3 method for class 'IndependenceProblem':
maxstat_test(object,
distribution = c("asymptotic", "approximate"),
teststat = c("maxtype", "quadtype"),
minprob = 0.1, maxprob = 0.9, ...)
y ~ x1 + ... + xp | block
where y
is a variable measured at arbitrary scale and the covariates x1
to xp
are at least of class ordered
; block
is an
~ w
defining
integer valued weights for the observations.IndependenceProblem
.asymptotic
)
or via Monte-Carlo resampling (approximate
).
Alternatively, the functions
maxtype
) or a quadratic form
(quadform
).minprob
* 100 % quantile of x
.maxprob
* 100 % quantile of x
.IndependenceTest-class
with
methods show
, statistic
, expectation
,
covariance
and pvalue
. The null distribution
can be inspected by pperm
, dperm
,
qperm
and support
methods.y
against simple cutpoint alternatives is tested.Berthold Lausen & Martin Schumacher (1992), Maximally Selected Rank Statistics. Biometrics 48, 73--85.
Torsten Hothorn & Berthold Lausen (2003), On the Exact Distribution of Maximally Selected Rank Statistics. Computational Statistics & Data Analysis 43, 121--137.
Berthold Lausen, Torsten Hothorn, Frank Bretz & Martin Schumacher (2004), Optimally Selected Prognostic Factors. Biometrical Journal 46, 364--374.
data("treepipit", package = "coin")
maxstat_test(counts ~ coverstorey, data = treepipit)
Run the code above in your browser using DataLab