Learn R Programming

seminr (version 2.3.7)

mean_replacement: Function to clean data of omitted values by mean replacement

Description

The seminr package provides a natural syntax for researchers to describe PLS structural equation models.

Usage

mean_replacement(data)

Value

A dataset with all missing values replaced with column means

Arguments

data

A dataset to be used for estimating a SEMinR model

Details

mean_replacement provides the verb for replacing all omitted values (NA only) in the dataset with the mean of the variable. It gives a warning if more than 5

References

Hair, J. F., Hult, G. T. M., Ringle, C. M., and Sarstedt, M. (2017). A Primer on Partial Least Squares Structural Equation Modeling (PLS-SEM), 2nd Ed., Sage: Thousand Oaks.