Package: lingamr 0.1.2.9000

lingamr: LiNGAM Algorithms for Causal Discovery

R implementation of LiNGAM (Linear Non-Gaussian Acyclic Model) algorithms for causal discovery, following Shimizu et al. (2011) <https://www.jmlr.org/papers/v12/shimizu11a.html>. Based on the 'Python' implementation by Ikeuchi et al. (2023) <https://github.com/cdt15/lingam>. The VAR-LiNGAM residual diagnostics are inspired by the 'VARLiNGAM' R code of Moneta et al. <https://sites.google.com/site/dorisentner/publications/VARLiNGAM>.

Authors:Osamu Morimoto [aut, cre, cph], T. Ikeuchi [cph], G. Haraoka [cph], M. Ide [cph], W. Kurebayashi [cph], S. Shimizu [cph]

lingamr_0.1.2.9000.tar.gz
lingamr_0.1.2.9000.zip(r-4.7-any)lingamr_0.1.2.9000.zip(r-4.6-any)lingamr_0.1.2.9000.zip(r-4.5-any)
lingamr_0.1.2.9000.tgz(r-4.6-any)lingamr_0.1.2.9000.tgz(r-4.5-any)
lingamr_0.1.2.9000.tar.gz(r-4.7-any)lingamr_0.1.2.9000.tar.gz(r-4.6-any)
lingamr_0.1.2.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
lingamr/json (API)

