plot.glmmfit {GLMMGibbs}R Documentation

Plot Result Of Glmm Fit

Description

Plot either the trace plots, the histograms, or both, of the sampled values for parameters of interest in a model fitted by glmm

Usage

plot.glmmfit(g, parameters, type = "b", hscale = "b",
plots.per.page = 4, postscript)

Arguments

g The result of a call to the glmm function, an object of class glmmfit.
parameters A vector of character strings giving names parameters in the model. If not missing, only sampled values for these parameters are plotted. If missing, sampled values for all parameters of interest are plotted.
type A character, determining which type of plot is given. If "t", "T", trace or Trace a trace plot is made. If "h", "H", "hist" or "Hist" a histogram is plotted. If "b", "B", "both" or "Both" both plots are made, side by side, with the trace plot on the left and the histogrm on the right. Default is "b".
hscale A character, determining the scale on which scale sampled values of hyperparameter values are plotted. If "t", "T", "tau" or "Tau" sampled values are plotted on the tau scale. If "s", "S" "sigma" or "Sigma" values are plotted on the sigma scale. If "b", "B", "both" or "Both", sampled values are plotted on both scales. Default is "b".
plots.per.page The number of variables plotted per page of output. Default is 4.
postscript A character string. If it is not missing and takes the value "file", say, the output is written to files "file_page1.ps", "file_page2.ps", etc.

Details

The sampled values of some or all of the parameters of interest in a model fitted by the glmm function are plotted out. The parameters for which values are plotted, whether trace plots, histograms, or both are plotted, the scale on which hyperparameter values are plotted, the number of variables plotted per page and whether the plots are made to the screen or to postscript files are all decided by the arguments to the function

Author(s)

Jonathan Myles, Imperial Cancer Research Fund, and David Clayton, Wellcome Trust mylesj@icrf.icnet.uk

See Also

glmm