dvec: Data generation: Sampling data of clinical trials

Description Usage Arguments Examples

View source: R/methods-for-data-generation.R

Description

Calculates the variance estimate of log risk ratios from a study in the right format. See the example below for details.

Usage

1
  dvec(study)

Arguments

study

Study data of a clinical trial with binomial outcomes.

Examples

1
2
3
4
5
6
7
8
9
h_test <- .03
x_test <- cbind(1,1:13)
b_test <- c(0.02, 0.03)
s_test <- rep(2000, 13)
a_test <- rep(.3, 13)
rBinomGauss(  h=h_test, s=s_test, a=a_test, r=0.03
            , x=x_test, b=b_test)$study -> test
yvec(test)
dvec(test)

metagen documentation built on May 2, 2019, 6:08 a.m.

Related to dvec in metagen...