Learn R Programming

sourceR (version 1.1.0)

Alpha: Constructs alpha prior

Description

The Alpha constructure function returns an R6 Alpha_ class which feeds sanitised prior or initialisation values for alpha into the model.

Usage

Alpha(data, alpha, source, time = NULL, location = NULL)

Arguments

data

long-format data.frame containing Dirichlet prior hyperparameter, source, time, and location columns

alpha

name of hyperparameter column

source

name of source column

time

name of optional time column

location

name of optional location column

Value

An Alpha_ data structure for use in sourceR models