Learn R Programming

CSUV (version 0.1.1)

get.csuv.unique.fit: Helper function, please do not use it

Description

Helper function, please do not use it

Usage

get.csuv.unique.fit(
  X,
  Y,
  intercept,
  method.names,
  B,
  fit.percent,
  current.fit = NULL,
  num.core = 1
)

Arguments

X

covariates (n times p matrix, n: number of entries, p: number of covariates)

Y

response (vector with n entries)

intercept

TRUE to fit the data with an intercept, FALSE to fit the data without an intercept

method.names

vector of method names to be used in CSUV. Choose among "lasso", "elastic", "relaxo", "mcp" and "scad". Default is to use all methods listed above

B

number of subsampling. Default is 100

fit.percent

percentage of observations used in fitting in CSUV

current.fit

(optional) all fitted models

num.core

number of cores to use. Default is 1 (i.e. no parallel running)

Value

a list of current fit