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

View source: R/clean_data.R

mean_replacementR Documentation

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)

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.

Value

A dataset with all missing values replaced with column means

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.


seminr documentation built on Oct. 14, 2024, 1:07 a.m.