Package: oda 0.1.2

oda: Pure-R Core Engine for Optimal Data Analysis (ODA / MultiODA)

Pure-R implementation of univariate binary-class ODA (UniODA), univariate multiclass ODA (MultiODA), and binary Classification Tree Analysis (CTA). Supports ordered and categorical attributes, priors-on inverse-frequency weighting, MAXSENS / SAMPLEREP / first-identified tie-breaking, true leave-one-out cross-validation, and Monte Carlo Fisher-randomization p-values. Covered UniODA, MultiODA, and binary CTA fixtures are tested for parity against MegaODA.exe and CTA.exe outputs.

Authors:Nathaniel Rhodes [aut, cre], Paul Yarnold [ctb, cph]

oda_0.1.2.tar.gz
oda_0.1.2.zip(r-4.7)oda_0.1.2.zip(r-4.6)oda_0.1.2.zip(r-4.5)
oda_0.1.2.tgz(r-4.6-any)oda_0.1.2.tgz(r-4.5-any)
oda_0.1.2.tar.gz(r-4.7-any)oda_0.1.2.tar.gz(r-4.6-any)
oda_0.1.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
oda/json (API)
NEWS

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

Bug tracker:https://github.com/njrhodes/oda_r/issues

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

Datasets:
  • cta_demo - CTA demonstration dataset
  • myeloma - Myeloma gene-expression dataset

On CRAN:

Conda:

5.82 score 1 stars 33 scripts 78 exports 0 dependencies

Last updated from:eb157921a0. Checks:7 NOTE, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64NOTE233
source / vignettesOK191
linux-release-x86_64NOTE227
macos-release-arm64NOTE196
macos-oldrel-arm64NOTE314
windows-develNOTE228
windows-releaseNOTE200
windows-oldrelNOTE215
wasm-releaseOK95

Exports:as_confusion_matrixas_cta_candidatesas_sda_anchorauto_sda_plancta_assign_endpointscta_balance_effect_summarycta_balance_plot_datacta_balance_tablecta_confusion_matrixcta_confusion_tablecta_d_statcta_descendant_familycta_endpoint_countscta_endpoint_denominatorscta_endpoint_summarycta_endpoint_tablecta_family_tablecta_fitcta_min_terminal_denomcta_node_tablecta_observation_weightscta_ort_node_tablecta_plot_datacta_propensity_weightscta_staging_tablecta_stratalort_fitlort_index_pathlort_local_treelort_path_tablelort_propensity_weightsnovo_boot_cioda_balance_effect_tableoda_balance_plot_dataoda_balance_tableoda_clean_missing_codesoda_confusionoda_confusion_binaryoda_confusion_multiclassoda_cta_fitoda_d_statoda_ess_from_meanoda_ess_from_meanpacoda_fitoda_infer_attr_typesoda_mean_pacoda_metricsoda_multiclass_unioda_coreoda_poweroda_predictionsoda_propensity_weightsoda_readiness_checkoda_rule_predictoda_rule_predict_multiclassoda_sample_sizeoda_univariate_coreoda_validate_groupoda_validate_weightsort_plot_dataplot_balance_loveplot_cta_balanceplot_cta_balance_effectsplot_cta_familyplot_cta_treeplot_lort_pathplot_lort_treeplot_oda_balanceplot_oda_balance_effectsplot_smd_balancepropensity_ess_balancesda_anchorsda_candidate_tablesda_fitsda_selected_attributessda_step_tablesda_to_cta_datasmd_balance_tablevalidate_sda_anchor

Dependencies:

Binary ODA: Gully Erosion Adjustment and Motivation

Rendered fromgully-adjustment-oda.Rmdusingknitr::rmarkdownon Jun 18 2026.

Last update: 2026-06-08
Started: 2026-05-16

Binary ODA: Migraine Attacks in a Clinical Trial

Rendered frommigraine-attacks-oda.Rmdusingknitr::rmarkdownon Jun 18 2026.

Last update: 2026-06-08
Started: 2026-05-16

Binary ODA: Voting on the Refugee Act of 1980

