Population Fidelity of the pooled population and of every facet level, one row per subgroup
Source:R/pfs.R
pfs_score_groups.RdPopulation Fidelity of the pooled population and of every facet level, one row per subgroup
Usage
pfs_score_groups(
survey,
model,
facets = NULL,
variant = pfs_variant(),
variants = NULL,
identity = NULL,
threads = NULL
)Arguments
- survey, model
Cells of the survey and of the model; scored on their common cells.
- facets
Facets, a facets spec, or
NULLfor the pooled population only.- variant
A specification from
pfs_variant().- variants
A list of specifications; adds a
variantcolumn.- identity
Named list of constant columns placed first.
- threads
Worker threads;
NULLreadspopfidelity.threadsorPOPFIDELITY_THREADS, else 2.
Examples
toy <- example_toy()
pfs_score_groups(toy$survey, toy$M1)
#> # A tibble: 1 × 25
#> group level n_cells n_pairs n_respondents e_mean_nemd e_q10_nemd e_q25_nemd
#> <chr> <chr> <int> <int> <dbl> <dbl> <dbl> <dbl>
#> 1 populat… all 4 6 NA 0.2 0.0800 0.125
#> # ℹ 17 more variables: e_median_nemd <dbl>, e_q75_nemd <dbl>, e_q90_nemd <dbl>,
#> # d_survey <dbl>, d_model <dbl>, adaptability_ratio <dbl>,
#> # rho_structure <dbl>, rho_structure_p_value <dbl>, model_flat <lgl>,
#> # c_center_nemd <dbl>, score_accuracy <dbl>, score_adaptability <dbl>,
#> # score_structure <dbl>, score_center <dbl>, pfs <dbl>,
#> # pfs_with_center <dbl>, binding_component <chr>