View source: R/halfnorm.fixednr.ci.R

Confidence intervals for Rosenthal's fail-safe number assuming a half normal distribution with a fixed number of studies | R Documentation |

Confidence intervals for Rosenthal's fail-safe number assuming a half normal distribution with a fixed number of studies.

halfnorm.fixednr.ci(stat, se, alpha = 0.05, type = "dist", B = 1000)

`stat` |
A vector with the statistics. |

`se` |
A vector with the standard errors of the stat. |

`alpha` |
The significance level, set to 0.05 by default. |

`type` |
The type of confidence intervals to construct. Based on distributional assumptions ("dist"), based on the method of moments ("mom"), using non-parametric bootstrap ("boot") or all of these three ("all"). |

`B` |
Number of bootstrap samples to generate. |

The function computes confidence intervals assuming a half normal distribution assuming that the number of studies is fixed and estimating the variance either via MLE, moments or bootstrap as described in Fragkos, Tsagris & Frangos (2014).

A list including:

`Nr` |
Rosenthal's fail safe number. |

`variance` |
The variance of Rosenthal's fail safe number. |

`ci` |
The (1-alpha)% confidence interval for the true Rosenthal's fail safe number. |

Michail Tsagris and Constantinos Frangos

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr and Constantinos Frangos kfragkos@outlook.com.

Konstantinos C. Fragkos, Michail Tsagris and Christos C. Frangos (2014). Publication Bias in Meta-Analysis: Confidence Intervals for Rosenthal's Fail-Safe Number. International Scholarly Research Notices, Volume 2014.

```
halfnorm.randomnr.ci, den.plot, rosenthal,
convergence.rate
```

stat <- rnorm(30, 3, 0.2) se <- rchisq(30, 1) halfnorm.fixednr.ci(stat, se)

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.