Description Usage Arguments Details Value Examples
Estimates the precision matrix from the basis graphical lasso model.
1 2 3 4 5 6 7 8 9 10 |
lambda |
Penalty be either a nonnegative real, or a matrix of nonnegative reals whose dimension is the same as the number of graph nodes. |
Phi_Dinv_Phi |
Inner product of basis matrices, Φ'D^{-1}Φ. Typically obtained from using |
Phi_Dinv_S_Dinv_Phi |
Inner product of the basis matrices and data, Φ'D^{-1}SD^{-1}Φ. Typically obtained from using |
guess |
Initial guess for the precision matrix. |
outer_tol |
Tolerance. Default: NULL. |
MAX_ITER |
Maximum number of iterations. Default: NULL. |
MAX_RUNTIME_SECONDS |
Maximum runtime in seconds. Default: NULL. |
verbose |
Print algorithm details after each iteration. Default: TRUE. |
This is the DC algorithm suggested in the paper and is the workhorse of the package. It uses the QUIC
algorithm to solve the inner graphical lasso problem which arises after linearizing all concave functions w.r.t Q in the negative log likelihood. D is the covariance matrix of the additive error term epsilon in the model formulation; in the paper D = τ^2 I. The package does not estimate non-identity multiple of D but we include the more general version for possible future research.
Precision matrix of the random coefficients in the weighted sum of basis functions.
1 2 3 4 5 6 7 8 9 10 | basis.setup <- BGLBasisSetup(y=tmin$data,locs=tmin$lon.lat.proj,basis="LatticeKrig",
crossvalidation=FALSE,NC=20,nlevel=1)
Phi_Phi <- basis.setup$Phi_Phi
Phi_S_Phi <- basis.setup$Phi_S_Phi
tau_sq <- 2
lambda <- matrix(10,nrow=dim(Phi_Phi)[1],ncol=dim(Phi_Phi)[1])
diag(lambda) <- 0
BGLguess <- BGL_DC(lambda=lambda,Phi_Dinv_Phi=Phi_Phi/tau_sq,
Phi_Dinv_S_Dinv_Phi=Phi_S_Phi/(tau_sq^2), guess=diag(dim(Phi_Phi)[1]),
outer_tol=0.05,MAX_ITER=50,MAX_RUNTIME_SECONDS=86400)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.