A call to csem() results in an object with at least
two class attributes. The first class attribute is always cSEMResults no matter
the type of data or model provided.
The second is one of cSEMResults_default, cSEMResults_multi, or
cSEMResults_2ndorder and depends on the estimated model and/or the type of
data provided to the .model and .data arguments of csem().
The third class attribute cSEMResults_resampled is only added if resampling
was conducted.
Details
Depending on the type of data and/or model provided three different output types exists.
- _default
This will be the structure for the vast majority of applications. If the data is a single
matrixordata.framewith no id-column, the result is alistwith elements:$EstimatesA list containing a list of estimated quantities.
$InformationA list containing a list of additional information.
The resulting object has classes
cSEMResultsandcSEMResults_default.- _multi
If the data provided is a single
matrixordata.framecontaining an id-column to split the data byGgroup levels or if a list ofGdatasets is provided, the resulting object is a list ofGlists, whereGis equal to the number of groups or the number of datasets in the list of datasets provided. Each of theGlist elements is itself acSEMResults_defaultobject. Hence its structure is identical to the structure described in_default.The resulting object has classes
cSEMResultsandcSEMResults_multi.- _2ndorder
A special output is generated if the model to estimate contains hierarchical constructs and the "2stage" or "mixed" approach is used to estimate the model. In this case the resulting object is a list containing two elements
First_stageandSecond_stage.Each list element is itself a
cSEMResults_defaultobject. Hence its structure is identical to the structure described in_default.
If .resample_method = "bootstrap" or .resample_method = "jackknife", resamples
are attached to each object. For objects of class cSEMResults_default the resamples are
attached to .object$Estimates$Estimates_resample. For objects of class
cSEMResults_multi the same is done by group. For objects of class
cSEMResults_2ndorder the resamples are attached to the
.object$Second_stage$Information$Resamples. All objects containing
these elements gain the cSEMResults_resampled class.