Constructor for a pim.environment
This functions serves as a constructor for an object of the class
pim.environment. In most cases, calling this function directly
is not necessary.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
new.pim.env(data, ...) ## S4 method for signature 'missing' new.pim.env(data, ...) ## S4 method for signature 'environment' new.pim.env(data, compare = "unique", env = parent.frame(), vars = NULL, classes = NULL, ...) ## S4 method for signature 'list' new.pim.env(data, compare = "unique", vars = NULL, ...) ## S4 method for signature 'data.frame' new.pim.env(data, compare = "unique", vars = NULL, ...) ## S4 method for signature 'ANY' new.pim.env(data, ...)
a data frame, a list or an environment containing the data for a probabilistic index model.
extra parameters for construction of the poset, like
a character vector, matrix or list that defines how the
set of pseudo observations (poset) should be constructed.
if set to
an environment that is the parent environment of the object.
An optional character vector with the names of the variables
that should be included in the pim environment. Note that the
variable names should be found in the object passed to argument
An optional character vector with the classes of the
variables in the environment, given in the same order as
This function is called during the preparation of the model matrix for a pim. The resulting object is used to evaluate the formula of a pim, and stores information on how this is done.
Note that the parent of the environment is actually the
pim.poset object in the
The parent you set using the
is the parent of the
pim.poset object. This ensures that
when a formula is evaluated in the
will use a suitable search path to find all functions and objects.
an object of the class
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.