Learn R Programming

autopls (version 1.3)

set.iter: Sets the run of an autopls backwards selection to be used

Description

Changes the run of an autopls backwards selection to be used

Usage

set.iter (object, iteration, verbose = TRUE)

Arguments

object
object of class autopls
iteration
new value for the iteration used
verbose
logical. If a summary of the resulting object should be printed on the screen

Value

Returns an object of class autopls

Details

The number of latent vectors is set to the orinal number for this run.

See Also

autopls, 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)
  
  ## set another number of latent vectors
  newmodel <- set.iter (model,3)

Run the code above in your browser using DataLab