Learn R Programming

rwc (version 1.12)

Random Walk Covariance Models

Description

Code to facilitate simulation and inference when connectivity is defined by underlying random walks. Methods for spatially-correlated pairwise distance data are especially considered. This provides core code to conduct analyses similar to that in Hanks and Hooten (2013) .

Copy Link

Version

Install

install.packages('rwc')

Monthly Downloads

174

Version

1.12

License

GPL-2

Maintainer

Ephraim Hanks

Last Published

January 15th, 2025

Functions in rwc (1.12)

rGenWish

Simulate realizations from the Generalized Wishart distribution
rnorm.Q

Sample random normal variables with precision matrix Q.
mcmc.wish.icar

Markov chain Monte Carlo sampler for Generalized Wishart distance matrix data arising from an ICAR spatial model.
cov.from.dist

Create covariance matrix from a distance matrix
rwc-package

Random Walk Covariance Models
dist.from.cov

Compute a squared distance matrix from a covariance matrix.
get.Phi

Compute the precision matrix Phi of observed nodes on a graph.
dGenWish

Density of the (singular) Generalized Wishart distribution
get.TL

Construct a transition list from a raster or raster stack
get.Q

Create a precision matrix from a transition list and a set of log-conductance rates.