response | R Documentation |
This function extracts the response from a
pim.formula
for use in pim.fit
.
response(object)
## S4 method for signature 'pim.formula'
response(object)
## S4 method for signature 'pim'
response(object)
object |
an object of class pim or pim.formula. |
The response variable with pseudo-observations for a pim.
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.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.