50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

autopls (version 1.3)

reset: Resets the number of latent vectors and the iteration used in autopls objects

Description

Resets the number of latent vectors and the iteration used in autopls objects to the values originally selected by the autopls procedure

Usage

reset(object, verbose = TRUE)

Arguments

object
object of class autopls
verbose
logical. If a summary of the resulting object should be printed on the screen

Value

Returns an object of class autopls

See Also

autopls, set.iter, set.lv

Examples

Run this code
  ## load predictor and response data to the current environment
  data (murnau.X)
  data (murnau.Y)
  
  ## call autopls with the standard options
  model <- autopls (murnau.Y ~ murnau.X)
  
  ## select another iteration
  newmodel <- set.iter (model,3)
  
  ## set another number of latent vectors
  evennewermodel <- set.lv (newmodel,2)

  ## return to the original values
  firstmodel <- reset (evennewermodel)

Run the code above in your browser using DataLab