Description Usage Arguments Details Value Author(s)

This function will test the hypothesis that, given a set of two residuals (new vs. old), the new ones are better than the old ones as measured with non-parametric tests.
Four *p*-values are provided: one for the binomial sign test, one for the paired Wilcoxon rank-sum test, one for the paired *t*-test, and one for the `F`

-test.
The proportion of subjects that improved their residuals, the proportion that worsen their residuals, and the net residual improvement (NeRI) will be returned.

1 2 3 | ```
improvedResiduals(oldResiduals,
newResiduals,
testType = c("Binomial", "Wilcox", "tStudent", "Ftest"))
``` |

`oldResiduals` |
A vector with the residuals of the original model |

`newResiduals` |
A vector with the residuals of the new model |

`testType` |
Type of non-parametric test to be evaluated: Binomial test ("Binomial"), Wilcoxon rank-sum test ("Wilcox"), Student's |

This function will test the hypothesis that the new residuals are "better" than the old residuals. To test this hypothesis, four types of tests are performed:

The paired

*t*-test, which compares the absolute value of the residualsThe paired Wilcoxon rank-sum test, which compares the absolute value of residuals

The binomial sign test, which evaluates whether the number of subjects with improved residuals is greater than the number of subjects with worsened residuals

The

*F*-test, which is the standard test for evaluating whether the residual variance is "better" in the new residuals.

The proportions of subjects that improved and worsen their residuals are returned, and so is the NeRI.

`p1` |
Proportion of subjects that improved their residuals to the total number of subjects |

`p2` |
Proportion of subjects that worsen their residuals to the total number of subjects |

`NeRI` |
The net residual improvement ( |

`p.value` |
The one tail |

`BinP.value` |
The |

`WilcoxP.value` |
The single sided |

`tP.value` |
The single sided |

`FP.value` |
The single sided |

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.