View source: R/projoint_diff.R
| projoint_diff | R Documentation |
Worker used by projoint to compute subgroup differences
(group == 1 minus group == 0) in marginal means (MMs) or
average marginal component effects (AMCEs). Supported only for
.structure = "profile_level".
projoint_diff(
.data,
.qoi,
.by_var,
.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 |
.by_var |
Column name in |
.structure |
Must be |
.estimand |
Either |
.se_method |
One of |
.irr |
|
.remove_ties |
Logical; drop ties before estimation? Default |
.ignore_position |
Ignored (subgroup analysis is profile-level only). |
.n_sims |
Integer; required when |
.n_boot |
Integer; required when |
.weights_1, .clusters_1, .se_type_1 |
Passed to |
.weights_2, .clusters_2, .se_type_2 |
Passed to |
.auto_cluster |
Logical; if |
.seed |
Optional integer; sets a temporary RNG seed and restores prior state on exit. |
A projoint_results object containing subgroup differences with fields:
estimates: tibble with one row per attribute/level and columns
like estimate (group1 minus group0), se, conf.low,
conf.high, plus internal columns (estimate_1, estimate_0,
se_1, se_0) used in the diff.
estimand: "mm" or "amce".
structure: "profile_level".
se_method: SE method used.
irr: "Estimated" or "Assumed (<value> )".
tau: numeric reliability used (average of subgroup taus when estimated).
remove_ties, ignore_position: flags echoed from inputs.
se_type_used, cluster_by: details propagated from fitting calls.
labels, data: design labels and the analysis data (passed through).
projoint, projoint_level, projoint_results
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.