summariseAlpha: Summarize alphas

Description Usage Arguments Examples

View source: R/summariseAlpha.R

Description

This function computes approximate normal intervals, etc. for fitted alphas.

Usage

1
summariseAlpha(alpha, prob = 0.95, coords.s, coords.r)

Arguments

alpha

structure containing posterior inference for remote coefficients

prob

confidence level for confidence intervals and significance

coords.s

matrix with coordinates where responses were observed (lon, lat)

coords.r

matrix with coordinates where remote covariates were observed (lon, lat)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
data("coprecip")
data("coprecip.fit")
attach(coprecip)

# sample posterior predictive distributions AND estimate teleconnection effects
coprecip.precict = stPredict(stFit = coprecip.fit, stData = coprecip, 
                             stDataNew = coprecip, burn = 90, 
                             returnFullAlphas = TRUE)

alpha.90 = summariseAlpha(alpha = coprecip.precict$alpha, prob = .9, 
                          coords.s = coords.s, coords.r = coords.r)

## End(Not run)

jmhewitt/telefit documentation built on Feb. 9, 2020, 7:15 p.m.