samplePosterior: samplePosterior function

View source: R/lgcpStructures.R

samplePosteriorR Documentation

samplePosterior function

Description

A function to draw a sample from the posterior of a spatial LGCP. Randomly selects an index i, and returns the ith value of eta, the ith value of beta and the ith value of Y as a named list.

Usage

samplePosterior(x)

Arguments

x

an object of class lgcpPredictSpatialOnlyPlusParameters or lgcpPredictAggregateSpatialPlusParameters

Value

a sample from the posterior named list object with names elements "eta", "beta" and "Y".


lgcp documentation built on Oct. 3, 2023, 5:08 p.m.