View source: R/projoint_level.R
| projoint_level | R Documentation |
Core worker used by projoint to compute marginal means (MMs)
or average marginal component effects (AMCEs) under either the profile- or
choice-level structure. Handles IRR usage (estimated or fixed) and the
requested standard-error method.
projoint_level(
.data,
.qoi,
.structure,
.estimand,
.se_method,
.irr,
.remove_ties,
.ignore_position,
.n_sims,
.n_boot,
.weights_1,
.clusters_1,
.se_type_1,
.weights_2,
.clusters_2,
.se_type_2,
.auto_cluster = TRUE,
.seed = NULL
)
.data |
A |
.qoi |
Optional |
.structure |
Either |
.estimand |
Either |
.se_method |
One of |
.irr |
|
.remove_ties |
Logical; whether to drop tied responses (default |
.ignore_position |
Logical; choice-level only. Ignore left/right position?
Default |
.n_sims |
Integer; required when |
.n_boot |
Integer; required when |
.weights_1, .clusters_1, .se_type_1 |
Arguments passed to
|
.weights_2, .clusters_2, .se_type_2 |
Arguments passed to
|
.auto_cluster |
Logical; if |
.seed |
Optional integer; if supplied, sets a temporary RNG seed for simulation/bootstrap and restores prior state on exit. |
A projoint_results object containing:
estimates: tibble of estimates (point estimate, SE, CI) with
identifier columns (e.g., att_level_*).
estimand: "mm" or "amce".
structure: "profile_level" or "choice_level".
se_method: SE computation method used.
irr: character noting IRR usage (e.g., "Estimated" or
"Assumed (<value> )").
tau: numeric \tau used to correct measurement error.
remove_ties, ignore_position: flags echoed from inputs.
se_type_used, cluster_by: details propagated from
fitting calls (if available).
labels, data: design labels and the analysis data
passed through for downstream methods.
projoint, pj_estimate, organize_data,
projoint_results
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.