latent_table: Latent scores

Description Usage Arguments Author(s) See Also Examples

View source: R/tables.R

Description

latent_table is a convenience function similar to manifest_table, and uses qtable to generate a table of means (by groups) for any PLS latents.

Usage

1
2
latent_table(df, groups = NULL, weight = NULL, margin = TRUE,
  wide = TRUE)

Arguments

df

A Survey.

groups

Variables to group by during aggregation.

weight

Name of variable to weight by. Set this to TRUE to use the 'weight' association in the Survey.

margin

If TRUE (the default), the first group will include a "Total".

wide

Should a long or a wide table be returned? Wide tables spread levels for factor and unique values for character. For a single numeric, the last group is used, while multiple numeric will be spread by variable names.

Author(s)

Kristian D. Olsen

See Also

latent_plot to easily plot the latent scores.

Examples

1

itsdalmo/reporttoolDT documentation built on May 18, 2019, 7:11 a.m.