Description Usage Arguments Value References See Also Examples
View source: R/glatent_confints.R
Estimate the precision matrix and construct confidence intervals for the latent and group averages graphs. The user can either provide an estimate of the relevant covariance matrix or the data and cluster assignments. If cross validation is selected, the data and clusters must be provided.
1 2 3 |
C_hat |
a d x d matrix. This is the estimated latent or group averages covariance matrix. |
X_vals |
a n x d matrix. This is a matrix where each row is a sample from the model. |
clusters |
a d dimensional integer vector. Contains the assignment of variables to groups. |
alpha |
a numeric. |
graph |
a string. It can either have value |
variance_estimator |
a string. It can either have value |
use_cv |
logical expression. Indicates whether or not to use cross validation. |
cv_opts |
an object. Contains options for cross validation procedure. |
lambda1 |
a numeric. Parameter for the first optimization problem. |
lambda2 |
a numeric. Parameter for the second optimization problem. |
a d x d x 3 array. The first d x d slice is the lower confidence bound, the second the point estimate, and the third the upper confidence bound.
C. Eisenach, F. Bunea, Y. Ning, and C. Dinicu. Efficient, High-Dimensional Inference for Cluster-Based Graphical Models. Manuscript submitted for publication, 2018.
gforce.glatent_confints.cv_defaults
1 2 3 4 5 6 | K <- 5
n <- 50
d <- 50
dat <- gforce.generator(K,d,n,3,graph='scalefree')
th_tilde <- gforce.glatent_confints(X_vals = dat$X,clusters = dat$group_assignments,
use_cv = TRUE,graph='latent')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.