R/step5.R

Defines functions estimatePLS_Step5

estimatePLS_Step5 <- function(model)  {
  oldOuterWeights <- model$matrices$outerWeights
  newOuterWeights <- getNonZeroElems(model$matrices$lambda)

  weightDiff <- (oldOuterWeights - newOuterWeights) / oldOuterWeights
  model$status$convergence <- all(abs(weightDiff) < model$status$tolerance)

  model$matrices$outerWeights <- newOuterWeights
  model
}

Try the plssem package in your browser

Any scripts or data that you put into this service are public.

plssem documentation built on March 23, 2026, 5:08 p.m.