marg (version 1.2-2.1)

rsm.families: Generate a RSM Family Object

Description

Generates a family.rsm object containing a list of functions and expressions used by rsm.

Usage

extreme()
Huber(k = 1.345)
logistic()
logWeibull()
student(df = stop("Argument \"df\" is missing, with no default"))

Arguments

k

the tuning constant in Huber's least favourable distribution.

df

the degrees of freedom in Student's t distribution.

Value

A family.rsm object, which is a list of functions and expressions used by rsm in the iteratively reweighted least-squares algorithm. See family.rsm.object for details.

Details

Each of the names are associated with a member of the class of error distributions for regression-scale models. Users can construct their own families, as long as they have components compatible with those given in rsm.distributions. The demonstration file margdemo.R that accompanies the package shows how to create a new generator function. When passed as an argument to rsm with the default setting, the empty parentheses () can be omitted. There is a print method for the class family.rsm.

See Also

family.rsm.object, family.rsm, rsm, Huber

Examples

Run this code
# NOT RUN {
student(df = 3) ## generates Student's t error distribution with 3 d.f.
# }
# NOT RUN {
rsm(formula = value, data = value, family = extreme)
# }

Run the code above in your browser using DataLab