sampleFLC: Factor Loading Curve Sampling Algorithm

Description Usage Arguments Value Note

View source: R/RcppExports.R

Description

Sample the factor loading curve basis coefficients subject to an orthonormality constraint.

Usage

1
sampleFLC(BtY, Beta, Psi, BtB, Omega, lambda, sigmat2)

Arguments

BtY

J x T matrix B.t()*Y for basis matrix B

Beta

T x K matrix of factors

Psi

J x K matrix of previous factor loading curve coefficients

BtB

J x J matrix of B.t()*B

Omega

J x J prior precision/penalty matrix

lambda

K-dimensional vector of prior precisions

sigmat2

T-dimensional vector of time-dependent observation error variances

Value

Psi J x K matrix of (orthogonal) factor loading curve coefficients

Note

This function uses Rcpp for computational efficiency.


drkowal/FDLM documentation built on May 20, 2019, 5:20 p.m.