print.familyRsm: Use print() on a "familyRsm" object

View source: R/marg.R

print.familyRsmR Documentation

Use print() on a “familyRsm” object

Description

This is a method for the function print() for objects inheriting from class familyRsm. See print or print.default for the general behaviour of this function.

Usage

## S3 method for class 'familyRsm'
print(x, ...)

Details

A familyRsm object is a list of functions and expressions. All that is printed is an identification label. To see the functions themselves, access the individual components, or use print.default() or unclass().

See Also

familyRsm.object, print, print.default

Examples

student(df = 3) ## generates Student's t error distribution family
## 
## g  :  function (y, df, ...)  (df + 1)/2 * log(1 + y^2/df)
## g' :  function (y, df, ...)  (df + 1) * y/(df + y^2)
## g'':  function (y, df, ...)  (df + 1) * (df - y^2)/(df + y^2)^2
##
## df : 3
unclass(student(df = 3))
## $family
## [1] "student"
##
## $g0
## function(y,df,...)  (df+1)/2*log(1+y^2/df)
##
## $g1
## function(y,df,...)  (df+1)*y/(df+y^2)
##
## $g2
## function(y,df,...)  (df+1)*(df-y^2)/(df+y^2)^2
##
## $df
## [1] 3
##
## $k
## NULL

marg documentation built on June 8, 2025, 12:33 p.m.