tests/RUnit/import/runit.fit.R

### runit.fit.R: test fitting models
### By Bjørn-Helge Mevik
### Started 2013-07-12

## test.mvr: test calling pls::mvr directly
test.mvr <- function() {
    mvrmod <- pls::mvr(sensory ~ chemical, data = oliveoil)
    checkEquals(class(mvrmod), "mvr")
}

## test.plsr: test calling pls::plsr directly
test.plsr <- function() {
    plsrmod <- pls::plsr(sensory ~ chemical, data = oliveoil)
    checkEquals(class(plsrmod), "mvr")
}

## test.pcr: test calling pls::pcr directly
test.pcr <- function() {
    pcrmod <- pls::pcr(sensory ~ chemical, data = oliveoil)
    checkEquals(class(pcrmod), "mvr")
}

Try the pls package in your browser

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

pls documentation built on Nov. 18, 2023, 1:11 a.m.