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

1
  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

Author(s)

Sebastian Schmidtlein

See Also

autopls, set.iter, set.lv

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
  ## 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)