View source: R/model.frame.heckmanGE.R
model.frame.heckmanGE | R Documentation |
Extracts the model frames for different parts of a heckmanGE
model. The model frames include the data used in the regression analysis for each component of the Generalized Heckman Model.
## S3 method for class 'heckmanGE'
model.frame(
formula,
part = c("selection", "outcome", "dispersion", "correlation"),
...
)
formula |
An object of class |
part |
A character vector specifying the model part for which to extract the model frame. Options include "selection", "outcome", "dispersion", and "correlation". The default is "outcome". If multiple parts are specified, only the "outcome" part will be returned. |
... |
Additional arguments passed to or from other methods. These are not used in this method but must be included to match the generic method signature. |
The function extracts the model frame corresponding to the specified part of the heckmanGE
model.
If the part
argument is not specified correctly or includes multiple parts, the function defaults to returning the model frame for the "outcome" part.
A model frame for the specified part of the heckmanGE
object. If part
is not one of the valid options, an error is raised.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.