Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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)

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

Building and Estimating Structural Equation Models

v2.0.2
GPL-3
Authors
Soumya Ray [aut, ths], Nicholas Patrick Danks [aut, cre], André Calero Valdez [aut], Juan Manuel Velasquez Estrada [ctb], James Uanhoro [ctb], Johannes Nakayama [ctb], Lilian Koyan [ctb], Laura Burbach [ctb], Arturo Heynar Cano Bejar [ctb], Susanne Adler [ctb]
Initial release
2021-04-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.