Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/replicate_data.R

This function replicates 100 times the before and after values giving a start and end reference.

1 |

`x` |
a data frame containing the variables to be analyzed. |

`start` |
a start value for mu. |

`end` |
an end value for mu. |

`by` |
an increment for the sequence, if not informed (default) the increment is caluculated as the difference between |

`Before` |
a numeric vector giving the data values for the first (before) measure. |

`After` |
a numeric vector giving the data values for the second (after) measure. |

`data` |
an optional data frame containing the |

.

In order to overcome the limitation of Mee and Chua's test regarding the population mean `mu`

a replication of the data is performed.

After replicating the data the unknown population mean `mu`

is systematically estimated over a range of values. Further estimations will be based on this new dataset.

Return a data frame named `mee_chua`

containing the values for `mu`

, `before`

and `after`

.

Daniela R. Recchia, Thomas Ostermann.

Ostermann, T., Willich, Stefan N. & Luedtke, Rainer. (2008). Regression toward the mean - a detection method for unknown population mean based on Mee and Chua's algorithm. BMC Medical Research Methodology.

Galton, F. (1886). Regression towards mediocrity in heriditary stature. Journal of the Anthropological Institute (I5: 246-263).

rep

1 | ```
replicate_data(language_test,50,60,"Before","After",data=language_test)
``` |

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.