Description Usage Arguments Value Examples
This function allows you to extract the
pim.environment
object from either a pim
object or a pim.formula
object.
1 2 3 4 5 6 7 |
x |
either a |
In case of a pim
object, the pim.environment
contained therein. In case of a pim.formula
object,
the environment itself.
See the help page pim.formula-class
.
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
)
theEnv <- penv(FEVform)
ls(theEnv)
themodel <- pim(Age ~ Height, FEVenv)
thePEnv <- penv(themodel)
thePEnv
ls(thePEnv)
# Note that this is a different environment, and that it only contains
# the variables in the formula, contrary to the environment created
# by new.pim.formula
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.