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

View source: R/writeModel.R

writeModelR Documentation

A function to write a text file encoding the modelling assumptions

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

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


giabaio/bmeta documentation built on May 4, 2023, 3:31 p.m.