Description Usage Arguments Value Note References Examples

View source: R/HPS-ES-functions.R

Calculates the HPS effect size estimator based on data from an (AB)^k design, as described in Hedges, Pustejovsky, & Shadish (2012). Note that the data must contain one row per measurement occasion per subject.

1 2 3 4 5 6 7 8 9 10 |

`outcome` |
vector of outcome data or name of variable within |

`treatment` |
vector of treatment indicators or name of variable within |

`id` |
factor vector indicating unique cases or name of variable within |

`phase` |
factor vector indicating unique phases (each containing one contiguous control
condition and one contiguous treatment condition) or name of variable within |

`time` |
vector of measurement occasion times or name of variable within |

`data` |
(Optional) dataset to use for analysis. Must be data.frame. |

`phi` |
(Optional) value of the auto-correlation nuisance parameter, to be used in calculating the small-sample adjusted effect size |

`rho` |
(Optional) value of the intra-class correlation nuisance parameter, to be used in calculating the small-sample adjusted effect size |

A list with the following components

`M_a` | Matrix reporting the total number of time points with data for all ids, by phase and treatment condition |

`M_dot` | Total number of time points used to calculate the total variance (the sum of `M_a` ) |

`D_bar` | numerator of effect size estimate |

`S_sq` | sample variance, pooled across time points and treatment groups |

`delta_hat_unadj` | unadjusted effect size estimate |

`phi` | corrected estimate of first-order auto-correlation |

`sigma_sq_w` | corrected estimate of within-case variance |

`rho` | estimated intra-class correlation |

`theta` | estimated scalar constant |

`nu` | estimated degrees of freedom |

`delta_hat` | corrected effect size estimate |

`V_delta_hat` | estimated variance of the effect size |

If phi or rho is left unspecified (or both), estimates for the nuisance parameters will be calculated.

Hedges, L. V., Pustejovsky, J. E., & Shadish, W. R. (2012).
A standardized mean difference effect size for single case designs.
*Research Synthesis Methods, 3*, 224-239. doi: 10.1002/jrsm.1052

1 2 3 4 5 6 7 |

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.