INLABMA (version 0.1-12)

logprrho: Log-prior density for the spatial autocorrelation parameter rho

Description

Compute log-prior density for rho

Usage

logprrho(rho)

Value

Numerical.

Arguments

rho

The value to compute the log-density.

Author

Virgilio Gómez-Rubio <virgilio.gomez@uclm.es>

Details

This function computes the log-density of the prior for rho according to logit(rho) ~ N(0, prec=.1). THis is one of the default priors in R-INLA for spatial autocorrelation parameters.

Examples

Run this code

rrho<-seq(.01, .99, length.out=100)
plot(rrho, exp(logprrho(rrho)))

Run the code above in your browser using DataLab