writeModel: A function to write a text file encoding the modelling...

Description Usage Arguments Author(s)

Description

The writeModel function helps to select the proper model to be contained in the 'model.file' for MCMC simulation based on users' specifications.

Usage

1
writeModel(outcome, model, type, model.file, data)

Arguments

outcome

type of outcome that needs to be specified. For binary, continuous and count data, 'bin', 'ctns' and 'count' need to be specified, respectively.

model

type of model that needs to be specified. There are 14 options: 'std.norm','std.dt', 'reg.norm','reg.dt','std.ta','std.mv','reg.ta','reg.mv','std','std.unif','std.hc','reg', 'reg.unif','reg.hc'.

type

model type—either fixed-effects("fix") or random-effects model("ran") needs to be specified.

model.file

file containing the appropriate model selected by user

data

a data list containing information on observed data (including moderators).

Author(s)

Tao Ding Gianluca Baio


bmeta documentation built on May 2, 2019, 12:48 a.m.