Package: sltree 0.1.1
sltree: Structure Learning for Semiparametric/Latent Tree Models
Learns the structure of Gaussian latent tree models (LTMs), discrete LTMs, parametric mixed LTMs, and semiparametric tree models using information distances and a bottom-up tree reconstruction algorithm. Gaussian models and parametric mixed models with binary and conditionally Gaussian variables use Pearson-correlation-based distances. Discrete models use determinant-based distances and require the same number of observed states across variables. Semiparametric models accommodate continuous, binary, and ordinal variables, with latent correlations estimated under a Gaussian copula model using Kendall's tau and bridge functions. Utilities are provided for data simulation, tree visualization and export, and topology comparison using the Robinson-Foulds distance. The semiparametric framework allowing observed internal nodes is described in Zhou et al. (2026) <doi:10.1016/j.artint.2026.104499>. Earlier structure-learning methods assuming that all observed variables are leaf nodes are described for discrete models in Wang et al. (2017) <doi:10.4310/SII.2017.v10.n4.a11> and for parametric mixed models in Zhou et al. (2020) <https://jmlr.org/papers/v21/20-365.html>.
Authors:
sltree_0.1.1.tar.gz
sltree_0.1.1.zip(r-4.7-x86_64)sltree_0.1.1.zip(r-4.7-arm64)sltree_0.1.1.zip(r-4.6-x86_64)sltree_0.1.1.zip(r-4.6-arm64)
sltree_0.1.1.tar.gz(r-4.7-arm64)sltree_0.1.1.tar.gz(r-4.7-x86_64)sltree_0.1.1.tar.gz(r-4.6-arm64)sltree_0.1.1.tar.gz(r-4.6-x86_64)
sltree_0.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
sltree/json (API)
| # Install 'sltree' in R: |
| install.packages('sltree', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated from:ced89e2d74. Checks:10 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 127 | ||
| linux-devel-x86_64 | OK | 159 | ||
| source / vignettes | OK | 216 | ||
| linux-release-arm64 | OK | 133 | ||
| linux-release-x86_64 | OK | 155 | ||
| windows-devel-arm64 | OK | 379 | ||
| windows-devel-x86_64 | OK | 188 | ||
| windows-release-arm64 | OK | 388 | ||
| windows-release-x86_64 | OK | 107 | ||
| wasm-release | OK | 130 |
Exports:edges_from_ltreegenerate_latent_treeinfer_variable_typesinformation_distanceis_ltreelatent_correlationlatent_tree_modelslearn_sltreeltree_from_edgerobinson_foulds_distancesave_ltreesimulate_ltree_dataslsvertices_from_ltreeview_ltree
Dependencies:clicpp11glueigraphlatticelifecyclemagrittrMatrixmvtnormpcaPPpkgconfigRcpprlangvctrs
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Extract Edges and Vertices from a Latent Tree | edges_from_ltree vertices_from_ltree |
| Randomly generate a mixed latent tree structure | generate_latent_tree |
| Infer Variable Types in a Dataset | infer_variable_types |
| Computing information distance. | information_distance |
| Is this object an ltree latent tree? | is_ltree |
| Latent correlation matrix for mixed data | latent_correlation |
| Preset latent tree models | latent_tree_models |
| Learn a latent tree under one of four statistical models | learn_sltree |
| Create a Latent Tree Object from Edge Set | ltree_from_edge |
| Plot a latent tree | plot.ltree |
| Print a latent tree | print.ltree |
| Compute Robinson-Foulds (rf) Distance Between Two Latent Trees | robinson_foulds_distance |
| Save a latent tree to HTML, EPS and/or PNG | save_ltree |
| Generate mixed observed data from a given latent tree | simulate_ltree_data |
| Structure learning for semi-parametric latent trees | sls |
| View a latent tree | view_ltree |
