View source: R/calculateStats.R

calculateStats | R Documentation |

Calculate a range of statistics and p-values for comparison of two data sets.

calculateStats( df, ds1, ds2, column, subsampleSize, permute = FALSE, kmin, kfrac, xmin, xmax )

`df` |
The input data frame. Must contain at least a column named 'dataset' and an additional column with values to use as the basis for the comparison. |

`ds1, ds2` |
The names of the two data sets to be compared. |

`column` |
The name of the column(s) of |

`subsampleSize` |
The number of observations for which certain
time-consuming statistics will be calculated. The observations will be
selected randomly among the rows of |

`permute` |
Whether to permute the dataset column of |

`kmin, kfrac` |
For statistics that require the extraction of k nearest neighbors of a given point, the number of neighbors will be max(kmin, kfrac * nrow(df)). |

`xmin, xmax` |
Smallest and largest value of |

A vector with statistics and p-values

Charlotte Soneson

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.