Description Usage Arguments Details Value Author(s) References Examples
View source: R/plearn.struct.R
Learning graphical model structure for mixed types of random varaibles based on p-learning algorithm. Each variable in the dataset can be either binary or Gaussian distributed.
1 2 |
data |
The data matrix, of dimensions nxp. Each row is an observation vector and each column is a variable. |
gaussian.index |
The index vector of Gaussian nodes. The default value is |
binary.index |
The index vector of binary nodes. The default value is |
alpha1 |
The significant level of parent and children screening in p-learning algorithm. The default value is 0.1. |
alpha2 |
The significant level of moral graph screening in p-learning algorithm. The dafault value is 0.02. |
restrict |
Should edge restriction applied? (logical). If |
score.only |
If |
This is the function that implements the p-learning algorithm for learning the undirect network structure for mixed types of random variables.
A list of two objects.
Adj |
The estimated adjacency matrix of undirect network. |
score |
The estimated z-scores for all pair of variables. |
Bochao Jia and Faming Liang
Jia, B., and Liang, F. (2018) Joint Estimation of Restricted Mixed Graphical Models. manuscript.
1 2 3 | library(equSA)
data.graph <- DAGsim(n = 200, p = 100, type="AR(2)", p.binary = 50)$data
plearn.struct(data.graph, alpha1 = 0.1, alpha2 = 0.02)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.