net.tab: Generate Network Characteristics

View source: R/net.tab.R

net.tabR Documentation

Generate Network Characteristics

Description

Generates tables of network characteristics

Usage

net.tab(data, outcome, N, type.outcome, time = NULL)

Arguments

data

A BUGSnetData object produced by data.prep()

outcome

A string indicating the name of the outcome variable

N

A string indicating the name of the variable containing the number of participants in each arm

type.outcome

A string. Options are: "binomial", "continuous", "rate" (e.g # of events and # person-time reported), "rate2" (e.g # events and followup time reported)

time

A string required when type.outcome = "rate" or "rate2". Name of variable indicating person-time followup (e.g person years) or study followup time

Value

network - Table of network characteristics

intervention - Summary statistics broken down by treatment

comparison - Summary statistics broken down by treatment comparison

See Also

data.prep

Examples

data(diabetes.sim)

diabetes.slr <- data.prep(arm.data = diabetes.sim, 
varname.t = "Treatment", 
varname.s = "Study")

network.char <- net.tab(data = diabetes.slr,
outcome = "diabetes",
N = "n",
type.outcome = "rate2",
time = "followup")

audrey-b/BUGSnet documentation built on Feb. 2, 2025, 5:10 p.m.