Usage Arguments Details Value Author(s)
1 | runPredictions(ents, rels, x.train, y.train, x.test = NULL, y.test = NULL, type = c("linear", "logit"), alpha = 0.95, nlam = 20, min.frac = 0.05, cv = TRUE, nfold = 10, cre = c("filter", "weight", "both", "none"), cre.sig = 0.01, standardize = c("all","self","train","no"), cores = 1, verbose = TRUE)
|
ents |
Entry data frame typically created by |
rels |
Relation data frame typically created by |
x.train |
Vector of responses for training data |
y.train |
Matrix of covariates for training data |
x.test |
Optional matrix of covariates for testing data |
y.test |
Optional vector of responses for testing data |
type |
Type of regression model: |
alpha |
Tradeoff between lasso penalty and group lasso penalty.
|
nlam |
Number of lambda values for the regularization path |
min.frac |
Smallest lambda value as a fraction of the largest |
cv |
logical flag: should the data be cross-validated? |
nfold |
Number of folds for cross-validation |
cre |
CRE method for filtering and/or computing group weights |
cre.sig |
significance level for CRE filtering |
standardize |
type of standardization |
cores |
Number of cores to be used in computations. |
verbose |
logical flag for verbosity level |
The possible values of standardization
are: "all"
: training and testing data are concatenated and then standardized, "self"
: each data set (training and testing) is standardized separately, "train"
: both training and testing data are standardized using the means and scale of the training data, "no"
: no standardization.
A list with components
fit |
Fitted object(s) of class |
alpha |
Input argument |
bestlam |
Best value(s) of $lambda$ for cross-validation score, |
pred |
Vector/matrix of predictions for training data and for testing data if specified; each column corresponds to a value of |
accuracy |
Accuracy measures in prediction |
slice |
Duplicated matrix of covariates for training data and for testing data if available |
Kourosh Zarringhalam and David Degras
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.