29.07.2014 Views

User's Guide to lqa - LMU

User's Guide to lqa - LMU

User's Guide to lqa - LMU

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.2 Basic principles of using the cv.<strong>lqa</strong>() function 16<br />

cv.<strong>lqa</strong>(y.train, x.train, intercept = TRUE, y.vali = NULL,<br />

x.vali = NULL, lambda.candidates, family, penalty.family,<br />

standardize = TRUE, n.fold, cv.folds,<br />

loss.func = aic.loss, control = <strong>lqa</strong>.control(), ...)<br />

with input parameters<br />

y.train<br />

x.train<br />

intercept<br />

y.vali<br />

x.vali<br />

lambda.candidates<br />

family<br />

penalty.family<br />

standardize<br />

n.fold<br />

cv.folds<br />

loss.func<br />

control<br />

the vec<strong>to</strong>r of response training data.<br />

the design matrix of training data. If intercept = TRUE then it<br />

does not matter whether a column of ones is already included in<br />

x.train or not. The function adjusts it if necessary.<br />

logical. If intercept = TRUE then an intercept is included in the<br />

model (this is recommended).<br />

an additional vec<strong>to</strong>r of response validation data. If given the<br />

validation data are used for evaluating the loss function.<br />

an additional design matrix of validation data. If given the<br />

validation data are used for evaluating the loss function. If<br />

intercept = TRUE then it does not matter whether a column of<br />

ones is already included in x.train or not. The function adjusts<br />

it if necessary.<br />

a list containing the tuning parameter candidates. The number of<br />

list elements must be correspond <strong>to</strong> the dimension of the tuning<br />

parameter. See details below.<br />

identifies the exponential family of the response and the link<br />

function of the model. See the description of the R function<br />

family() for further details.<br />

a function or character argument identifying the penalty family.<br />

See details below.<br />

logical. If standardize = TRUE the data are standardized (this is<br />

recommended).<br />

number of folds in cross-validation. This can be omitted if a<br />

validation set is used.<br />

optional list containing the observation indices used in the<br />

particular cross-validation folds. This can be omitted if a<br />

validation set is used.<br />

a character indicating the loss function <strong>to</strong> be used in evaluating<br />

the model performance for the tuning parameter candidates. If<br />

loss.func = NULL the aic.loss() function will be used. See<br />

details below.<br />

a list of parameters for controlling the fitting process. See the<br />

documentation of <strong>lqa</strong>.control() for details.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!