Description Usage Arguments Value Note Author(s)

View source: R/featureAdjustment.R

This function fits the candidate variables to the provided model,for each strata, on a control population. If the variance of the residual (the fitted observation minus the real observation) is reduced significantly, then, such residual is used in the resulting data frame. Otherwise, the control mean is subtracted to the observation.

1 2 3 4 5 6 7 8 | ```
featureAdjustment(variableList,
baseModel,
strata = NA,
data,
referenceframe,
type = c("LM", "GLS", "RLM"),
pvalue = 0.05,
correlationGroup = "ID")
``` |

`variableList` |
A data frame with two columns. The first one must have the names of the candidate variables and the other one the description of such variables |

`baseModel` |
A string of the type "1 + var1 + var2" that defines the model to which variables will be fitted |

`strata` |
The name of the column in |

`data` |
A data frame where all variables are stored in different columns |

`referenceframe` |
A data frame similar to |

`type` |
Fit type: linear fitting ("LM"), generalized least squares fitting ("GLS") or Robust ("RLM") |

`pvalue` |
The maximum |

`correlationGroup` |
The name of the column in |

A data frame, where each input observation has been adjusted from `data`

at each `strata`

This function prints the residuals and the *F*-statistic for all candidate variables

Jose G. Tamez-Pena and Antonio Martinez-Torteya

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.