weave: Produce a weave object.

Description Usage Arguments Value Examples

View source: R/WV_weaveClass.R

Description

weave defines and produces a weave object. The difference between weave and grpWV is their way to apply FUN. In weave, FUN is applied to every single column; while in grpWV, FUN takes the whole columns in a group as argument. See also medWV, in which a weave object also is produced, but with FUN = “median”, interval = c(0, 1) and ifeq = “>”. See plot.weave for plotting instructions.

Usage

1
2
weave(SVobj, degree = 4, FUN = "median", interval = c(0, 1),
  ifeq = FALSE)

Arguments

SVobj

A samVec object containing data and other information.

degree

A integer specifying the degree of the polynomail logistic regression that applied to fit the data.

FUN

A string specifying the function used in weave.

interval

A value between 0 and 1 to restrict the rankit used.

ifeq

An bool value indicating whether >= or > is used in comparison. This argument is only valid when it comes tied values.

Value

A weave object is returned, which is a list containing

fitY

A list of lists of numerics containing the fitted response values.

rankit

A list of numerics containing the rankit of the means of the data matrix.

order

A list of integers containing the order the rankit.

nWV

An integers indicating the numbers of weave.

interval

An interval indicating the range of rankit that is used.

Function

A string indicating the function used in weave.

ifeq

An bool value indicating whether >= or > is used in comparison. This argument is only valid when it comes tied values.

selCol

A list of vector of integers containing absolute indexes of choosen columns.

colInd

A list of vector of integers containing relative indexes of columns.

labels

A vector of characters, integers or short string marking the groups.

dataType

A long string containing useful information of the data.

Examples

1
2
3
4
5
data(GCwPADataA)
testset = samVec(GCwPADataA, selCol = list(1:5, 11:15, 21:25), labels = c("E", "R", "T"),
 dataType = "Example")
medw1 = weave(SVobj = testset, degree = 6, FUN = "median", interval = c(0, 1))
plot(medw1, legPar = list(cex = 1, ncol = 1), mainPar = list(main = "Example"))

ziyanyin/DEEE documentation built on May 28, 2017, 1:51 p.m.