plorn | R Documentation |
Construct and apply the PLORN model with your own data
plorn(x, y, newx = x, method = "linear", lower.thr = 0, n.pred = 0)
x |
A data matrix (row: samples, col: predictors). |
y |
A vector of an environment in which the samples were collected. |
newx |
A data matrix (row: samples, col: predictors). |
method |
A string to specify the method of regression for calculating R-squared values. "linear" (default), "quadratic" or "cubic" regression model can be specified. |
lower.thr |
The lower threshold of R-squared value to be used in PLORN model (default: 0). |
n.pred |
The number of candidate predictors to be used in PLORN model (default: 30). |
A vector of the environment in which the samples of newx were collected
Takahiko Koizumi
data(Pinus) train <- p.clean(Pinus$train) test <- Pinus$test test <- test[, colnames(train)] target <- Pinus$target cor(target, plorn(train, target, newx = test, method = "cubic"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.