ols_get | R Documentation |
Performs OLS regression to estimate the association between covariates and cepstral coefficients.
ols_get(X, f, frq, nbase)
X |
A numeric matrix of predictors (N x P). |
f |
A numeric matrix of cepstral coefficients. |
frq |
A vector of frequencies in |
nbase |
Number of Fourier basis functions. |
A list containing:
alph
Intercept vector.
bet
OLS coefficient matrix.
spechat
Estimated smoothed log-spectra.
res
Matrix of residuals.
frq <- seq(0, 1, length.out = 16)[2:8]
n <- 10
p <- 3
nbase <- 5
X <- matrix(rnorm(n * p), n, p)
f <- matrix(rnorm(n * nbase), n, nbase)
ols_result <- ols_get(X, f, frq, nbase)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.