Last data update: 2014.03.03

R: Class "glpModel" of General Linear Prediction Models
glpModel-classR Documentation

Class "glpModel" of General Linear Prediction Models

Description

The class "glpModel" conceptually contains a very large class of “General Linear Prediction Models”.

Its resp slot (of class "respModule") may model linear, non-linear, generalized linear and non-linear generalized response models.

Objects from the Class

Objects can be created by calls of the form new("glpModel", ...), but typically rather are returned by our modeling functions, e.g., the (experimental, hence currently hidden) glm4().

Slots

resp:

a "respModule" object.

pred:

a "predModule" object.

Extends

Class "Model", directly.

Methods

coef

signature(object = "glpModel"): extract the coefficient vector β from the object.

fitted

signature(object = "glpModel"): fitted values; there may be several types, corresponding to the residuals, see there (below).

residuals

signature(object = "glpModel"): residuals, depending on the type of the model, there are several types of residuals and correspondingly residuals, see residuals.glm from the stats package.

See Also

glm4() returns fitted glpModel objects.

The constituents of this class are respModule and predModule, both of which have several sub classes.

Examples

showClass("glpModel")

## Use   example(glm4)  or see  help(glm4) for many more examples.

Results


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(MatrixModels)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/MatrixModels/glpModel-class.Rd_%03d_medium.png", width=480, height=480)
> ### Name: glpModel-class
> ### Title: Class "glpModel" of General Linear Prediction Models
> ### Aliases: glpModel-class coef,glpModel-method fitted,glpModel-method
> ###   residuals,glpModel-method
> ### Keywords: classes
> 
> ### ** Examples
> 
> showClass("glpModel")
Class "glpModel" [package "MatrixModels"]

Slots:
                                                  
Name:        resp       pred       call   fitProps
Class: respModule predModule       call       list

Extends: "Model"
> 
> ## Use   example(glm4)  or see  help(glm4) for many more examples.
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>