tuneCOIRR: tuneCOIRR

Description Usage Arguments Value Examples

View source: R/tuneCOIRR.R

Description

tuneCOIRR

Usage

1
tuneCOIRR(from, to, by, Xtrain, Ytrain)

Arguments

This

functions takes scalers; start value, end value, increment and input/output of the training set.

Value

vector of tuning parameter values, and optimum value.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
X<-matrix(rexp(200, rate=.1), ncol=20)
Y<-rnorm(10)
data<- cbind(Y,X)
sample <- 1:floor(.25*nrow(data))
train <- data[sample, ]
test  <- data[-sample, ]
Xtrain<- as.matrix(train[,-1])
Ytrain<-scale(as.matrix(train[,1]))
Xtest<- as.matrix(test[,-c1])
Ytest<- as.matrix(test[,1])
tuneCOIRR(0.1,0.2,0.01,Xtrain,Ytrain)

JamilWaqas/CR documentation built on Sept. 7, 2020, 7:34 p.m.