Description Usage Arguments Details Value Author(s) Examples

The algorithm finds weights of continous attributes basing on their correlation with continous class attribute.

1 2 |

`formula` |
a symbolic description of a model |

`data` |
data to process |

`linear.correlation`

uses Pearson's correlation

`rank.correlation`

uses Spearman's correlation

Rows with `NA`

values are not taken into consideration.

a data.frame containing the worth of attributes in the first column and their names as row names

Piotr Romanski

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ```
library(mlbench)
data(BostonHousing)
d=BostonHousing[-4] # only numeric variables
weights <- linear.correlation(medv~., d)
print(weights)
subset <- cutoff.k(weights, 3)
f <- as.simple.formula(subset, "medv")
print(f)
weights <- rank.correlation(medv~., d)
print(weights)
subset <- cutoff.k(weights, 3)
f <- as.simple.formula(subset, "medv")
print(f)
``` |

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.