# Install 'lingamr' in R:
install.packages('lingamr', repos = c('https://morimotoosamu.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/morimotoosamu/lingamr/issues

Pkgdown/docs site:https://morimotoosamu.github.io

On CRAN:

Conda:

5.15 score 1 stars 230 downloads 70 exports 1 dependencies

Last updated from:a6d2caa728. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK234
source / vignettesOK276
linux-releaseOK204
macos-releaseOK215
macos-oldrelOK176
windows-develOK229
windows-releaseOK138
windows-oldrelOK201
wasm-releaseOK127

Exports:as_bootstrap_resultbootstrap_with_imputationcheck_var_stationaritycheck_varma_stationarityestimate_all_total_effectsestimate_total_effectestimate_total_effect_parceestimate_total_effect_rcdestimate_var_total_effectestimate_varma_total_effectevaluate_model_fitgenerate_camuv_samplegenerate_lim_samplegenerate_lingam_hard_samplegenerate_lingam_large_samplegenerate_lingam_paradox_datagenerate_lingam_sample_10generate_lingam_sample_6generate_multi_group_samplegenerate_parce_samplegenerate_rcd_samplegenerate_resit_samplegenerate_varlingam_samplegenerate_varmalingam_sampleget_adjacency_matrix_summaryget_causal_direction_countsget_causal_order_stabilityget_directed_acyclic_graph_countsget_error_independence_p_valuesget_error_independence_p_values_parceget_error_independence_p_values_rcdget_group_resultget_pathsget_probabilitiesget_total_causal_effectsget_var_pathsget_var_probabilitiesget_varma_pathsget_varma_probabilitiesglancelingam_camuvlingam_directlingam_direct_bootstraplingam_high_dimlingam_limlingam_multi_grouplingam_multi_group_bootstraplingam_parcelingam_parce_bootstraplingam_rcdlingam_rcd_bootstraplingam_resitlingam_resit_bootstraplingam_varlingam_var_bootstraplingam_varmalingam_varma_bootstrapmake_prior_knowledgeplot_adjacencyplot_bootstrap_probabilitiesplot_residual_qqplot_varlingam_residual_qqplot_varmalingam_residual_qqsummary_lingamtest_residual_normalitytest_varlingam_residual_normalitytest_varlingam_residual_normality_alltest_varmalingam_residual_normalitytest_varmalingam_residual_normality_alltidy

Dependencies:generics

Causal Discovery with lingamr
The Idea: Why Non-Gaussianity Reveals Causal Direction | A Minimal Workflow | Estimate | Visualize | Intervene: Total Causal Effects | Check the Assumptions | Quantify Stability | Where to Go Next

Last update: 2026-07-31
Started: 2026-06-01

Choosing a Causal Discovery Method
Decision Guide | Method Overview | When LiNGAM Cannot Be Used | A Checklist to Verify in Advance

Last update: 2026-07-31
Started: 2026-07-31

lingamrによる因果探索
基本的な考え方:なぜ非ガウス性から因果の方向がわかるのか | 最小限のワークフロー | 推定 | 可視化 | 介入の効果:総因果効果 | 仮定の確認 | 安定性の定量化 | 次に読むべきもの

Last update: 2026-07-31
Started: 2026-07-30

因果探索手法の選び方
手法選択の決定ガイド | 手法一覧 | LiNGAMが使えない場合 | 事前に確認すべきチェックリスト

Last update: 2026-07-31
Started: 2026-07-31

Readme and manuals

Help Manual

Help pageTopics
Collapse an ImputationBootstrapResult into a BootstrapResultas_bootstrap_result
Plot the causal graph of a CAMUVResult with ggplot2autoplot.CAMUVResult
Plot the causal graph of a LiMResult with ggplot2autoplot.LiMResult
Plot the causal graph of a LingamResult with ggplot2autoplot.LingamResult
Plot one group of a MultiGroupLingamResult with ggplot2autoplot.MultiGroupLingamResult
Plot the causal graph of a ParceLingamResult with ggplot2autoplot.ParceLingamResult
Plot the causal graph of an RCDResult with ggplot2autoplot.RCDResult
Plot the causal graph of a ResitResult with ggplot2autoplot.ResitResult
Bootstrap with Multiple Imputation for Direct LiNGAMbootstrap_with_imputation
Check the stationarity of a fitted VAR-LiNGAM modelcheck_var_stationarity
Check the stationarity and invertibility of a fitted VARMA-LiNGAM modelcheck_varma_stationarity
Estimate the total causal effects between all variables at onceestimate_all_total_effects
Estimate the total causal effect between two specified variablesestimate_total_effect
Estimate the total causal effect between two variables (ParceLiNGAM)estimate_total_effect_parce
Estimate the total causal effect between two variables (RCD)estimate_total_effect_rcd
Estimate a total causal effect in a VAR-LiNGAM modelestimate_var_total_effect
Estimate a total causal effect in a VARMA-LiNGAM modelestimate_varma_total_effect
Evaluate model fit of an estimated causal graphevaluate_model_fit
Generate sample data with unobserved variables (for CAM-UV)generate_camuv_sample
Generate sample data for LiM (3 mixed variables)generate_lim_sample
Generate a challenging sample data for Direct LiNGAMgenerate_lingam_hard_sample
Generate large-scale sample data to benchmark Direct LiNGAM scalabilitygenerate_lingam_large_sample
Generate Paradoxical Data Where DirectLiNGAM Strugglesgenerate_lingam_paradox_data
Generate 10-variable sample data for Direct LiNGAMgenerate_lingam_sample_10
Generate sample data for Direct LiNGAM (6 variables)generate_lingam_sample_6
Generate sample data for Multi-Group Direct LiNGAM (2 groups, 6 variables)generate_multi_group_sample
Generate sample data with a latent confounder (for BottomUpParceLiNGAM)generate_parce_sample
Generate sample data with a latent confounder (for RCD)generate_rcd_sample
Generate sample data from a nonlinear additive noise model (for RESIT)generate_resit_sample
Generate sample data from a VAR-LiNGAM modelgenerate_varlingam_sample
Generate sample data from a VARMA-LiNGAM modelgenerate_varmalingam_sample
Create an adjacency matrix of representative causal-effect values from bootstrap resultsget_adjacency_matrix_summary
Get counts, proportions, and causal effects of causal directionsget_causal_direction_counts
Evaluate the stability of the causal order from bootstrapget_causal_order_stability
Get DAG countsget_directed_acyclic_graph_counts
Compute p-values for the independence test of the errorsget_error_independence_p_values
Compute p-values for the independence of ParceLiNGAM residuals (HSIC-based)get_error_independence_p_values_parce
Compute p-values for the independence of RCD residuals (HSIC-based)get_error_independence_p_values_rcd
Extract a single group's result from a MultiGroupLingamResultget_group_result
Get all paths between two specified variables and their bootstrap probabilitiesget_paths
Get bootstrap probabilitiesget_probabilities
Get a list of total causal effectsget_total_causal_effects
Enumerate bootstrap paths between two variables in a VAR-LiNGAM modelget_var_paths
Bootstrap probabilities for a VAR-LiNGAM modelget_var_probabilities
Enumerate bootstrap paths between two variables in a VARMA-LiNGAM modelget_varma_paths
Bootstrap probabilities for a VARMA-LiNGAM modelget_varma_probabilities
Get a one-row summary of a CAMUVResultglance.CAMUVResult
Get a one-row summary of a LiMResultglance.LiMResult
Get a one-row summary of a LingamResultglance.LingamResult
Get a one-row summary of a MultiGroupLingamResultglance.MultiGroupLingamResult
Get a one-row summary of a ParceLingamResultglance.ParceLingamResult
Get a one-row summary of an RCDResultglance.RCDResult
Get a one-row summary of a ResitResultglance.ResitResult
CAM-UV (Causal Additive Models with Unobserved Variables)lingam_camuv
Direct LiNGAMlingam_direct
Bootstrap for Direct LiNGAMlingam_direct_bootstrap
High-Dimensional Direct LiNGAMlingam_high_dim
LiM: LiNGAM for Mixed Datalingam_lim
Multi-Group Direct LiNGAMlingam_multi_group
Bootstrap for Multi-Group Direct LiNGAMlingam_multi_group_bootstrap
Bottom-Up ParceLiNGAMlingam_parce
Bootstrap for Bottom-Up ParceLiNGAMlingam_parce_bootstrap
RCD (Repetitive Causal Discovery)lingam_rcd
Bootstrap for RCDlingam_rcd_bootstrap
RESIT causal discovery for nonlinear additive noise modelslingam_resit
Bootstrap for RESITlingam_resit_bootstrap
VAR-LiNGAM for time series causal discoverylingam_var
Bootstrap for VAR-LiNGAMlingam_var_bootstrap
VARMA-LiNGAM for time series causal discoverylingam_varma
Bootstrap for VARMA-LiNGAMlingam_varma_bootstrap
Create a prior knowledge matrixmake_prior_knowledge
Plot a causal graph from an adjacency matrix with DiagrammeRplot_adjacency
Draw bootstrap probabilities with DiagrammeRplot_bootstrap_probabilities
plot QQplot_residual_qq
Q-Q plots of VAR-LiNGAM residualsplot_varlingam_residual_qq
Q-Q plots of VARMA-LiNGAM residualsplot_varmalingam_residual_qq
Display the contents of a BootstrapResultprint.BootstrapResult
Print method for CAMUVResultprint.CAMUVResult
print method for causal_order_stabilityprint.causal_order_stability
Print method for ImputationBootstrapResultprint.ImputationBootstrapResult
Print method for LiMResultprint.LiMResult
Print method for lingam_normality_testprint.lingam_normality_test
print method for lingam_summaryprint.lingam_summary
Print method for LingamResultprint.LingamResult
Print method for MultiGroupBootstrapResultprint.MultiGroupBootstrapResult
Print method for MultiGroupLingamResultprint.MultiGroupLingamResult
Print method for ParceLingamResultprint.ParceLingamResult
Print method for RCDResultprint.RCDResult
Print method for ResitResultprint.ResitResult
Print method for var_stationarityprint.var_stationarity
Print a VARBootstrapResultprint.VARBootstrapResult
Print method for VARLiNGAMResultprint.VARLiNGAMResult
Print method for varma_stationarityprint.varma_stationarity
Print a VARMABootstrapResultprint.VARMABootstrapResult
Print method for VARMALiNGAMResultprint.VARMALiNGAMResult
Summarize the goodness-of-fit of a Direct LiNGAM model at oncesummary_lingam
Test normality of residuals from Direct LiNGAMtest_residual_normality
Test the non-Gaussianity of VAR-LiNGAM residualstest_varlingam_residual_normality
Run several normality tests on VAR-LiNGAM residuals at oncetest_varlingam_residual_normality_all
Test the non-Gaussianity of VARMA-LiNGAM residualstest_varmalingam_residual_normality
Run several normality tests on VARMA-LiNGAM residuals at oncetest_varmalingam_residual_normality_all
Convert a BootstrapResult to a tidy data.frametidy.BootstrapResult
Convert a CAMUVResult to a tidy data.frametidy.CAMUVResult
Convert an ImputationBootstrapResult to a tidy data.frametidy.ImputationBootstrapResult
Convert a LiMResult to a tidy data.frametidy.LiMResult
Convert a LingamResult to a tidy data.frametidy.LingamResult
Convert a MultiGroupBootstrapResult to a tidy data.frametidy.MultiGroupBootstrapResult
Convert a MultiGroupLingamResult to a tidy data.frametidy.MultiGroupLingamResult
Convert a ParceLingamResult to a tidy data.frametidy.ParceLingamResult
Convert an RCDResult to a tidy data.frametidy.RCDResult
Convert a ResitResult to a tidy data.frametidy.ResitResult