An object containing the output of MRSP-calls with more than one
tuning parameter value, i.e. model output related to a whole “coefficient path”.
With nrlambda denoting the number of different lambda values for which to fit
a penalized multinomial response model, MRSP.list-objects are lists of length
nrlambda. Each entry of this list is an object of class MRSP
and contains the model output for one concrete lambda value. If an MRSP.list-object
was created by function MRSP, it additionally has
attributes “topcall”, “call” and “dat”. Those attributes store, respectively, the call to
MRSP, the call to MRSP.fit which was prepared by MRSP and
the data object to be supplied to MRSP.fit. Note that
dat contains the standardized covariates if standardize = TRUE.
Objects from the Class
Objects of this class are created by function MRSP.fit, which will
most likely be called internally by the end-user function MRSP.
Methods
cv
signature(object = "MRSP.list"): cv(object, k, type, parallel, cores, ...) performs k-fold crossvalidation of the models in object.
The output is a list whose entry mean gives the mean values of the criterion specified via argument type over the crossvalidation folds; for each model found in object.
type can be "deviance" (the default), "loglik" or "brier", using the deviance, loglikelihood or the Brier score. Depending on the logical argument parallel and integer argument cores,
crossvalidation is performed either serially or with cores parallel processes.
extract
signature(object = "MRSP.list"): extract(object, slotname) returns the value of the slot whose name was given as a character string
from all elements of object. The result is coerced to a vector or matrix if appropriate.
getCall
signature(x = "MRSP.list"): Get the call that created the MRSP.list-object.
signature(object = "MRSP.list"): select(object, criterion=c("AIC","BIC","cv"), ...) selects one concrete MRSP model from object based on criterion.
For criterion="cv", an additional, integer argument k, a logical argument parallel and an integer argument cores can be supplied, see cv above.
show
signature(object = "MRSP.list"): Print some basic infos about the MRSP.list object.
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(MRSP)
Loading required package: parallel
Loading required package: compiler
Loading required package: matrixcalc
Loading required package: Formula
-----------------------------
This is MRSP version 0.4.3
Author: Wolfgang Poessnecker
Date: December 09, 2014
-----------------------------
Attaching package: 'MRSP'
The following object is masked from 'package:stats':
coefficients
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/MRSP/MRSP.list-class.Rd_%03d_medium.png", width=480, height=480)
> ### Name: MRSP.list-class
> ### Title: Class '"MRSP.list"'
> ### Aliases: MRSP.list-class cv,MRSP.list-method extract,MRSP.list-method
> ### getCall,MRSP.list-method plot,MRSP.list-method
> ### refit,MRSP.list,missing-method select,MRSP.list-method
> ### show,MRSP.list-method update,MRSP.list-method
> ### Keywords: classes
>
> ### ** Examples
>
> showClass("MRSP.list")
Virtual Class "MRSP.list" [package "MRSP"]
No Slots, prototype of class "NULL"
>
>
>
>
>
> dev.off()
null device
1
>