xpredict: Cross predict from one data set to another

Description Usage Arguments

View source: R/rf.R

Description

Given two matrices, train the model on the first, apply to the second

Usage

1
2
3
xpredict(x, y, x.response, y.response, nvar = NULL, cleanx = FALSE,
  cleany = FALSE, cutoff.method = "MaxProdSpSe", return.list = FALSE,
  rf = NULL)

Arguments

x, y

data matrix, rows=variables, cols=samples. row names matter

x.response, y.response

vector of responses

nvar

If not NULL, build a secondary model with nvar variables

cleanx

drop samples from x if they are absent in y

cleany

drop samples from y if they are absent in x

cutoff.method

See "methods" from optimal.cutpoints

return.list

if TRUE, returns a list with all additional information rather than a data frame

rf

if rf model provided, it will be used instead of creating a new one

rep

number of replicates for each number of variables


january3/myfuncs documentation built on April 1, 2020, 4:42 a.m.