rerun.pls_model: Reruns a previously specified seminr PLS model

View source: R/estimate_pls.R

rerun.pls_modelR Documentation

Reruns a previously specified seminr PLS model

Description

Reruns a previously specified seminr PLS model

Usage

## S3 method for class 'pls_model'
rerun(x, ...)

Arguments

x

An estimated pls_model object produced by estimate_pls

...

Any parameters to change during the re-estimation (e.g., data, measurement_model, etc.)

Value

A re-estimated pls_model object

Examples


mobi <- mobi

mobi_mm <- constructs(
  composite("Image",        multi_items("IMAG", 1:5)),
  composite("Loyalty",      multi_items("CUSL", 1:3))
)

mobi_sm <- relationships(
  paths(from = "Image",        to = c("Loyalty"))
)

mobi_pls <- estimate_pls(data = mobi,
                         measurement_model = mobi_mm,
                         structural_model = mobi_sm,
                         missing = mean_replacement,
                         missing_value = NA)

# Re-estimate model faithfully
mobi_pls2 <- rerun(mobi_pls)

# Re-estimated model with altered measurement model
mobi_pls3 <- rerun(mobi_pls, measurement_model=as.reflective(mobi_mm))


ISS-Analytics/seminr documentation built on Aug. 28, 2022, 11:50 p.m.