powered by
This function allows you to learn the DAG structure from observational data
obsDAG(X, lambda, tau, rho = 1, A_NZ0 = NULL, A0 = NULL, opts.tol = 1e-04, maxIter = 1000)
The n by p data matrix
tuning parameter for the first penalty of the adjacency matrix
tuning parameter of the TLP function
the ADMM penalty parameter, default is 1
An p by p matrix indicating nonzero elements as initial values
An p by p matrix as initial values for A
Tolerance for convergence
maximum number of iterations in ADMM loop
Estimated adjacency matrix
# NOT RUN { p <- 10 amat <- matrix(0, p, p) amat[2:p, 1] <- 1 Sig <- seq(1, 0.5, length.out=p) X <- rmvDAG_obs(100, amat, Sig) out <- obsDAG(X, 5, 0.01) # }
Run the code above in your browser using DataLab