-
Notifications
You must be signed in to change notification settings - Fork 25
/
spike.slab.ar.prior.Rd
executable file
·73 lines (56 loc) · 2.17 KB
/
spike.slab.ar.prior.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
\name{spike.slab.ar.prior}
\alias{SpikeSlabArPrior}
\Rdversion{1.0}
\title{
Spike and Slab Priors for AR Processes
}
\description{ Returns a spike and slab prior for the parameters of an
AR(p) process.
}
\usage{
SpikeSlabArPrior(
lags,
prior.inclusion.probabilities =
GeometricSequence( lags, initial.value = .8, discount.factor = .8),
prior.mean = rep(0, lags),
prior.sd =
GeometricSequence(lags, initial.value = .5, discount.factor = .8),
sdy,
prior.df = 1,
expected.r2 = .5,
sigma.upper.limit = Inf,
truncate = TRUE)
}
\arguments{
\item{lags}{A positive integer giving the maximum number of lags to
consider.}
\item{prior.inclusion.probabilities}{ A vector of length \code{lags}
giving the prior probability that the corresponding AR coefficient
is nonzero. }
\item{prior.mean}{A vector of length \code{lags} giving the prior mean
of the AR coefficients. This should almost surely stay set at zero.
}
\item{prior.sd}{A vector of length \code{lags} giving the prior
standard deviations of the AR coefficients, which are modeled as
a-priori independent of one another.}
\item{sdy}{The sample standard deviation of the series being modeled.}
\item{expected.r2}{The expected fraction of variation in the response
explained by this AR proces.}
\item{prior.df}{A positive number indicating the number of
observations (time points) worth of weight to assign to the guess at
\code{expected.r2}.}
\item{sigma.upper.limit}{A positive number less than infinity
truncates the support of the prior distribution to regions where the
residual standard deviation is less than the specified limit. Any
other value indicates support over the entire positive real line.}
\item{truncate}{If \code{TRUE} then the support of the distribution is
truncated to the region where the AR coefficients imply a stationary
process. If \code{FALSE} the coefficients are unconstrained.}
}
\value{
A list of class \code{SpikeSlabArPrior} containing the information
needed for the underlying C++ code to instantiate this prior.
}
\author{
Steven L. Scott \email{[email protected]}
}