aa_example_smk_fe: Example smoking FE NMA

example_smk_feR Documentation

Example smoking FE NMA

Description

Calling example("example_smk_fe") will run a fixed effects NMA model with the smoking cessation data, using the code in the Examples section below. The resulting stan_nma object smk_fit_FE will then be available in the global environment.

Details

Smoking FE NMA for use in examples.

Examples

# Set up network of smoking cessation data
head(smoking)

smk_net <- set_agd_arm(smoking,
                       study = studyn,
                       trt = trtc,
                       r = r,
                       n = n,
                       trt_ref = "No intervention")

# Print details
smk_net


# Fitting a fixed effect model
smk_fit_FE <- nma(smk_net, 
                  trt_effects = "fixed",
                  prior_intercept = normal(scale = 100),
                  prior_trt = normal(scale = 100))

smk_fit_FE




multinma documentation built on May 31, 2023, 5:46 p.m.