| pj_estimate | R Documentation |
Core workhorse for computing marginal means (MMs) or AMCEs from a conjoint design, with optional intra-respondent reliability (IRR) correction.
pj_estimate(
.data,
.structure,
.estimand,
.att_choose,
.lev_choose,
.att_notchoose,
.lev_notchoose,
.att_choose_b,
.lev_choose_b,
.att_notchoose_b,
.lev_notchoose_b,
.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 |
.structure |
Either |
.estimand |
Either |
.att_choose |
Attribute for the chosen profile/feature. |
.lev_choose |
Level(s) for the chosen profile/feature. Length 1 for |
.att_notchoose |
Attribute for the not-chosen profile/feature (required for |
.lev_notchoose |
Level(s) for the not-chosen profile/feature (required for |
.att_choose_b |
(AMCE only) Baseline attribute for comparison. |
.lev_choose_b |
(AMCE only) Baseline level(s) for comparison. |
.att_notchoose_b |
(AMCE only, choice-level only) Baseline attribute for the not-chosen profile. |
.lev_notchoose_b |
(AMCE only, choice-level only) Baseline level(s) for the not-chosen profile. |
.se_method |
One of |
.irr |
|
.remove_ties |
Logical; should ties be removed before estimation? Defaults to |
.ignore_position |
Logical; only for |
.n_sims |
Integer; required if |
.n_boot |
Integer; required if |
.weights_1 |
(Optional) Bare (unquoted) column with weights for IRR estimation; passed to |
.clusters_1 |
(Optional) Bare (unquoted) column with clusters for IRR estimation; passed to |
.se_type_1 |
SE type for IRR estimation; passed to |
.weights_2 |
(Optional) Bare (unquoted) column with weights for MM/AMCE estimation; passed to |
.clusters_2 |
(Optional) Bare (unquoted) column with clusters for MM/AMCE estimation; passed to |
.se_type_2 |
SE type for MM/AMCE estimation; passed to |
.auto_cluster |
Logical; if |
.seed |
Optional integer. If supplied, sets a temporary RNG seed for reproducible simulation/bootstrap inside this call and restores the previous RNG state on exit. |
IRR is clipped to [0.5, 1) (with a tiny epsilon) to avoid boundary issues.
For choice-level MMs, ties must be removed (.remove_ties = TRUE).
When .seed is supplied, the previous RNG state is restored on exit.
A data frame with rows for the requested estimand(s) and columns:
estimand: one of "mm_uncorrected", "mm_corrected",
"amce_uncorrected", "amce_corrected".
estimate, se, conf.low, conf.high, tau.
lm_robust, projoint,
projoint_level, projoint_diff
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.