response: Extract response from a pim.formula or a pim object

Description Usage Arguments Value See Also Examples

Description

This function extracts the response from a pim.formula for use in pim.fit.

Usage

1
2
3
4
5
6
7
response(object)

## S4 method for signature 'pim.formula'
response(object)

## S4 method for signature 'pim'
response(object)

Arguments

object

an object of class pim or pim.formula.

Value

The response variable with pseudo-observations for a pim.

See Also

pim-class and pim.formula-class for more information on the classes, and pim, pim.fit and pim.formula for more information on related functions.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data('FEVData')
Model <- pim(FEV~ Smoke*Sex , data=FEVData)
response(Model)

# In pieces
FEVenv <- new.pim.env(FEVData, compare="unique")
FEVform <- new.pim.formula(
  Age ~ I(L(Height) - R(Height))  ,
  FEVenv
)
response(FEVform)

pim documentation built on March 26, 2020, 7:57 p.m.