Compute LSTR term for high frequency variable
lstr(X, theta, beta, sd_x = sd(c(X), na.rm = TRUE))
X
: matrix, high frequency variable embedded in low frequency, output of mlstheta
: vector, restriction coefficients for high frequency variablebeta
: vector of length 4, parameters for LSTR term, slope and 3 LSTR parameterssd_x
: vector of length 1, defaults to standard deviation of X.a vector