prior2macro: Translates informative prior information into a concise MLwiN...

Description Usage Arguments Details Value Author(s) See Also

View source: R/prior2macro.R

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

1
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


R2MLwiN documentation built on July 8, 2020, 5:49 p.m.

Related to prior2macro in R2MLwiN...