by.comparison: Reorder data.frame for use in nma.prior

Description Usage Arguments Value

View source: R/by.comparison.R

Description

This function was originally an internal function to BUGSnet (https://github.com/audrey-b/BUGSnet). This version was altered to avoid warnings during the CRAN check but is otherwise exactly as presented in BUGSnet.

Usage

1
2
## S3 method for class 'comparison'
by(data.nma, outcome, type.outcome = "binomial", N, sd = NULL, time = NULL)

Arguments

data.nma

A data object

outcome

String indicating column name of outcome variable

type.outcome

String indicating the type of outcome

N

String indicating column name of sample size

sd

A string for the column name containing the standard errors (only required for continuous outcomes)

time

A string for the column names containing the follow-up times or person-time at risk for rate or rate2 data

Value

The rearranged data


augustinewigle/StanNet documentation built on July 21, 2020, 12:13 a.m.