yvec: Data generation: Sampling data of clinical trials

Description Usage Arguments Examples

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

Description

Calculates log risk ratios from a study in the right format.

Usage

1
  yvec(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 29, 2017, 7:13 p.m.