mean_replacement {seminr} | R 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.
[Package seminr version 2.3.3 Index]