Class to store the components of an estimated model for a feature
Source:R/ScpModelFit-Class.R
ScpModelFit-class.RdAn ScpModelFit object is expected to be stored as a list element
in the scpModelFitList of an ScpModel object. The
ScpModelFit object should never be accessed directly by the
user. Refer to the ScpModel for a list of function to
access the information in an ScpModelFit. The ScpModelFit
class contains several slots that contain the model output for a
feature:
n: aninteger, the number of observations for the featurep: aninteger, the number of coefficient to estimatecoefficients: anumericvector with the estimated coefficientsresiduals: anumericvector with the estimated residualseffects: aListwith thedf: anintegerproviding the number of degrees of freedom of the model estimationvar: anumericvector with the residual variance of the model estimationuvcov: the unscaled variance covariancematrixlevels: a namedListwhere each elements corresponds to a categorical model variable and contains a vector with the possible categories.
See also
ScpModel for a description of the class that relies on
ScpModelFit
Examples
new("ScpModelFit") ## this should never be used by the user
#> An object of class "ScpModelFit"
#> Slot "n":
#> integer(0)
#>
#> Slot "p":
#> integer(0)
#>
#> Slot "coefficients":
#> numeric(0)
#>
#> Slot "residuals":
#> numeric(0)
#>
#> Slot "effects":
#> <S4 Type Object>
#> attr(,"elementType")
#> [1] "ANY"
#> attr(,"elementMetadata")
#> `\001NULL\001`
#> attr(,"metadata")
#> list()
#>
#> Slot "df":
#> numeric(0)
#>
#> Slot "var":
#> numeric(0)
#>
#> Slot "uvcov":
#> <0 x 0 matrix>
#>
#> Slot "levels":
#> <S4 Type Object>
#> attr(,"elementType")
#> [1] "ANY"
#> attr(,"elementMetadata")
#> `\001NULL\001`
#> attr(,"metadata")
#> list()
#>