Learn R Programming

autopls (version 1.3)

set.lv: Sets the number of latent vectors in autopls objects

Description

Sets the number of latent vectors in a autopls object

Usage

set.lv(object, lv, verbose = TRUE)

Arguments

object
object of class autopls
lv
new value for the number of latent vectors used
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

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.lv (model,2)

Run the code above in your browser using DataLab