Description Usage Arguments Examples
Converts a summary table for model parameters on the log scale to the natural or exponentiated scale.
1 2 3 |
x |
a matrix or data frame as returned by |
exclude |
vector of parameters not transformed, defaults to the range parameter |
invLogit |
Converts intercept parameter to inverse-logit scale when |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | require("geostatsp")
data("swissRain")
swissRain$lograin = log(swissRain$rain)
if(requireNamespace('INLA', quietly=TRUE)) {
swissFit = glgm(formula="lograin", data=swissRain,
grid=20,
covariates=swissAltitude/1000, family="gaussian",
prior = list(sd=1, range=100*1000, sdObs = 2),
control.inla = list(strategy='gaussian', int.strategy='eb'),
control.mode = list(theta=c(1.6542995, 0.7137123,2.2404179))
)
if(length(swissFit$parameters)) {
postExp(swissFit$parameters$summary)
}
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.