Description Usage Arguments Details Value

View source: R/analysis_functions.R

Reports the proportion of variance attributable to the latent Gaussian process.

1 |

`lg` |
Output from a call to |

`covariates` |
A |

`rr` |
Whether to report the VPC for the log relative risk (TRUE) or for the log incidence (FALSE) |

The total variance in either the log incidence or log relatve risk
can be partitioned into observed and latent components. It is assumed that
the log incidence and log relative risk are normally distributed so that the VPC is
equal to the variance of the latent Gaussian field over the total variance.
The variance depends on the intensity of the Poisson process so `vpc`

reports quantiles of the distribution of the variance partition coeffient across
the predicted values.

Prints the quantiles of the VPC. An object called `outl`

is exported to the
global environment which contains the samples from the model. Used to reduce loading time
of samples. This object is large so remove if no further analysis required.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.