ptmp(data,variables, expon = 1, exact = FALSE, number.perms, save.test)
data.frame
.data.frame
or matrix
either with the first second and third columns representing the grouping variable, pairing variable and response variable respectively
or a data.frame
or matrix
with two columns of pairs of responses.number.perms
permutations is to be used rather than a Pearson III approximation.number.perms
is set.ptmp
returns an object of class PTMPObj
.ptmp
can be used when the observations are paired (next to each other) in the data set.
Thus the pairing is indicated by position or by a blocking variable.
The different test statistic structures produce an observed delta in PTMP that is exactly twice the observed test statistic for the same problem in MRBP.
Also, data in PTMP are aligned to a median of 0 by the structure of the test statistic.
mrbp
print(out <- ptmp(paired1,exact = TRUE))
pvalue(out)
Run the code above in your browser using DataLab