prepare_data: Prepare survey data

Description Usage Arguments Value Author(s)

Description

This function does the imputation/PLS-PM (or simple mean) for the survey data. In addition, it calculates missing percentage and tallies the valid observations for each entity.

Usage

1
prepare_data(srv, type = "mean", cutoff = 0.3)

Arguments

srv

A survey object.

type

The approach to use for latents. Either mean, pls, or none (no latents). If pls is used, only coderesp and percent_missing are added to the data. I.e. it is a preparation for the PLS-wizard.

Value

Returns the survey with EM-variables and latent scores added using the specified method.

Author(s)

Kristian D. Olsen


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