Learn R Programming

telefit (version 1.0.3)

summariseAlpha: Summarize alphas

Description

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

Usage

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

Run this code
# 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)
# }

Run the code above in your browser using DataLab