bootnComp | R Documentation |

Combined bootstrap and cross validation procedure to find optimal number of PLS components

```
bootnComp(X, y, R = 99, plotting = FALSE)
```

`X` |
predictors as a matrix |

`y` |
response |

`R` |
number of bootstrap replicates |

`plotting` |
if TRUE, a diagnostic plot is drawn for each bootstrap replicate |

Heavily used internally in function impRZilr.

Including other information in a list, the optimal number of components

Matthias Templ

`impRZilr`

```
## we refer to impRZilr()
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.