correl_filter | R Documentation |

Filter using correlation (Pearson or Spearman) for ranking variables.

correl_filter( y, x, force_vars = NULL, nfilter = NULL, p_cutoff = 0.05, method = "pearson", type = c("index", "names", "full"), ... )

`y` |
Response vector |

`x` |
Matrix of predictors |

`force_vars` |
Vector of column names within |

`nfilter` |
Number of predictors to return. If |

`p_cutoff` |
p value cut-off |

`method` |
Type of correlation, either "pearson" or "spearman". |

`type` |
Type of vector returned. Default "index" returns indices, "names" returns predictor names, "full" returns a matrix of p-values. |

`...` |
Further arguments passed to correls |

Integer vector of indices of filtered parameters (type = "index") or
character vector of names (type = "names") of filtered parameters. If
`type`

is `"full"`

full output from correls is returned.

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.