Rendered fromrefugee-act-oda.Rmdusingknitr::rmarkdownon Jun 18 2026.

Last update: 2026-06-04
Started: 2026-05-16

Getting started with oda

Rendered fromoda.Rmdusingknitr::rmarkdownon Jun 18 2026.

Last update: 2026-06-09
Started: 2026-06-04

Multiclass ODA: Convergent Validity of Protein Classification Methods

Rendered fromprotein-type-multiclass-oda.Rmdusingknitr::rmarkdownon Jun 18 2026.

Last update: 2026-06-09
Started: 2026-05-16

Readme and manuals

Help Manual

Help pageTopics
Build parent map and endpoint-index map for LORT nodes (internal helper used by lort_index_path and lort_path_table).lort_parent_maps
Convert a tidy confusion data frame to a 2x2 integer matrixas_confusion_matrix
Subset a data frame to the SDA-selected candidate columnsas_cta_candidates
Convert an object to an 'sda_anchor'as_sda_anchor as_sda_anchor.data.frame as_sda_anchor.sda_fit
Dry-run planning and validation layer for SDAauto_sda_plan
Assign observations to CTA terminal endpointscta_assign_endpoints
CTA covariate balance evidence-interval summarycta_balance_effect_summary
Renderer-ready plot data for CTA covariate balancecta_balance_plot_data
Multivariate CTA covariate balance diagnosticscta_balance_table
Extract training confusion matrix from a fitted CTA treecta_confusion_matrix
Final selected tree training confusion tablecta_confusion_table
D statistic for a fitted CTA treecta_d_stat
CTA demonstration datasetcta_demo
MDSA descendant family for CTActa_descendant_family
Per-endpoint class count table for a fitted CTA treecta_endpoint_counts
Terminal endpoint denominators of a CTA treecta_endpoint_denominators
Endpoint reporting summary for a fitted CTA treecta_endpoint_summary
Canonical terminal endpoint map for a fitted CTA treecta_endpoint_table
Tidy table of a CTA descendant familycta_family_table
Fit a Classification Tree Analysis (CTA) model (public wrapper)cta_fit
Minimum terminal endpoint denominator of a CTA treecta_min_terminal_denom
Canonical CTA node report tablecta_node_table
Assign per-observation CTA propensity weightscta_observation_weights
Node-level summary table for a fitted LORT (legacy name: cta_ort)cta_ort_node_table
Extract layout data for plotting a CTA treecta_plot_data
Endpoint-level propensity-score weights for a fitted CTA treecta_propensity_weights
Staging table for a fitted CTA treecta_staging_table
Number of terminal leaf endpoints in a CTA treecta_strata
Fit a Locally Optimal Recursive Tree (LORT)lort_fit
LORT path from root to a given node indexlort_index_path
Extract the local CTA model embedded at a LORT nodelort_local_tree
Formatted path table for a LORT recursion pathlort_path_table
LORT terminal strata propensity weightslort_propensity_weights
Myeloma gene-expression dataset (CTA benchmark)myeloma
Novometric bootstrap CI from a fixed 2x2 confusion matrixnovo_boot_ci novo_boot_ci.cta_ort novo_boot_ci.cta_tree novo_boot_ci.default novo_boot_ci.oda_fit print.novo_boot_ci
ODA covariate balance evidence-interval tableoda_balance_effect_table
Renderer-ready plot data for univariate ODA covariate balanceoda_balance_plot_data
Univariate ODA covariate balance diagnosticsoda_balance_table
Select the best K-segment ordered partition by MegaODA spec: PRIMARY -> SECONDARY -> FIRST IDENTIFIED (enum order via tick()).oda_best_ordered_multiclass_partition
Replace missing-code values with NAoda_clean_missing_codes
Retrieve a confusion matrix from a fitted ODA modeloda_confusion
Binary confusion tableoda_confusion_binary
Multiclass confusion matrixoda_confusion_multiclass
Fit a Classification Tree Analysis (CTA) model (internal engine)oda_cta_fit
Compute the D statistic for a fitted ODA modeloda_d_stat
ESS from mean metric for a C-class problemoda_ess_from_mean
Effect Strength for Sensitivity from mean PACoda_ess_from_meanpac
Fit an ODA modeloda_fit
Infer attribute types from a predictor data frameoda_infer_attr_types
Leave-one-out cross-validation for ordered multiclass ODA.oda_loo_multiclass_ordered
Monte Carlo Fisher-randomization p-value with Clopper-Pearson early stopping.oda_mc_p_value
Mean PAC from sensitivity and specificityoda_mean_pac
Retrieve scalar performance metrics from a fitted ODA modeloda_metrics
Fit a univariate multiclass ODA modeloda_multiclass_unioda_core
ODA power analysis via simulationoda_power
Retrieve predictions from a fitted ODA modeloda_predictions
ODA rule strata propensity weightsoda_propensity_weights
Preflight readiness check for ODA / CTA analysisoda_readiness_check
Apply a binary ODA rule to new dataoda_rule_predict
Apply a multiclass ODA rule to new dataoda_rule_predict_multiclass
ODA minimum sample size via bisectionoda_sample_size
Fit a univariate binary-class ODA modeloda_univariate_core
Validate a class / group variableoda_validate_group
Validate a case weight vectoroda_validate_weights
Renderer-independent layout data for a LORT composite treeort_plot_data
Love plot for covariate balance (SMD)plot_balance_love
Plot CTA multivariate covariate balanceplot_cta_balance
Evidence card for CTA multivariate covariate balanceplot_cta_balance_effects
Plot a CTA descendant family member using ggplot2plot_cta_family
Plot a CTA tree using ggplot2plot_cta_tree
Plot the full local CTA models along a LORT recursion pathplot_lort_path
Plot a LORT (Locally Optimal Recursive Tree) using ggplot2plot_lort_tree
Plot ODA covariate balanceplot_oda_balance
Forest plot of ODA covariate balance evidence intervalsplot_oda_balance_effects
Plot SMD covariate balanceplot_smd_balance
Plot method for Locally Optimal Recursive Tree (LORT)plot.cta_ort
Plot a fitted CTA treeplot.cta_tree
Predict method for Locally Optimal Recursive Tree (LORT)predict.cta_ort
Classify new observations using a CTA treepredict.cta_tree
Predict class labels from a fitted ODA modelpredict.oda_fit
Predict from an SDA procedure resultpredict.sda_fit
Print an auto_sda_plan objectprint.auto_sda_plan
Print a CTA descendant familyprint.cta_family
Print a CTA family summaryprint.cta_family_summary
Print method for Locally Optimal Recursive Tree (LORT)print.cta_ort
Print method for cta_ort_summaryprint.cta_ort_summary
Print a CTA tree in MegaODA node table formatprint.cta_tree
Print a CTA tree summaryprint.cta_tree_summary
Print a fitted ODA modelprint.oda_fit
Print an ODA fit summaryprint.oda_fit_summary
Print an 'sda_anchor'print.sda_anchor
Print an sda_fit objectprint.sda_fit
Print an sda_fit_summary objectprint.sda_fit_summary
Propensity-weighted ESS balance diagnosticpropensity_ess_balance
Construct an 'sda_anchor' objectsda_anchor
Return the candidate table from one or all SDA stepssda_candidate_table
Run a Structural Decomposition Analysis (SDA) proceduresda_fit
Return the selected attribute names from an SDA procedure resultsda_selected_attributes
Return a summary table of SDA stepssda_step_table
Prepare X and y for CTA using SDA-selected attributessda_to_cta_data
Conventional SMD companion table for covariate balancesmd_balance_table
Summarise a CTA descendant familysummary.cta_family
Summary method for Locally Optimal Recursive Tree (LORT)summary.cta_ort
Summarize a fitted CTA treesummary.cta_tree
Summarize a fitted ODA modelsummary.oda_fit
Summarise an 'sda_anchor'summary.sda_anchor
Summarise an sda_fit objectsummary.sda_fit
Validate an 'sda_anchor' objectvalidate_sda_anchor