Permalink
Browse files

add .gitignore, re-roxygenize

  • Loading branch information...
1 parent 1f1a03a commit cd379e6e5ee5cea4424e4ec56e4d782682366454 @seananderson committed Apr 7, 2013
Showing with 38 additions and 1 deletion.
  1. +5 −0 .gitignore
  2. +4 −1 R/rrma.R
  3. +2 −0 data/datalist
  4. +27 −0 man/plot.rrma.Rd
View
@@ -0,0 +1,5 @@
+.DS_Store
+.Rapp.history
+.aux
+.log
+.out
View
@@ -174,9 +174,12 @@ rrma <- function(formula, data, study_id, var_eff_size, rho, level = 0.05) {
rho=rho, mf=mf, call=cl, n=nrow(input_data), pred =
input_data$pred.r, res = input_data$e.r, k = N, yi =
input_data$effect_size, vi = input_data$var_eff_size,
- df = N-(p+1), crit = crit)
+ df = N-(p+1), crit = crit, level = level, individual_weights = 1/input_data$var_eff_size, weights = input_data$weights, robust_weights = input_data$r.weights)
class(ret) <- "rrma"
ret
}
+ data(broad)
+ m <- rrma(formula = lnorReg ~ d18OresidualMean.cent, data =
+ broad, study_id = study.ID, var_eff = vlnorReg, rho = 0.5)
View
@@ -0,0 +1,2 @@
+broad
+
View
@@ -0,0 +1,27 @@
+\name{plot.rrma}
+\alias{plot.rrma}
+\title{Forest plot of an rrma object}
+\usage{
+ plot.rrma(x, xlab = "Effect size", xlim = NULL,
+ mar = c(4, 11, 1, 1), cex.axis = 1,
+ bg_col = "#00000020", bg_line_col = "white", pch = 21,
+ zero_lty = 2, diamond_col = "grey40")
+}
+\description{
+ Creates a forest plot of an rrma object, which shows the
+ effect sizes and confidence intervals grouped by study
+ along with the robust meta-analytic mean and confidence
+ intervals.
+}
+\examples{
+data(broad)
+m <- rrma(formula = lnorReg ~ d18OresidualMean.cent, data =
+broad, study_id = study.ID, var_eff = vlnorReg, rho = 0.5)
+plot(m)
+}
+\references{
+ Hedges, L.V., Tipton, E. & Johnson, M.C. (2010). Robust
+ variance estimation in meta-regression with dependent
+ effect_size estimates. Res. Synth. Method., 1, 39-65.
+}
+

0 comments on commit cd379e6

Please sign in to comment.