startingFunction {glmmBUGS} | R Documentation |
this is a function to generate ramdom MCMC starting values
startingFunction(startingValues, file = "getInits.R")
startingValues |
list returned from getStartingValues |
file |
character string giving the name of the file to write to |
Given a list containing initial estimates of parameters and random effects, a text file is produced containing code for a function to generate random starting values for use with the bugs() function. It is intended that the file produced be checked and edited prior to use.
A file, with the name given by the 'file' argument, is written.
You are strongly encouraged to edit the file to ensure the result is sensible
Patrick Brown, patrick.brown@utoronto.ca
##---- Should be DIRECTLY executable !! ---- ##-- ==> Define data, use random, ##-- or do help(data=index) for the standard data sets. sval = list(intercept=0, beta = 1:2, Rperson = rep(0, 5), vars=list(person=1)) startingFunction(sval)