| predict.MCMCglmm | R Documentation | 
Predicted values for GLMMs fitted with MCMCglmm
## S3 method for class 'MCMCglmm'
predict(object, newdata=NULL, marginal=object$Random$formula,
        type="response", interval="none", level=0.95, it=NULL, 
        posterior="all", verbose=FALSE, approx="numerical", ...)
| object | an object of class  | 
| newdata | An optional data frame in which to look for variables with which to predict | 
| marginal | formula defining random effects to be maginalised | 
| type | character; either "terms" (link scale) or "response" (data scale) | 
| interval | character; either "none", "confidence" or "prediction" | 
| level | A numeric scalar in the interval (0,1) giving the target probability content of the intervals. | 
| it | integer; optional, MCMC iteration on which predictions should be based | 
| posterior | character; should marginal posterior predictions be calculated ("all"), or should they be made conditional on the marginal posterior means ("mean") of the parameters, the posterior modes ("mode"), or a random draw from the posterior ("distribution"). | 
| verbose | logical;  if  | 
| approx | character; for distributions for which the mean cannot be calculated analytically what approximation should be used: numerical integration ( | 
| ... | Further arguments to be passed | 
Expectation and credible interval
Jarrod Hadfield j.hadfield@ed.ac.uk
Diggle P, et al. (2004). Analysis of Longitudinal Data. 2nd Edition. Oxford University Press.
McCulloch CE and Searle SR (2001). Generalized, Linear and Mixed Models. John Wiley & Sons, New York.
MCMCglmm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.