mrpp(variables, group, data, expon = 1, c.form = 1, hotelling = FALSE, commens = TRUE, interv = 0, number.perms, exact = FALSE, has.excess = FALSE, excess.value, max.dist, save.test)c(var1,var2,...).data.frame or matrix containing columns with names matching all values supplied in the variables and group arguments.
Alternatively, if neither variables and group are supplied, it is assumed
that the first column is the grouping column, and all remaining columns are variables to be used in the analysis.logical indicating Hotelling's variance/covariance standardization of the multiple dependent variables.logical value indicating whether to perform average Euclidian distance commensuration of multiple response variables.
Commensuration can only be done when there is more than one variable.interv should be set to the number of units in the circular measure.number.perms permutations is to be used rather than a Pearson III approximation.logical value indicating whether to perform an exact test. This is computationally intensive for >30 observations.logical indicating whether there is an excess group.delta_(i,j) greater than the truncation value with the truncation value.logical indicating to store the permutation values of the test statistic. This is only a valid option when number.perms is set.mrpp returns an object of either class MRPPObj or EMRPPObj.The functions summary as well as print can be used to obtain a summary of the test.Generic accessor functions pvalue and ResampVals (for MRPPObj) can be used to obtain the p-value and Monte Carlo resampled test statistic values respectively.pvalue, and ResampVals
out <- mrpp(variables = c(distance,elev),group = sex,data = bgrouse,
exact = TRUE)
summary(out)
Run the code above in your browser using DataLab