prior2macro {R2MLwiN}R Documentation

Translates informative prior information into a concise MLwiN macro.

Description

An internal function which takes an R list object containing informative prior information for a multilevel model and translates it into a concise vector object to be used in an MLwiN macro.

Usage

prior2macro(prior, D, fpart, nrand)

Arguments

prior

An R list object containing prior information for a multilevel model. See ‘Details’ below.

D

A character string specifying the type of distribution, which can be one of 'Normal', 'Binomial', 'Poisson', 'Negbinom', 'Multinomial', 'Multivariate Normal', or 'Mixed'

fpart

An R list containing the list of fixed part parameter labels.

nrand

An R list of lists, containing the number of random parameters at each level.

Details

The prior list can contain the following:

Value

A long vector is returned in the format of MLwiN macro language. This includes all the specified prior parameters.

Author(s)

Zhang, Z., Charlton, C.M.J., Parker, R.M.A., Leckie, G., and Browne, W.J. (2016) Centre for Multilevel Modelling, University of Bristol.

See Also

runMLwiN


[Package R2MLwiN version 0.8-9 Index]