Skip to contents

All functions

adj_mat_to_long()
Converts an adjacency matrix to a long format dataframe
dagma_fit_linear() dagma_fit_linear_optim()
DAGMA algorithm to learn DAGs
fit_topo()
Fit TOPO from Deng et al 2023
h_expm() h_expm_grad()
Implements the matrix exponential acyclicity regularizer from DAGs with no TEARS (Zheng et al 2018)
h_logdet() h_logdet_grad()
Computes the log-determinant acyclicity characterization
is_dag()
Checks if matrix is a directed acyclic graph
sim_linear_sem()
Simulate from linear SEM
spectral_radius()
Computes the spectral radius (the largest absolute eigenvalue) of a matrix
threshold_W()
Threshold a matrix by setting the variables less than threshold to 0
total_to_direct() direct_to_total()
Converts total effects to direct effects and visa verse