R: Log-prior density for the spatial autocorrelation parameter...
logprrho
R Documentation
Log-prior density for the spatial autocorrelation parameter rho
Description
Compute log-prior density for rho
Usage
logprrho(rho)
Arguments
rho
The value to compute the log-density.
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.
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(INLABMA)
Loading required package: parallel
Loading required package: sp
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/INLABMA/logprrho.Rd_%03d_medium.png", width=480, height=480)
> ### Name: logprrho
> ### Title: Log-prior density for the spatial autocorrelation parameter
> ### 'rho'
> ### Aliases: logprrho
> ### Keywords: distribution
>
> ### ** Examples
>
>
> rrho<-seq(.01, .99, length.out=100)
> plot(rrho, exp(logprrho(rrho)))
>
>
>
>
>
> dev.off()
null device
1
>