-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpls_permutation.Rd
41 lines (36 loc) · 1.23 KB
/
pls_permutation.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pls_permutation.R
\name{pls_permutation}
\alias{pls_permutation}
\title{Run a PLSR model permutation analysis. Can be used to determine the optimal number of components
or conduct a boostrap uncertainty analysis}
\usage{
pls_permutation(
dataset = NULL,
targetVariable = NULL,
maxComps = 20,
iterations = 20,
prop = 0.7,
verbose = FALSE
)
}
\arguments{
\item{dataset}{input full PLSR dataset. Usually just the calibration dataset}
\item{targetVariable}{What object or variable to use as the Y (predictand) in the PLSR model?
Usually the "inVar" variable set at the beginning of a PLS script}
\item{maxComps}{maximum number of components to use for each PLSR fit}
\item{iterations}{how many different permutations to run}
\item{prop}{proportion of data to preserve for each permutation}
\item{verbose}{Should the function report the current iteration status/progress to the terminal
or run silently? TRUE/FALSE. Default FALSE}
}
\value{
output a list containing the PRESS and coef_array.
output <- list(PRESS=press.out, coef_array=coefs)
}
\description{
See Serbin et al. (2019). DOI: https://doi.org/10.1111/nph.16123
}
\author{
Julien Lamour, Shawn P. Serbin
}