Description Usage Arguments Value See Also Examples
This group of functions provides an easy way to extract the
extra information saved in a pim.formula object.
Take a look at the help page of pim.formula for
more information.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | has.specials(x)
## S4 method for signature 'pim.formula'
has.specials(x)
terms(x, ...)
## S4 method for signature 'pim.formula'
terms(x)
lhs(x)
## S4 method for signature 'pim.formula'
lhs(x)
|
x |
an object of the class pim.formula |
... |
arguments passed to other methods |
has.specials(): a single TRUE or FALSE
value indicating whether the formula right-hand side contains any
special functions.
terms(): the terms object
of the pim.formula object
lhs(): an object of class call containing
the left hand side of the formula as used in the pim.
the class pim.formula-class
response for extracting the pseudoresponse
variable, model.matrix for extracting the design
matrix of pseudo-observations, formula for
extracting the pim.formula and penv for
extracting the pim environment.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | data("FEVData")
# Create the "model frame"
FEVenv <- new.pim.env(FEVData, compare="unique")
# create the formula and bind it to the pim.environment.
FEVform <- new.pim.formula(
Age ~ I(L(Height) - R(Height)) ,
FEVenv
)
lhs(FEVform)
has.specials(FEVform)
penv(FEVform)
FEVform2 <- new.pim.formula(
FEV ~ Height*Sex,
FEVenv
)
has.specials(FEVform2)
terms(FEVform2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.