MRPP-internal: Internal functions not be used by the end user

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

get.p.L1dEuc computes variable importance measure by using (dimension specific L1 distance divided by Euclidean distance across all dimensions) as the new distance function in MRPP

Usage

1
get.p.L1dEuc(y, permutedTrt, r = seq_len(ncol(y)), wtmethod=0, eps=1e-8)

Arguments

y

The response data matrix with each row being a data point and each column being a variable.

permutedTrt

A list matricies that list all random treatment assignments to be used in the MRPP test.

r

A positive integer vector, specifying variables for which variable importance measure is requested.

wtmethod

0 or 1. If 0, the treatment group weight for MRPP statistic will be sample size minus 1. If 1, the sample size of the treatment group.

eps

A small positive tolerance, the same as described in mrpp.test.

Details

get.p.L1dEuc is very similar to get.p.dd.dw. It first computes the L1 distance for each variable separately, then it divides this by the overall Euclidean distance across all dimensions. This is then used as the distance function for the variable to be used in MRPP. The resulting MRPP p-value is returned as the variable importance. The smaller, the more important.

Value

For get.p.L1dEuc, the result is an length(r)-vector of importance measure.

Author(s)

Long Qu

References

Long Qu, Dan Nettleton, Jack C. M. Dekkers. Relative Variable Importance and Backward Variable Selection for the Multiresponse Permutation Procedure, with Applications to High Dimensional Genomic Data. (Manuscript under review).

See Also

get.p.dd.dw

Examples

1
2
3
4
5
6
set.seed(2340)
x=matrix(rnorm(20*5),20)
trt=gl(2,10)
urand.bigz(0,seed=1032940L) # init seed
pmat=permuteTrt(trt, 5e2L)		## use 500 random permutations
ir3=MRPP:::get.p.L1dEuc(x, pmat)

MRPP documentation built on May 2, 2019, 4:46 p.m.