Skip to contents

Package overview

rmorie rmorie-package
morie: Multi-Domain Open Research and Inferential Estimation

All exported functions

ARSAU_KINDS()
Known ARSAU dataset kinds.
ARSAU_REGISTRY()
Return the ARSAU registry as a list of entries.
ARSAU_YEARS()
Known ARSAU year/range keys.
CCRSO_TABLE1_RELEASES
CCRSO Table 1 — 5-year average annual conditional releases
CCRSO_TABLE2_FLOW
CCRSO Table 2 — prisoner flow 2013/14-2017/18
CCRSO_TABLE3_AGE
CCRSO/StatsCan Table 3 — 2018 age distribution
MORIE_FAIRNESS_CANONICAL_FIELDS
The five canonical per-area fields the audit consumes.
MORIE_SIUIAP_AFFIDAVITS
Federal Court affidavits / expert evidence indexed by morie.
MORIE_SIUIAP_CRIMSL_REPORTS
CRIMSL UToronto Sprott / Doob / Iftene research reports (2020-2021).
MORIE_SIUIAP_ORIGINAL_PANEL_2019_2020
Earlier (Doob-chaired) panel, established 2019, dissolved mid-2020.
MORIE_SIUIAP_PANEL_MANDATE
SIU IAP panel mandate (long-form prose).
MORIE_SIUIAP_PANEL_MEMBERS
SIU IAP panel members (2021-2024 panel, Sapers-chaired).
MORIE_SIUIAP_REPORTS
SIU IAP panel reports (Public Safety Canada, 2022-2024).
MORIE_SIUIAP_URL
SIU IAP – Public Safety Canada landing page URL.
MORIE_TPS_CSI_CATEGORIES()
Canonical CSI category names (the 9 TPS open-data feeds).
MORIE_TPS_REGISTRY
Registry of TPS open-data categories.
MORIE_TPS_SUPPORTED_FORMATS
Format names that morie_tps_load() knows how to dispatch.
MORIE_TPS_TORONTO_POPULATION_BY_YEAR()
Toronto reference population by fiscal year (StatsCan 17-10-0009-01).
MORIE_TPS_TOTAL_CSI_WEIGHTS()
Total-CSI weights for the 9 TPS open-data categories.
MORIE_TPS_VIOLENT_CSI_WEIGHTS()
Violent-CSI weights for the 9 TPS open-data categories.
SemiparKernels()
Object-style wrapper for the semiparametric kernel toolkit
adjust_p_values()
Convenience dispatcher for p-value adjustment methods
all_stat_command_names()
Sorted vector of all command names + aliases
analyze_doob_full_affidavit()
Replicate Doob's full Federal Court affidavit (Tables 1-3)
analyze_doob_table1_releases()
Analyse Doob Affidavit Table 1 — 5-year average annual releases
analyze_doob_table2_flow()
Analyse Doob Affidavit Table 2 — prisoner flow
analyze_doob_table3_age_overrepresentation()
Analyse Doob Affidavit Table 3 — age over-/under-representation
anova_table()
ANOVA table from a fitted model
arsau
ARSAU dataset loaders + registry (R-side mirror of morie.arsau_datasets)
arsau_analyze
Per-record-type ARSAU analysis pipelines (R-side mirror of morie.arsau_analyze).
arsau_datasets
ARSAU CKAN sidecar helpers + tidy registry view (R-side companion to morie.arsau_datasets).
assess_calibration()
Comprehensive calibration assessment for binary outcomes
assess_discrimination()
Discrimination assessment for binary classifier
audit_variables
Comprehensive per-variable audit walker (R-side mirror)
auto_test()
Automatic test selection
bartlett_test()
Bartlett's test for equality of variances
benjamini_hochberg() bh()
Benjamini-Hochberg FDR control
benjamini_yekutieli() by_fdr()
Benjamini-Yekutieli FDR control under arbitrary dependence
bias_adjusted_estimate()
Bias-adjusted treatment effect (Ding & VanderWeele 2016)
block_bootstrap()
Block bootstrap for dependent / time-series data
bonferroni()
Bonferroni FWER correction
bootstrap()
Nonparametric bootstrap inference
bootstrap_632()
.632 and .632+ bootstrap estimators for prediction error
bootstrap_effect_size_ci()
Generic bootstrap CI wrapper for any effect-size function
bootstrap_validate()
Bootstrap .632 / .632+ validation
buttbp()
Butterworth bandpass filter
buttbs()
Butterworth bandstop (notch) filter
butthp()
Butterworth highpass filter
buttlp()
Butterworth lowpass filter
cauchy_combination()
Cauchy combination test (Liu and Xie 2020)
cepst()
Real cepstrum
cheatsheet()
Print the morie cheat sheet
check_referential_integrity()
Check referential integrity (child FK -> parent PK)
chi2_goodness_of_fit()
Chi-squared goodness-of-fit test
chi2_independence()
Chi-squared test of independence
ckan_metadata
CKAN Metadata for Open Data APIs
cles()
Common Language Effect Size (probability of superiority)
cliffs_delta()
Cliff's delta
cochrans_q()
Cochran's Q test
coef(<crr>)
S3 coef method for cmprsk::crr objects.
coefficient_of_variation()
Coefficient of variation
cohens_f()
Cohen's f from eta-squared
cohens_kappa()
Cohen's kappa for two raters
cohens_w()
Cohen's w for chi-squared
collinearity_diagnostics()
Comprehensive multicollinearity diagnostics
column_rule()
Construct a column rule
commands_by_category()
Commands grouped by category
compute_goodness_of_fit()
Comprehensive goodness-of-fit statistics
compute_influence()
Compute leverage and influence diagnostics
compute_residuals()
Compute residual diagnostics
compute_vif()
Variance Inflation Factors
correlation_matrix()
Pairwise correlation matrix with p-values
correlation_table()
Pairwise correlation matrix with significance stars
create_reproducibility_manifest()
Create a manifest of the environment for reproducibility
cross_validate()
Cross-validate a model using a user-supplied fit/predict pair
d_to_nnt()
Convert Cohen's d to NNT given a control event rate
d_to_or()
Convert Cohen's d to odds ratio
d_to_r()
Convert Cohen's d to Pearson r
dagostino_pearson()
D'Agostino-Pearson omnibus normality test
dataset_catalog
MORIE Dataset Catalog
decision_curve_analysis()
Decision curve analysis
decoupling_test()
Doob decoupling test
delete_d_jackknife()
Delete-d (generalised) jackknife
detect_overfitting()
Bootstrap optimism-corrected performance
dfa()
Detrended fluctuation analysis (DFA)
doob_trends
Doob Federal Court Affidavit — national-aggregate trend analyses
e_value()
E-value for unmeasured confounding (continuous-ATE scale)
e_value_d()
E-value for a standardised mean difference (Cohen's d)
e_value_hr()
E-value for a hazard ratio
e_value_or()
E-value for an odds ratio
e_value_rr()
E-value for a risk ratio
ecgdet()
Pan-Tompkins QRS / R-peak detector
effect_size_result()
Build an effect-size result
effect_sizes
Comprehensive effect-size calculations
effects
Treatment effect estimators and marginal-effects extenders
epsilon_squared()
Epsilon-squared (Kelley, 1935)
estimate_ate()
IPW-weighted OLS ATE
estimate_ate_gcomputation()
G-computation ATE with bootstrap SE
estimate_pi0()
Estimate the proportion of true null hypotheses (pi0)
estimate_pliv()
Partially Linear IV (PLIV) / Local Average Treatment Effect
estimate_plr()
Partially Linear Regression (PLR) ATE
explain_file()
Human-readable description of a morie output CSV
explain_known_files()
Names of all morie output CSVs with registered explanations
extenders_nonparam
FDR / nonparametric / quantile / latent-class extenders (Phase 1.n)
extenders_rdd
RDD / IRT extenders (Phase 1.l)
extenders_spatial
Spatial / multivariate / meta-analysis extenders (Phase 1.m)
extenders_stats
Stats extenders (Phase 1.k)
external_validate()
External validation on new data
fairness_cityprofile
City-agnostic data profiles for the predictive-policing audit
fairness_metrics
Group-disparity metrics for auditing classification systems
fairness_temporal
Multi-city temporal disparity audit
fallback_procedure()
Fallback (fixed-sequence with alpha spending)
fisher_combined()
Fisher's method for combining independent p-values
fisher_exact_test()
Fisher's exact test for a 2x2 table
fixed_effects_meta()
Fixed-effects (inverse-variance) meta-analytic pooling
fixed_sequence()
Fixed-sequence (predetermined order) testing
format_dataframe()
Apply uniform formatting to numeric columns
format_number()
Format a single number according to style conventions
friedman_test()
Friedman test (repeated-measures rank ANOVA)
frns_metrics
Group-disparity metrics for auditing classification and risk systems
frns_predpol
Generalised predictive-policing disparity audit
frns_temporal
Multi-city temporal disparity audit
full_diagnostics()
Full diagnostic report
gam_smoother()
Thin-plate spline smoother via mgcv::gam
glass_delta()
Glass's delta — control-group SD denominator
harmonic_mean_p()
Harmonic mean p-value
hazard_ratio_table()
Hazard-ratio table from Cox model components
hcepst()
Complex cepstrum with phase unwrapping
hdecon()
Homomorphic deconvolution via cepstral liftering
hfd()
Higuchi fractal dimension
hierarchical_bonferroni()
Hierarchical (serial gatekeeping) Bonferroni procedure
hochberg()
Hochberg step-up FWER procedure
holm()
Holm step-down FWER procedure
holm_sidak()
Holm-Sidak step-down procedure
hommel()
Hommel FWER procedure
hosmer_lemeshow_test()
Hosmer-Lemeshow goodness-of-fit test for logistic regression
hrvfd()
HRV frequency-domain metrics (VLF, LF, HF, LF/HF)
hrvnl()
HRV nonlinear metrics (Poincare SD1, SD2)
hrvtd()
HRV time-domain metrics (SDNN, RMSSD, pNN50)
i_squared()
I^2 heterogeneity statistic (Higgins)
incidence_rate_difference()
Incidence rate difference (IRD)
intraclass_correlation()
Intraclass correlation coefficient (Shrout & Fleiss 1979)
jackknife()
Delete-one (leave-one-out) jackknife
kde()
Kernel density estimation
kendall_correlation()
Kendall's tau-b correlation
KERNEL_GAUSSIAN KERNEL_EPANECHNIKOV KERNEL_UNIFORM KERNEL_TRIANGULAR KERNEL_BIWEIGHT
Kernel type integer codes
kernel_cond_moments()
Kernel-weighted conditional mean and variance
kernel_eval()
Evaluate a kernel function at point u
kfd()
Katz fractal dimension
ks_test_one_sample()
One-sample Kolmogorov-Smirnov test
ks_test_two_sample()
Two-sample Kolmogorov-Smirnov test
leave_one_out_cv()
Leave-one-out cross-validation
levene_test()
Levene's test for equality of variances
license_check
Runtime license-compatibility guard for morie
likelihood_ratio_test()
Likelihood ratio test for nested models
lilliefors_test()
Lilliefors test for normality
link_test()
Pregibon link test
local_fdr()
Local false discovery rate via empirical-Bayes two-component mixture
local_linear()
Local linear kernel regression
longitudinal_sim
Synchronised longitudinal-panel simulation (R parity)
loocv_bandwidth()
Leave-one-out cross-validation bandwidth for NW regression
mann_whitney_u()
Mann-Whitney U / Wilcoxon rank-sum test
manski_bounds()
Manski worst-case bounds for the ATE
mcnemar_test()
McNemar's test (paired nominal data)
midranks()
Midrank vector with tie summary (Gibbons Ch 5.6.2)
model_comparison_table()
Compare multiple model fits on AIC, BIC, log-likelihood and (optional) LR tests
morie_anominate_ideal_points()
Alpha-NOMINATE ideal-point estimation via anominate
morie_anova_one_way()
One-way ANOVA
morie_arch_in_mean()
ARCH(1)-in-mean model
morie_arsau_analyze_aggregate_summary()
Analysis of the ARSAU aggregate-summary-by-year file (2020-2022).
morie_arsau_analyze_detailed_dataset()
Wide-format analysis of the 2020-2022 detailed-incident dataset.
morie_arsau_analyze_individual_records()
End-to-end analysis of the ARSAU individual_records CSV for one year.
morie_arsau_analyze_main_records()
End-to-end analysis of the ARSAU main_records CSV for one year.
morie_arsau_analyze_probe_cycle_records()
Analysis of ARSAU probe_cycle_records (CEW telemetry).
morie_arsau_analyze_weapon_records()
Analysis of ARSAU weapon_records.
morie_arsau_available_datasets()
List ARSAU dataset kinds, optionally restricted to one year.
morie_arsau_available_years()
List ARSAU year / year-range buckets.
morie_arsau_ckan_url()
Build the upstream CKAN datastore_search URL for a registry entry.
morie_arsau_describe()
Describe a single ARSAU dataset entry.
morie_arsau_download()
Bulk-download every ARSAU CSV + sidecar from the upstream Catalogue.
morie_arsau_fetch_sidecar()
Fetch the CKAN sidecar JSON for a registry entry.
morie_arsau_load_aggregate_summary()
Load ARSAU aggregate-summary-by-year CSV (2020-2022 only).
morie_arsau_load_detailed_dataset()
Load ARSAU detailed-incident-level CSV (2020-2022 only).
morie_arsau_load_individual_records()
Load ARSAU individual_records CSV.
morie_arsau_load_main_records()
Load ARSAU main_records CSV for the given year.
morie_arsau_load_probe_cycle_records()
Load ARSAU probe_cycle_records CSV (CEW telemetry).
morie_arsau_load_weapon_records()
Load ARSAU weapon_records CSV.
morie_arsau_read_markdown_dictionary()
Read an Ontario-Catalogue Markdown data-dictionary sidecar.
morie_arsau_read_sidecar()
Read a CKAN datastore_search JSON sidecar.
morie_arsau_read_xlsx_dictionary()
Read an Ontario-Catalogue XLSX data-dictionary sidecar.
morie_arsau_registry_df()
ARSAU registry rendered as a tidy data.frame.
morie_arsau_sidecar_schema()
Extract a simplified [name, type, notes] schema from a parsed CKAN sidecar.
morie_arsau_sidecar_to_frame()
Convert a CKAN sidecar's records array-of-arrays into a data.frame.
morie_audit_all_variables()
Audit both OTIS and ARSAU.
morie_audit_arsau_variables()
Audit every ARSAU variable.
morie_audit_otis_variables()
Audit every OTIS variable.
morie_audit_public_outputs()
Audit declared outputs against files on disk
morie_bayes_cpi_genomic()
BayesC-pi spike-and-slab variable selection (short Gibbs)
morie_bayes_ridge_gibbs()
BayesA via short Gibbs sampler (Meuwissen-Hayes-Goddard 2001)
morie_bayesian_lasso_full()
Bayesian LASSO (Park & Casella 2008 short Gibbs)
morie_bayesian_ridge_regression()
Bayesian ridge regression (RR-BLUP closed form)
morie_boot_basic_ci()
Direct bridge to boot::boot.ci
morie_boot_run()
Direct bridge to boot::boot
morie_bootstrap_sample()
Bootstrap resampling for any statistic
morie_bricklayer()
Assemble the rest of the morie family from R
morie_build_outputs_manifest()
Build an outputs manifest from a directory of artifacts
morie_builtin_db()
Get path to the built-in MORIE datasets database
morie_cache_clear()
Clear morie's persistent cache directory
morie_cache_dir()
morie cache contract
morie_cache_file()
Cache local RDS/CSV data into the SQLite database
morie_cache_list()
List all tables in the MORIE cache
morie_cache_load()
Load a table from the MORIE cache
morie_cache_store()
Store a data frame in the MORIE cache
morie_calculate_ebac()
Calculate estimated Blood Alcohol Concentration (eBAC)
morie_calculate_ipw_weights()
Calculate inverse probability of treatment weights (IPTW)
morie_calibration_weights()
Calibration weights via iterative proportional fitting (raking)
morie_canonicalize_cpads_data()
Canonicalize raw CPADS PUMF columns
morie_causal_impact()
Bayesian structural time-series intervention analysis
morie_causal_robust_se()
Robust / heteroskedasticity-consistent variance for a fitted model
morie_causal_weighting()
Estimate balancing weights via WeightIt
morie_check_plugin_license()
Check whether a downstream package's SPDX is GPL-compatible
morie_chi_square_test()
Chi-square test of independence or goodness-of-fit
morie_ckan_search()
Search any CKAN open-data portal for datasets
morie_classify_variable()
Classify one variable.
morie_cli_dump_catalog()
Emit a unified catalog CSV for the rmorie-cli binary
morie_cluster_sample()
Two-stage cluster sampling
morie_cnn_genomic()
CNN genomic predictor (Conv1D + GAP + dense, base R)
morie_cohens_d()
Cohen's d effect size
morie_coherence()
Magnitude-squared morie_coherence between two time series
morie_coin_independence()
General independence test via coin
morie_coin_oneway()
Permutation one-way ANOVA via coin
morie_coin_wilcoxon()
Permutation Wilcoxon test via coin
morie_compare_nested_logistic_models()
Compare nested logistic-regression models via likelihood-ratio test
morie_compute_design_weights()
Compute inverse-probability design weights
morie_concordance_incomplete()
Kendall's coefficient of concordance W (Gibbons Ch 12.5)
morie_confusion_matrix_metrics()
Confusion matrix with precision / recall / F1 (R parity)
morie_contingency_coefficient()
Pearson contingency coefficient C (Gibbons Ch 14.2.1)
morie_control_comparison()
Nonparametric many-to-one comparisons to a control (Gibbons Ch 10.7)
morie_control_median_test()
Mood's median (control-median) test (Gibbons Ch 6.5)
morie_copula_fit()
Fit a copula by maximum-likelihood via copula
morie_copula_sample()
Draw a random sample from a copula via copula
morie_corrections_uof_resource_ids()
Canonical CKAN resource id table for the Corrections UoF dataset.
morie_cpads_canonicalize_frame()
Canonicalize raw CPADS PUMF columns into morie's analysis schema.
morie_cpads_contract()
Return the CPADS analysis-frame contract.
morie_cpads_has_raw_columns()
Detect whether a data frame looks like raw CPADS PUMF data.
morie_cpads_infer_file_format()
Infer the on-disk file format for a CPADS file path.
morie_cpads_missing_variables()
Identify missing canonical CPADS variables in a column set.
morie_cpads_validate_frame()
Validate a data frame against the canonical CPADS analysis contract.
morie_cramers_v()
Cramer's V for categorical association
morie_crypto_chacha20_poly1305_decrypt()
ChaCha20-Poly1305 IETF authenticated decryption
morie_crypto_chacha20_poly1305_encrypt()
ChaCha20-Poly1305 IETF authenticated encryption
morie_crypto_hkdf_sha256()
HKDF-SHA256 (RFC 5869)
morie_crypto_hybrid_decrypt()
Hybrid decrypt: ML-KEM-768 + ChaCha20-Poly1305
morie_crypto_hybrid_encrypt()
Hybrid encrypt: ML-KEM-768 + ChaCha20-Poly1305
morie_crypto_hybrid_keygen()
Generate an ML-KEM-768 key pair for hybrid encryption
morie_crypto_keystore_create()
Create a new empty morie keystore
morie_crypto_keystore_list()
List key names in the morie keystore
morie_crypto_keystore_load()
Load a key pair from the morie keystore
morie_crypto_keystore_store()
Store a key pair in the morie keystore
morie_crypto_liboqs_available()
Is liboqs available in this morie build?
morie_crypto_liboqs_version()
liboqs runtime version string
morie_crypto_mldsa65_keygen()
ML-DSA-65 keypair generation (NIST FIPS 204)
morie_crypto_mldsa65_sign()
ML-DSA-65 signature
morie_crypto_mldsa65_verify()
ML-DSA-65 signature verification
morie_crypto_mlkem768_decaps()
ML-KEM-768 decapsulation
morie_crypto_mlkem768_encaps()
ML-KEM-768 encapsulation
morie_crypto_mlkem768_keygen()
ML-KEM-768 keypair generation (NIST FIPS 203)
morie_crypto_random_bytes()
Cryptographically secure random bytes (libsodium)
morie_crypto_sodium_available()
Is libsodium available in this morie build?
morie_crypto_sodium_version()
libsodium runtime version string
morie_dataset_catalog()
List all datasets in the MORIE catalog
morie_dataset_column_profile()
Build a single-column profile record.
morie_dataset_detect_role()
Detect the suggested epidemiological role of a column.
morie_dataset_infer_level()
Infer the Stevens NOIR measurement level for a single vector.
morie_dataset_info()
Get metadata for a single dataset
morie_dataset_load()
Load a dataset from a CSV / TSV / Excel / Parquet / JSON file.
morie_dataset_portal_catalog()
Build the cross-portal dataset catalog
morie_dataset_portal_catalog_clear_cache()
Clear the session-scoped portal-catalog cache
morie_dataset_profile()
Fully profile a data frame without prior schema knowledge.
morie_dataset_profile_summary_table()
Render a human-readable dataset profile summary table.
morie_dataset_profile_to_list()
Serialize a dataset profile to a plain nested list.
morie_dataset_suggest_plan()
Suggest an ordered analysis plan based on a dataset profile.
morie_dataset_summarize_column()
Compute level-appropriate summary statistics for one column.
morie_datasets_arcgis_item_by_id()
Generic by-id loader for any ArcGIS Online Feature Service item.
morie_datasets_arcgis_item_metadata()
Resolve any ArcGIS Online item id to its FeatureServer URL + canonical metadata.
morie_datasets_arsau_aggregate_summary()
Ontario Use-of-Force aggregate summary (5-year 2020-2022, pre-RBDS rollup)
morie_datasets_arsau_detailed_dataset()
Ontario Use-of-Force detailed dataset (5-year 2020-2022, pre-RBDS)
morie_datasets_arsau_uof_individual_records()
Ontario Use-of-Force individual records (one row per individual-in-incident)
morie_datasets_arsau_uof_main_records()
Ontario Use-of-Force main records (one row per incident)
morie_datasets_arsau_uof_probe_cycle_records()
Ontario Use-of-Force probe-cycle records (one row per CEW cartridge probe per individual-in-incident)
morie_datasets_arsau_uof_weapon_records()
Ontario Use-of-Force weapon records (one row per weapon per individual-in-incident)
morie_datasets_bigquery()
Pull a BigQuery table (or filtered slice) as a data.frame.
morie_datasets_browse()
Browse + filter the morie cross-portal dataset catalog
morie_datasets_calgary_community_crime_stats() morie_datasets_calgary_fire_response_calls() morie_datasets_calgary_fire_stations()
Calgary Community Crime Statistics (sample)
morie_datasets_calgary_open_crime_adjacent_layers() morie_datasets_edmonton_open_crime_adjacent_layers() morie_datasets_ottawa_open_crime_adjacent_layers()
Calgary Open Data crime-adjacent catalog
morie_datasets_calgary_socrata_by_id() morie_datasets_edmonton_socrata_by_id()
Fetch a Calgary Open Data Socrata dataset by ID
morie_datasets_chicago_arrests()
City of Chicago Open Data – Arrests feed (dpt3-jri9)
morie_datasets_chicago_community_areas()
Chicago Community Area boundaries (cauq-8yn6)
morie_datasets_chicago_crime()
City of Chicago "Crimes – 2001 to Present" feed (ijzp-q8t2)
morie_datasets_chicago_crime_map()
City of Chicago "Crimes – 2001 to Present – Map" view (ahwe-kpsy)
morie_datasets_chicago_crime_odata()
City of Chicago Crimes feed via OData v4 (ijzp-q8t2)
morie_datasets_chicago_crime_resolved()
One-call Chicago crime + boundary + dictionary join
morie_datasets_chicago_crime_soql()
City of Chicago Crimes feed – arbitrary-SoQL escape hatch
morie_datasets_chicago_iucr_codes()
Chicago Police Department – Illinois Uniform Crime Reporting (IUCR) code dictionary (c7ck-438e)
morie_datasets_chicago_neighborhoods()
Chicago Neighborhoods boundary (Office of Tourism)
morie_datasets_chicago_police_beats()
Chicago Police Beats (current) boundaries (n9it-hstw)
morie_datasets_chicago_police_districts()
Chicago Police Districts (current) boundaries (24zt-jpfn)
morie_datasets_chicago_wards()
Chicago City Council Ward boundaries (sp34-6z76)
morie_datasets_ckan_package()
Pull every CSV resource of a CKAN package as a list of data frames.
morie_datasets_ckan_search()
Search a CKAN open-data portal by free-text query.
morie_datasets_corrections_uof_ethnic_origin()
Inmate-participant ethnic origin
morie_datasets_corrections_uof_incident_type()
Incident-type lookup
morie_datasets_corrections_uof_incidents()
Use-of-force incidents (head dataset)
morie_datasets_corrections_uof_indigenous()
Inmate-participant Indigenous identity
morie_datasets_corrections_uof_inmate_incident()
Inmate-to-incidents bridging table
morie_datasets_corrections_uof_inmate_participant()
Inmate-participant demographics (head)
morie_datasets_corrections_uof_institution_summary()
Institution-level annual incident summary
morie_datasets_corrections_uof_location_summary()
Location-of-incident annual summary
morie_datasets_corrections_uof_race()
Inmate-participant race
morie_datasets_corrections_uof_religion()
Inmate-participant religion
morie_datasets_corrections_uof_select_incident_summary()
Select-incident-type annual summary
morie_datasets_corrections_uof_staff_incident()
Staff-to-incidents bridging table
morie_datasets_cpads()
Load the Canadian Postsecondary Alcohol and Drug-use Survey (CPADS)
morie_datasets_cpd_public_arrests()
Chicago Police Department – Public Arrest Data (2014-2017)
morie_datasets_edmonton_police_stations() morie_datasets_edmonton_fire_stations()
Edmonton Police Station locations
morie_datasets_external_socrata_layers()
List the external Socrata datasets wrapped by morie
morie_datasets_load_by_key()
Load a dataset by its cross-portal catalog dataset_key
morie_datasets_montreal_ckan_resource()
Fetch records from any donnees.montreal.ca CKAN datastore resource
morie_datasets_montreal_justice_safety_layers()
Donnees Montreal "Loi, justice et securite publique" catalog
morie_datasets_montreal_sim_intervention_types()
SIM intervention TYPE -> French description dictionary
morie_datasets_montreal_sim_interventions()
SIM Montreal Fire Service intervention records (sample)
morie_datasets_namus_missing_persons()
NamUs missing-persons case metadata.
morie_datasets_nibrs()
FBI NIBRS offence-event records via the Crime Data Explorer API.
morie_datasets_nist_rds()
NIST Reference Datasets (RDS) catalog metadata.
morie_datasets_nyc_boroughs()
NYC Borough Boundaries (gthc-hcne)
morie_datasets_nyc_boundaries_catalog()
Unified catalog of NYC OpenData boundary loaders
morie_datasets_nyc_community_districts()
NYC community district boundaries
morie_datasets_nyc_council_districts()
NYC City Council district boundaries
morie_datasets_nyc_ntas_2020()
NYC Neighborhood Tabulation Areas (2020)
morie_datasets_nyc_nypd_arrests_historic()
NYPD Arrests Data (Historic)
morie_datasets_nyc_nypd_arrests_ytd()
NYPD Arrest Data (Year to Date)
morie_datasets_nyc_nypd_boro_crosswalk()
NYPD borough-code cross-reference (1-letter / UPPER / numeric)
morie_datasets_nyc_nypd_by_key()
Generic NYC NYPD dataset loader by registry key
morie_datasets_nyc_nypd_complaint_historic()
NYPD Complaint Data Historic
morie_datasets_nyc_nypd_complaint_ytd()
NYPD Complaint Data Current (Year To Date)
morie_datasets_nyc_nypd_hate_crimes()
NYPD Hate Crimes
morie_datasets_nyc_nypd_law_books()
NYS / NYC statute book code dictionary
morie_datasets_nyc_nypd_layers()
List the NYPD criminal-justice Socrata datasets wrapped by morie
morie_datasets_nyc_nypd_offense_codes()
NYPD offense-code dictionary (ky_cd + pd_cd + descriptions)
morie_datasets_nyc_nypd_resolved()
One-call NYPD data + borough + precinct join
morie_datasets_nyc_nypd_uof_incidents()
NYPD Use of Force Incidents
morie_datasets_nyc_nypd_uof_subjects()
NYPD Use of Force: Subjects
morie_datasets_nyc_nypd_vehicle_stops()
NYPD Vehicle Stop Reports
morie_datasets_nyc_opendata_bulk_layers() morie_datasets_chicago_opendata_bulk_layers() morie_datasets_toronto_opendata_bulk_layers() morie_datasets_calgary_opendata_bulk_layers() morie_datasets_edmonton_opendata_bulk_layers() morie_datasets_ottawa_opendata_bulk_layers() morie_datasets_montreal_opendata_bulk_layers() morie_datasets_vancouver_opendata_bulk_layers()
NYC OpenData bulk catalog (2851 entities)
morie_datasets_nyc_police_precincts()
NYC Police Precincts boundary layer (y76i-bdw7)
morie_datasets_nyc_school_districts()
NYC public school district boundaries (NYS K-12)
morie_datasets_nyc_socrata_by_id() morie_datasets_chicago_socrata_by_id()
Fetch a NYC OpenData Socrata dataset by ID
morie_datasets_nyc_stop_and_frisk()
NYPD Stop, Question and Frisk (SQF) microdata via NYC OpenData.
morie_datasets_nyc_zctas()
NYC ZIP Code Tabulation Areas (ZCTAs)
morie_datasets_ontario_ckan_by_key()
Generic Ontario CKAN dataset loader (by registry key)
morie_datasets_ontario_ckan_layers()
List the Ontario CKAN datasets wrapped by morie
morie_datasets_otis_a01()
Load the OTIS A01 Restrictive-Confinement Detailed Dataset
morie_datasets_otis_a01_restrictive_confinement()
OTIS a01 – Restrictive Confinement (detailed per-individual)
morie_datasets_otis_b01_segregation_detailed()
OTIS b01 – Segregation detailed (per-individual episodes)
morie_datasets_otis_b02_segregation_total_days()
OTIS b02 – Segregation total days per individual
morie_datasets_otis_b03_seg_alerts_by_institution()
OTIS b03 – Segregation placements: alerts + hold by institution
morie_datasets_otis_b04_seg_consecutive_by_region()
OTIS b04 – Segregation consecutive durations by region
morie_datasets_otis_b05_seg_consecutive_lengths()
OTIS b05 – Segregation placements by consecutive-length bucket
morie_datasets_otis_b06_seg_reason_by_institution()
OTIS b06 – Segregation placements: reason for placement by institution
morie_datasets_otis_b07_seg_alerts_by_gender()
OTIS b07 – Segregation placements: alerts + hold by gender
morie_datasets_otis_b08_seg_consecutive_by_institution()
OTIS b08 – Segregation consecutive durations by institution
morie_datasets_otis_b09_seg_n_times()
OTIS b09 – Individuals in segregation by number of times placed
morie_datasets_otis_c01_individuals_total()
OTIS c01 – Total individuals (in custody / restrictive confinement / segregation)
morie_datasets_otis_c02_individuals_by_institution()
OTIS c02 – Individuals by institution
morie_datasets_otis_c03_individuals_race_by_gender()
OTIS c03 – Individuals by race x gender
morie_datasets_otis_c04_individuals_race_by_region()
OTIS c04 – Individuals by race x region
morie_datasets_otis_c05_individuals_religion_by_region()
OTIS c05 – Individuals by religion x region
morie_datasets_otis_c06_individuals_age_by_region()
OTIS c06 – Individuals by age category x region
morie_datasets_otis_c07_individuals_alerts()
OTIS c07 – Individuals: alerts + hold flags
morie_datasets_otis_c08_individuals_religion_by_gender()
OTIS c08 – Individuals by religion x gender
morie_datasets_otis_c09_individuals_age_by_gender()
OTIS c09 – Individuals by age category x gender
morie_datasets_otis_c10_aggregate_durations_by_institution()
OTIS c10 – Aggregate durations by institution
morie_datasets_otis_c11_aggregate_lengths()
OTIS c11 – Aggregate lengths
morie_datasets_otis_c12_aggregate_durations_by_region()
OTIS c12 – Aggregate durations by region
morie_datasets_otis_d01_deaths_in_custody()
OTIS Deaths-in-Custody detailed dataset (d01)
morie_datasets_otis_d02_deaths_by_gender()
OTIS d02 – Deaths in custody by gender
morie_datasets_otis_d03_deaths_by_race()
OTIS d03 – Deaths in custody by race
morie_datasets_otis_d04_deaths_by_religion()
OTIS d04 – Deaths in custody by religion
morie_datasets_otis_d05_deaths_by_age_category()
OTIS d05 – Deaths in custody by age category
morie_datasets_otis_d06_cause_by_alert()
OTIS d06 – Deaths in custody by alert type x institution
morie_datasets_otis_d07_alerts_by_housing_unit()
OTIS d07 – Deaths in custody alerts x housing unit
morie_datasets_siu_director_reports()
SIU director's-reports index (legacy PDF anchors).
morie_datasets_siu_report_fields()
Extract structured fields from an SIU director's-report text or URL.
morie_datasets_siu_report_text()
Download an SIU director's-report PDF and return its plain text.
morie_datasets_statcan_ccjs_cubes()
Statistics Canada CCJS cube registry (curated subset)
morie_datasets_statcan_cube_metadata()
Fetch a StatCan cube's metadata (dimensions + members) via WDS
morie_datasets_statcan_full_csv_url()
Get the bulk-CSV download URL for a StatCan cube
morie_datasets_statcan_vectors()
Fetch the latest N periods for a set of StatCan vectors via WDS
morie_datasets_summary()
Tally the cross-portal catalog by source + api_mode
morie_datasets_toronto_ambulance_stations()
Toronto Ambulance station locations
morie_datasets_toronto_asr_miscellaneous()
TPS Annual Statistical Report – Miscellaneous data (aggregated)
morie_datasets_toronto_open_ckan_resource()
Fetch records from any open.toronto.ca CKAN resource
morie_datasets_toronto_open_crime_adjacent_layers()
Toronto Open Data crime-adjacent CKAN catalog
morie_datasets_toronto_zoning_per_neighbourhood()
Toronto Zoning per Neighbourhood (EsriCanadaEducation)
morie_datasets_tps_2008_firs()
2008 FIRS
morie_datasets_tps_2009_firs()
2009 FIRS
morie_datasets_tps_2010_firs()
2010 FIRS
morie_datasets_tps_2011_firs()
2011 FIRS
morie_datasets_tps_2012_firs()
2012 FIRS
morie_datasets_tps_2013_firs()
2013 FIRS
morie_datasets_tps_administrative()
Administrative (ASR-AD-TBL-001)
morie_datasets_tps_arcgis_hub_by_id()
Generic TPS ArcGIS Hub dataset loader by hub_id
morie_datasets_tps_arcgis_hub_download()
Direct multi-format downloader (binary or text) for a TPS Hub item
morie_datasets_tps_arcgis_hub_layers()
List the Toronto Police Service ArcGIS Hub datasets wrapped by morie
morie_datasets_tps_arrested_and_charged_persons()
Arrested and Charged Persons (ASR-ENF-TBL-001)
morie_datasets_tps_arrests_and_strip_searches()
Arrests and Strip Searches (RBDC-ARR-TBL-001)
morie_datasets_tps_assault()
TPS PSDP – Assault
morie_datasets_tps_automobile_ksi()
Automobile KSI
morie_datasets_tps_autotheft()
TPS PSDP – Auto Theft
morie_datasets_tps_bicycle_thefts()
Bicycle Thefts Open Data
morie_datasets_tps_bicycletheft()
TPS PSDP – Bicycle Theft
morie_datasets_tps_breakandenter()
TPS PSDP – Break and Enter
morie_datasets_tps_budget_2020()
Budget_2020
morie_datasets_tps_budget_2021()
Budget_2021
morie_datasets_tps_budget_2022()
Budget_2022
morie_datasets_tps_budget_2023()
Budget_2023
morie_datasets_tps_budget_2024()
Budget_2024
morie_datasets_tps_budget_2025()
Budget_2025
morie_datasets_tps_budget_2026()
Budget_2026
morie_datasets_tps_budget_by_command()
Budget_by_Command
morie_datasets_tps_calls_for_service_attended()
Calls for Service Attended (ASR-CS-TBL-003)
morie_datasets_tps_community_safety_indicators()
Community Safety Indicators Open Data
morie_datasets_tps_complaint_dispositions()
Complaint Dispositions (ASR-PCF-TBL-003)
morie_datasets_tps_cyclist_ksi()
Cyclist KSI
morie_datasets_tps_dispatched_calls_by_division()
Dispatched Calls by Division (ASR-CS-TBL-001)
morie_datasets_tps_facilities()
Facilities
morie_datasets_tps_fatals_ksi()
Fatals KSI
morie_datasets_tps_firearms_top_calibres()
Firearms Top Calibres (ASR-F-TBL-001)
morie_datasets_tps_gross_expenditures_by_division()
Gross Expenditures by Division (ASR-PB-TBL-001)
morie_datasets_tps_gross_operating_budget()
Gross Operating Budget (ASR-PB-TBL-005)
morie_datasets_tps_hatecrimes()
TPS PSDP – Hate Crimes
morie_datasets_tps_homicide()
TPS Homicides feed.
morie_datasets_tps_homicides()
TPS PSDP – Homicides
morie_datasets_tps_intimate_partner_family_violence()
TPS PSDP – Intimate Partner and Family Violence
morie_datasets_tps_investigated_alleged_misconduct()
Investigated Alleged Misconduct (ASR-PCF-TBL-002)
morie_datasets_tps_killed_and_seriously_injured()
Killed and Seriously Injured
morie_datasets_tps_layers()
List the TPS open-data layers bundled with morie.
morie_datasets_tps_major_crime()
TPS Major Crime Indicators feed.
morie_datasets_tps_mha_apprehensions()
TPS Mental Health Act Apprehensions (PSDP)
morie_datasets_tps_miscellaneous_calls_for_service()
Miscellaneous Calls for Service (ASR-CS-TBL-002)
morie_datasets_tps_miscellaneous_data()
Miscellaneous Data (ASR-MISC-TBL-001)
morie_datasets_tps_miscellaneous_firearms()
Miscellaneous Firearms (ASR-F-TBL-003)
morie_datasets_tps_motorcylist_ksi()
Motorcylist KSI
morie_datasets_tps_neighbourhood_crime_rates()
Neighbourhood Crime Rates Open Data
morie_datasets_tps_passenger_ksi()
Passenger KSI
morie_datasets_tps_patrol_zone()
Patrol Zone
morie_datasets_tps_pedestrian_ksi()
Pedestrian KSI
morie_datasets_tps_personnel_by_command()
Personnel by Command (ASR-PB-TBL-004)
morie_datasets_tps_personnel_by_rank()
Personnel by Rank (ASR-PB-TBL-002)
morie_datasets_tps_personnel_by_rank_by_division()
Personnel by Rank by Division (ASR-PB-TBL-003)
morie_datasets_tps_persons_in_crisis_calls_for_service_attended()
Persons in Crisis Calls for Service Attended Open Data
morie_datasets_tps_police_divisions()
Police Divisions
morie_datasets_tps_psdp_resolved()
One-call TPS PSDP data + boundary metadata join
morie_datasets_tps_regulated_interactions()
Regulated Interactions (ASR-RI-TBL-001)
morie_datasets_tps_reported_crimes()
Reported Crimes (ASR-RC-TBL-001)
morie_datasets_tps_robbery()
TPS PSDP – Robbery
morie_datasets_tps_search_of_persons()
Search of Persons (ASR-SP-TBL-001)
morie_datasets_tps_shooting_firearm_discharges()
TPS PSDP – Shooting and Firearm Discharges
morie_datasets_tps_shootings()
TPS Shootings and Firearm Discharges feed.
morie_datasets_tps_staffing_by_command()
Staffing_by_Command
morie_datasets_tps_theft_from_motor_vehicle()
TPS PSDP – Theft From Motor Vehicle
morie_datasets_tps_theft_over()
TPS PSDP – Theft Over
morie_datasets_tps_tickets_issued()
Tickets Issued (ASR-ENF-TBL-002)
morie_datasets_tps_top_20_offences_of_firearm_seizures()
Top 20 Offences of Firearm Seizures (ASR-F-TBL-002)
morie_datasets_tps_total_public_complaints()
Total Public Complaints (ASR-PCF-TBL-001)
morie_datasets_tps_traffic_collisions()
Traffic Collisions Open Data (ASR-T-TBL-001)
morie_datasets_tps_use_of_force_call_for_service_types()
Use of Force: Call for Service Types (RBDC-UOF-TBL-004)
morie_datasets_tps_use_of_force_call_sources_by_month()
Use of Force: Call Sources by Month (RBDC-UOF-TBL-001)
morie_datasets_tps_use_of_force_gender_composition()
Use of Force: Gender Composition (RBDC-UOF-TBL-006)
morie_datasets_tps_use_of_force_location_of_occurrences()
Use of Force: Location of Occurrences (RBDC-UOF-TBL-003)
morie_datasets_tps_use_of_force_occurrence_category()
Use of Force: Occurrence Category (RBDC-UOF-TBL-005)
morie_datasets_tps_use_of_force_time_of_day_trends()
Use of Force: Time of Day Trends (RBDC-UOF-TBL-002)
morie_datasets_tps_use_of_force_use_of_force_types_and_perceived_weapons()
Use of Force: Use of Force Types and Perceived Weapons (RBDC-UOF-TBL-007)
morie_datasets_tps_victims_of_crime()
Victims of Crime (ASR-VC-TBL-001)
morie_datasets_vancouver_opendata_by_id()
Fetch records from a Vancouver Open Data dataset by ID
morie_datasets_vancouver_opendata_layers()
Vancouver Open Data full dataset catalog (Opendatasoft v2.1)
morie_datasets_vpd_crime()
Load Vancouver Police Department crime incident data
morie_datasets_vpd_legal_disclaimer()
Read VPD's legal disclaimer (bundled verbatim from the zip)
morie_db_connect()
Connect to the MORIE cache database
morie_db_create_indexes()
Create the recommended B-tree indexes for a morie cache table
morie_dbscan_clustering()
DBSCAN density-based clustering (R parity)
morie_dcc_multivariate_garch()
DCC multivariate GARCH (Engle 2002)
morie_decision_tree_split()
Decision tree split (R parity)
morie_deep_learning_genomic()
Single-hidden-layer MLP genomic predictor (base R)
morie_default_synthetic_name_map()
Default synthetic-data variable name map
morie_default_workflow_map()
Default workflow step map
morie_desc_atkinson()
Atkinson inequality index via DescTools
morie_desc_cramers_v()
Cramer's V via DescTools
morie_desc_gini()
Gini coefficient via DescTools
morie_desc_kappa()
Cohen / Fleiss kappa via DescTools
morie_desc_winsorize()
Winsorize a numeric vector via DescTools
morie_describe()
Print the pedagogical narrative for a morie callable.
morie_describe_by_name()
String-only variant of morie_describe.
morie_design_effect()
Design effect (DEFF)
morie_det_rng()
SHA-keyed deterministic RNG for Py<->R parity
morie_det_rng_sha_hex()
SHA-256 hex digest of "name:seed" (for Py<->R cross-check)
morie_did_2x2()
Classic 2x2 Difference-in-Differences estimator
morie_did_aggregate_gt_att()
Aggregate group-time ATTs into summary parameters
morie_did_bacon_decomposition()
Goodman-Bacon decomposition of the TWFE DiD estimator
morie_did_chaisemartin_dhaultfoeuille()
Heterogeneity-robust DiD (de Chaisemartin & D'Haultfoeuille, 2020)
morie_did_continuous_treatment()
DiD with a continuous (dose) treatment
morie_did_diagnostics()
Comprehensive diagnostics for a 2x2 DiD setting
morie_did_doubly_robust()
Doubly-robust DiD (Sant'Anna & Zhao, 2020)
morie_did_event_study()
Event-study DiD specification
morie_did_fuzzy()
Fuzzy DiD (LATE) via 2SLS
morie_did_group_time_att()
Callaway–Sant'Anna group-time average treatment effects
morie_did_heterogeneous()
Heterogeneity-robust DiD by sub-group / moderator quantile
morie_did_panel_fe()
Two-way fixed-effects DiD (panel)
morie_did_parallel_trends_data()
Group-by-time outcome means for parallel-trends visualisation
morie_did_placebo_test_group()
Placebo DiD on sub-groups expected to be unaffected
morie_did_placebo_test_outcome()
Placebo DiD on outcomes that should be unaffected
morie_did_placebo_test_time()
Placebo DiD at fake treatment times
morie_did_repeated_cross_section()
Repeated cross-section DiD (optionally weighted)
morie_did_sensitivity_analysis()
Sensitivity of DiD estimate to parallel-trends violations
morie_did_staggered()
Staggered DiD via group-time ATTs with aggregation
morie_did_synthdid_estimate()
Synthetic DiD via synthdid::synthdid_estimate (explicit-name API)
morie_did_synthetic()
Synthetic Difference-in-Differences (Arkhangelsky et al., 2021)
morie_did_test_parallel_trends()
Pre-trend test for parallel trends
morie_did_triple_difference()
Triple-difference (DDD) estimator
morie_did_twoway_fe_weights()
Diagnose TWFE-DiD weights (de Chaisemartin & D'Haultfoeuille, 2020)
morie_did_wild_cluster_bootstrap()
DiD with wild cluster bootstrap p-values (Cameron-Gelbach-Miller, 2008)
morie_diffu_diffusion_forward()
DDPM forward (noising) process
morie_download_bootstrap()
Download bootstrap weight files from CKAN API
morie_dp_gaussian_mixture()
Bayesian nonparametric DP Gaussian mixture via dirichletprocess
morie_dsp_acf_from_psd()
Autocorrelation from PSD (Wiener-Khinchin)
morie_dsp_alpha_trimmed_mean()
Alpha-trimmed mean filter
morie_dsp_amplitude_histogram()
Amplitude histogram features
morie_dsp_arc_length()
Signal arc length
morie_dsp_band_power()
Bandpower over [f_low, f_high]
morie_dsp_baseline_correlation()
Baseline-corrected Pearson correlation
morie_dsp_centroidal_time()
Centroidal time
morie_dsp_coherence()
Coherence-squared spectrum
morie_dsp_coherence_spectrum()
Coherence spectrum (alias to morie_dsp_coherence)
morie_dsp_comb()
Comb filter built from cascaded notches
morie_dsp_complex_cepstrum()
Complex cepstrum
morie_dsp_complex_demodulation()
Complex demodulation around a carrier
morie_dsp_crest_factor()
Crest factor (peak / RMS)
morie_dsp_cross_correlation()
Normalised cross-correlation up to a maximum lag
morie_dsp_csd()
Cross-spectral density (Welch)
morie_dsp_cv()
Coefficient of variation
morie_dsp_derivative_detect()
Derivative-based peak detection
morie_dsp_dicrotic_notch()
Dicrotic-notch detection in pulse waves
morie_dsp_ensemble_average()
Ensemble average over fixed-length segments
morie_dsp_entropy_histogram()
Shannon entropy from amplitude histogram
morie_dsp_even_odd()
Even-odd decomposition of a finite signal
morie_dsp_fbm_synthesis()
Fractional Brownian motion synthesis (1/f^beta)
morie_dsp_form_factor()
Form factor (RMS / mean-absolute)
morie_dsp_fractal_dim_psd()
Fractal dimension from log-log PSD slope
morie_dsp_hann_filter()
Hann-windowed smoothing filter
morie_dsp_higuchi_fd()
Higuchi fractal dimension
morie_dsp_hilbert_envelope()
Hilbert envelope
morie_dsp_hjorth()
All three Hjorth parameters
morie_dsp_hjorth_activity()
Hjorth activity (variance)
morie_dsp_hjorth_complexity()
Hjorth complexity
morie_dsp_hjorth_mobility()
Hjorth mobility
morie_dsp_homomorphic()
Homomorphic high-pass filter
morie_dsp_hr_from_rr()
Heart rate from RR intervals (BPM)
morie_dsp_integrated_emg()
Integrated EMG (sum of absolute values)
morie_dsp_katz_fd()
Katz / box-counting fractal dimension
morie_dsp_lms()
LMS adaptive filter (Widrow-Hoff)
morie_dsp_matched()
Matched filter (time-reversed template correlator)
morie_dsp_mean_abs()
Mean absolute value
morie_dsp_mean_frequency()
Mean frequency from PSD
morie_dsp_median_filter()
Median filter
morie_dsp_median_frequency()
Median frequency from PSD
morie_dsp_min_phase()
Minimum-phase correspondent via cepstral folding
morie_dsp_moving_average()
Moving-average filter (boxcar)
morie_dsp_myopulse_rate()
Myopulse percentage rate
morie_dsp_nlms()
NLMS adaptive filter
morie_dsp_notch()
IIR notch filter (single frequency)
morie_dsp_onset_detect()
Energy-onset detection
morie_dsp_pan_tompkins()
Pan-Tompkins QRS detector
morie_dsp_parzen_pdf()
Parzen kernel density estimate
morie_dsp_psd_bartlett()
Bartlett PSD estimate
morie_dsp_psd_periodogram()
Periodogram PSD estimate
morie_dsp_psd_to_db()
Convert PSD to decibels
morie_dsp_psd_welch()
Welch PSD estimate (delegated to signal::pwelch / specgram)
morie_dsp_qrs_features()
QRS-style waveform descriptors
morie_dsp_rls()
RLS adaptive filter
morie_dsp_rms()
Root mean square
morie_dsp_ruler_fd()
Ruler / divider fractal dimension
morie_dsp_shannon_energy()
Shannon-energy envelope
morie_dsp_shape_factor()
Shape factor (mean-absolute / mean-sqrt-absolute-squared)
morie_dsp_slope_sign_changes()
Slope sign changes
morie_dsp_snr()
Signal-to-noise ratio estimate (dB)
morie_dsp_snr_improvement()
SNR improvement attributable to a filter (dB)
morie_dsp_spectral_edge()
Spectral edge frequency (e.g. SEF95)
morie_dsp_spectral_entropy()
Spectral entropy (Shannon, base 2)
morie_dsp_spectral_flatness()
Spectral flatness (Wiener entropy)
morie_dsp_spectral_kurtosis()
Spectral kurtosis from PSD
morie_dsp_spectral_moment()
k-th spectral moment
morie_dsp_spectral_ratio()
Spectral power ratio between two bands
morie_dsp_synchronized_average()
Synchronized average around trigger indices
morie_dsp_t_wave()
T-wave detection by post-QRS argmax search
morie_dsp_teager_energy()
Teager-Kaiser energy operator
morie_dsp_template_match()
Normalised template matching
morie_dsp_threshold_detect()
Threshold-based event detection
morie_dsp_turning_points()
Turning-points stationarity test
morie_dsp_turns_count()
Willison turns count
morie_dsp_variance_ratio()
Variance ratio (x vs. y)
morie_dsp_waveform_length()
Waveform length (total variation)
morie_dsp_waveform_length_norm()
Per-sample (normalised) waveform length
morie_dsp_wiener_filter()
Wiener filter (frequency domain)
morie_dsp_wiener_hopf()
Solve the Wiener-Hopf normal equations
morie_dsp_willison_amplitude()
Willison amplitude
morie_dsp_window()
Window function generator
morie_dsp_zero_crossing()
Zero-crossing rate
morie_e_value()
Compute E-value for unmeasured confounding
morie_effective_sample_size()
Kish effective sample size
morie_effects_comparisons()
Contrasts / comparisons via marginaleffects
morie_effects_emmeans()
Estimated marginal means via emmeans
morie_effects_predictions()
Adjusted predictions via marginaleffects
morie_effects_slopes()
Marginal slopes (partial derivatives) via marginaleffects
morie_effects_tidy()
Tidy a model with broom (fallback: summary() coefficients)
morie_eg_coint()
Engle-Granger two-step cointegration test
morie_egarch_model()
EGARCH(1,1) asymmetric volatility model
morie_ensure_extras()
Ensure optional packages are installed (interactive helper)
morie_entheo_analyze_subject()
Per-subject DMT vs PCB BOLD pipeline
morie_entheo_available_subjects()
DMT_Imaging: list motion-survived subject IDs
morie_entheo_clone_dmt_imaging()
Clone the DMT_Imaging dataset (Timmerman et al.) into a local cache.
morie_entheo_dataset_overview()
DMT_Imaging: dataset overview
morie_entheo_dynamic_functional_connectivity()
Sliding-window dynamic functional connectivity (dRSFC)
morie_entheo_load_eeg_region()
DMT_Imaging: load IRASA EEG regressors for one cortical region
morie_entheo_load_fmri_subject()
DMT_Imaging: load one subject's BOLD AAL parcellation
morie_entheo_lz_complexity()
Lempel-Ziv (LZ76) complexity of a binarised signal
morie_entheo_spectral_band_power()
EEG band-power decomposition via Welch PSD
morie_estimate_aipw()
Augmented IPW (AIPW) doubly-robust ATE estimator
morie_estimate_atc()
Estimate the Average Treatment Effect on the Controls (ATC)
morie_estimate_ate()
Estimate the Average Treatment Effect (ATE) via Hajek IPW
morie_estimate_att()
Estimate the Average Treatment Effect on the Treated (ATT)
morie_estimate_cate()
Estimate per-unit Conditional Average Treatment Effects (CATE)
morie_estimate_double_ml()
Estimate ATE via Double Machine Learning (Partially Linear Regression)
morie_estimate_g_computation()
G-computation (outcome regression) ATE estimator
morie_estimate_gate()
Estimate Group Average Treatment Effects (GATE)
morie_estimate_irm()
Estimate ATE via the Interactive Regression Model (IRM)
morie_estimate_late()
Estimate the Local Average Treatment Effect (LATE) via 2SLS / Wald
morie_estimate_propensity_scores()
Estimate propensity scores via logistic regression
morie_ewma_volatility()
EWMA volatility (RiskMetrics 1996)
morie_fairness_apply_profile()
Rename a city data.frame onto the canonical audit schema
morie_fairness_average_odds_difference()
Average Odds Difference (mean of TPR and FPR gaps)
morie_fairness_bias_amplification()
Bias Amplification Score (parity gap x Gini of group rates)
morie_fairness_city_profile()
Construct a city profile (column map onto the canonical audit schema)
morie_fairness_column_map()
Column map for a city profile
morie_fairness_demographic_parity()
Demographic Parity Gap (difference in favourable-outcome rates)
morie_fairness_disparate_impact()
Disparate Impact Ratio (EEOC four-fifths / 80% rule)
morie_fairness_equalized_odds()
Equalized Odds (TPR / FPR gaps across groups)
morie_fairness_get_city()
Look up a registered city profile by case-insensitive name
morie_fairness_gini()
Gini coefficient (concentration of a non-negative distribution)
morie_fairness_list_cities()
List registered city profile names
morie_fairness_noisy_or_detection()
Noisy-OR patrol-detection probabilities
morie_fairness_predpol
Predictive-policing disparity audit (port of morie.fairness.predpol)
morie_fairness_predpol_aggregate_areas()
Aggregate per-record predictive-policing data to per-area
morie_fairness_predpol_calibration_audit()
Predicted-vs-realised rank audit by demographic group
morie_fairness_predpol_score_disparity()
Descriptive score-by-group disparity
morie_fairness_predpol_temporal_audit()
Audit how disparity metrics move over time and across cities
morie_fairness_register_city()
Register a city profile in the process-local registry
morie_fairness_simulate_biased_crime_data()
Synthetic predictive-policing dataset with a known disparity
morie_fairness_simulation
Simulation primitives for the predictive-policing audit subsystem
morie_fairness_xai
Model-agnostic explainability (XAI) for bias discovery
morie_fairness_xai_ale()
First-order Accumulated Local Effects (Apley & Zhu)
morie_fairness_xai_ceteris_paribus()
Ceteris-paribus profile for one instance
morie_fairness_xai_partial_dependence()
Partial dependence on one feature (Friedman)
morie_fairness_xai_permutation_importance()
Permutation feature importance (model-agnostic)
morie_fairness_xai_shap_values()
Shapley feature attributions for one instance (sampling estimator)
morie_fast_available()
Is the R-side JIT acceleration active?
morie_fdr_qvalues()
FDR / q-values / tail-area p-values via fdrtool
morie_fetch()
Fetch a dataset from any URL, with automatic format detection
morie_fetch_arcgis()
Query an ArcGIS FeatureServer / MapServer layer
morie_fetch_ckan()
Fetch data from the CKAN API and cache it
morie_fetch_siu()
Fetch the Ontario SIU corpus into a 64-column SIU.csv
morie_fetch_tps()
Fetch a TPS category from the Toronto Police ArcGIS REST endpoint
morie_fisher_exact_test()
Fisher's exact test for 2x2 tables
morie_garch_fit()
Fit a GARCH(1,1) model to a return series
morie_gblup_full()
GBLUP – full mixed-model implementation
morie_generate_ar_coefficients()
Generate a stationarity-preserving AR coefficient matrix
morie_generate_synthetic_data()
Generate synthetic epidemiology-style tabular data
morie_generate_var_coefficients()
Generate a VAR(L) coefficient array as a 3-d list
morie_genomic_cross_validation()
K-fold cross-validation for genomic-prediction accuracy
morie_geostat_krige()
Kriging interpolation via gstat
morie_geostat_variogram()
Empirical variogram via gstat
morie_ghosal_adaptation()
Adaptive contraction rates over a smoothness grid.
morie_ghosal_bernstein_von_mises()
BvM diagnostic for the mean functional under a DP prior.
morie_ghosal_contraction_rate()
Minimax posterior-contraction rate
morie_ghosal_dirichlet_posterior()
Dirichlet-process posterior (conjugate update)
morie_ghosal_dpmixture_density()
DP mixture density estimate (Neal 2000 algorithm 3)
morie_ghosal_empirical_bayes()
Empirical-Bayes alpha MLE for a DP, given the observed K_n.
morie_ghosal_gp_matern()
GP posterior mean with Matern kernel.
morie_ghosal_gp_squared_exponential()
GP posterior mean with squared-exponential kernel.
morie_ghosal_hierarchical_bayes()
Escobar-West augmentation for alpha given K_n with a Gamma(a, b) hyperprior.
morie_ghosal_log_density()
Log-spline density estimator (Stone 1990, Ghosal Ch 8).
morie_ghosal_moment_matching()
Posterior mean / variance of G(A) for DP(alpha, G0) and A = (A_lower, A_upper].
morie_ghosal_neutral_right()
Neutral-to-the-right posterior survival (Doksum 1974).
morie_ghosal_np_classification()
Probit-GP classifier (Laplace approximation).
morie_ghosal_np_regression()
GP nonparametric regression
morie_ghosal_np_testing()
Polya-tree Bayes factor for H0: F = N(loc, scale^2).
morie_ghosal_posterior_consistency()
Schwartz posterior-consistency diagnostic (Bayesian bootstrap).
morie_ghosal_sieve_prior()
Bernstein-polynomial sieve density estimator (Petrone 1999).
morie_ghosal_stick_breaking_trunc()
Truncated stick-breaking representation of DP(alpha, G0).
morie_ghosal_survival_beta_process()
Beta-process posterior survival (Hjort 1990).
morie_ghosal_wavelet_prior()
Haar-wavelet spike-and-slab BayesThresh estimator (Abramovich 1998).
morie_gpl_compatible_licenses()
Vector of SPDX identifiers recognised as GPL-compatible
morie_gradient_boosting_ensemble()
Gradient boosting ensemble (R parity)
morie_gradient_boosting_genomic()
Gradient-boosting genomic predictor (Friedman 2001)
morie_gradient_descent_vanilla()
Vanilla batch gradient descent for OLS (R parity)
morie_grid_search_cv()
Grid search with cross-validation (R parity)
morie_grm_vanraden()
VanRaden Genomic Relationship Matrix
morie_gxe_interaction_model()
Two-way GxE ANOVA with EMS variance components
morie_hawkes_fit()
Fit a Hawkes (self-exciting point process) model by maximum likelihood
morie_hurst_r()
Hurst exponent via rescaled-range (R/S) analysis
morie_infer_measurement_level()
Infer the measurement level of a vector
morie_ingest_bigquery_build_sql()
Build a parameter-safe BigQuery SELECT
morie_ingest_bigquery_query()
Execute a BigQuery SQL query and return a data.frame
morie_ingest_bigquery_table()
Pull a BigQuery table (or filtered slice) into a data.frame
morie_ingest_chicago_crime()
Pull the City of Chicago "Crimes - 2001 to Present" feed
morie_ingest_chicago_crime_bigquery()
BigQuery mirror of the Chicago crime feed
morie_ingest_chicago_resources()
Built-in Chicago / Socrata resource registry
morie_ingest_chicago_socrata()
Fetch every row from a Socrata SoDA JSON endpoint
morie_ingest_cihi_xlsx()
Download a CIHI indicator .xlsx data table
morie_ingest_ckan_fetch_package_csvs()
Fetch every CSV / TSV resource in a CKAN package
morie_ingest_ckan_package_search()
Search a CKAN portal for packages (raw)
morie_ingest_ckan_package_show()
Fetch one CKAN package's metadata
morie_ingest_ckan_read_resource()
Download a CKAN resource as a data.frame
morie_ingest_ckan_resource_show()
Fetch one CKAN resource's metadata
morie_ingest_ckan_search_packages()
Search a CKAN portal and return a flat metadata data.frame
morie_ingest_forensics_namus_missing()
Pull NamUs missing-persons case metadata
morie_ingest_forensics_nibrs()
Pull FBI NIBRS offence-event records via Crime Data Explorer
morie_ingest_forensics_nist_rds()
Pull NIST Reference Datasets (RDS) catalog metadata
morie_ingest_statcan_cansim()
Fetch a Statistics Canada NDM / cansim table
morie_ingest_statcan_csv()
Download a StatCan PUMF / CSV product
morie_ingest_tps_feature_layer()
Fetch every feature from a TPS ArcGIS FeatureServer layer
morie_ingest_tps_fetch()
Fetch a TPS open-data layer by short name
morie_ingest_tps_layers()
Built-in TPS open-data layer registry
morie_inspect_output()
Inspect a serialised analysis output (JSON, CSV, or RDS)
morie_install_extras()
Install morie's optional dependencies (interactive helper)
morie_is_over_legal_limit()
Test whether an eBAC exceeds a legal driving limit
morie_iv_anderson_rubin()
Anderson-Rubin (AR) weak-IV-robust test
morie_iv_anderson_rubin_ci()
Grid-based Anderson-Rubin confidence interval for a single endogenous variable.
morie_iv_conditional_lr()
Conditional likelihood-ratio (CLR) test of Moreira (2003)
morie_iv_control_function()
Control-function (residual augmentation) IV
morie_iv_cragg_donald()
Cragg-Donald weak-instrument F statistic
morie_iv_cue_gmm()
Continuously-Updated GMM (CUE-GMM)
morie_iv_diagnostics()
Composite IV diagnostics
morie_iv_durbin_wu_hausman()
Durbin-Wu-Hausman test of endogeneity
morie_iv_first_stage_diagnostics()
First-stage F-statistics and partial R^2
morie_iv_gmm()
Generalised Method of Moments (GMM) IV
morie_iv_hansen_j()
Hansen J test of overidentifying restrictions (robust)
morie_iv_hausman()
Hausman test: OLS vs 2SLS
morie_iv_jive()
Jackknife IV (JIVE; Angrist, Imbens & Krueger 1999)
morie_iv_kleibergen_paap()
Kleibergen-Paap rank statistic
morie_iv_liml()
Limited-Information Maximum Likelihood (LIML)
morie_iv_panel()
Panel IV with unit (and optional time) fixed effects via within-transform
morie_iv_probit()
IV Probit (Rivers-Vuong control function)
morie_iv_residual_analysis()
IV residual analysis
morie_iv_sargan()
Sargan test of overidentifying restrictions (homoskedastic)
morie_iv_split_sample()
Split-sample IV
morie_iv_stock_yogo()
Stock-Yogo critical values
morie_iv_tsls()
Two-Stage Least Squares (2SLS)
morie_iv_wald()
Wald (single-instrument) estimator
morie_jackknife_estimate()
Delete-1 jackknife variance estimate
morie_johansen_cointegration()
Johansen trace test for cointegration
morie_kalman_filter()
Kalman filter predict-update for a linear-Gaussian state-space model
morie_kendall_tau()
Kendall's tau-b
morie_kendall_tau_partial()
Kendall partial-tau correlation (Gibbons Ch 12.6)
morie_kernel_pca()
Kernel principal components analysis via kernlab
morie_kmeans_clustering()
K-means clustering (R parity)
morie_kruskal_wallis_test()
Kruskal-Wallis non-parametric ANOVA
morie_laniyonu_actuarial_risk_disparity()
Replication of O'Connell & Laniyonu (2025) — CSC actuarial-risk disparity
morie_laniyonu_gentrification_policing()
Replication of Laniyonu (2018) — Coffee Shops and Street Stops
morie_laniyonu_smi_force_disparity()
Replication of Laniyonu & Goff (2021) — Police force vs SMI disparity
morie_lcmm_latent_class()
Latent-class mixed models via lcmm
morie_learning_curve()
Learning curve – train / val MSE vs training-set size (R parity)
morie_levene_test()
Levene test for equality of variances
morie_license_metadata()
morie's SPDX-style licence metadata
morie_linear_regression_ols()
Ordinary least squares closed-form solution (R parity)
morie_list_datasets()
List all datasets with cache status
morie_list_morie_modules()
List implemented MORIE CPADS modules
morie_llm_agent_available()
Return TRUE when at least one live LLM provider is available
morie_llm_ask()
Send a prompt to the best available LLM provider
morie_llm_ask_multi()
Ask the best available LLM provider, accepting a multi-turn messages list
morie_llm_detect_provider()
Detect the active LLM provider
morie_llm_list_freeapi_models()
List vendored OllamaFreeAPI model catalogue
morie_llm_probe_freeapi()
Probe an OllamaFreeAPI community server
morie_llm_probe_ollama()
Probe a local Ollama instance
morie_llm_request_completion()
POST a chat-completion request to an OpenAI-compatible endpoint
morie_load_cpads()
Load CPADS data: local files -> cache -> CKAN API
morie_load_cpads_data()
Load the real CPADS CSV from this repository
morie_load_dataset()
Load a dataset by catalog key
morie_locfdr_estimate()
Local FDR estimation via locfdr
morie_mann_whitney_test()
Mann-Whitney U test (Wilcoxon rank-sum)
morie_marker_variance()
Marker variance-component estimation
morie_matching_abadie_imbens_se()
Abadie-Imbens standard error for matching estimators
morie_matching_atc_matched()
ATC from a matched sample
morie_matching_ate_matched()
ATE from a matched / weighted sample
morie_matching_att_matched()
ATT from a matched sample
morie_matching_balance()
Balance diagnostics for matched / weighted samples
morie_matching_balance_table()
Publication-ready balance table
morie_matching_cardinality()
Cardinality matching
morie_matching_cem()
Coarsened Exact Matching (CEM)
morie_matching_common_support()
Restrict a sample to the region of common support
morie_matching_doubly_robust()
Doubly-robust ATT combining matching and regression
morie_matching_entropy_balance()
Entropy balancing weights (Hainmueller, 2012)
morie_matching_estimate_propensity()
Estimate propensity scores
morie_matching_exact()
Exact matching on discrete covariates
morie_matching_full()
Full matching via subclassification
morie_matching_genetic()
Genetic matching (Diamond & Sekhon, 2013)
morie_matching_longitudinal()
Longitudinal matching for panel data
morie_matching_love_plot_data()
Love-plot data: pre- vs post-matching balance
morie_matching_mahalanobis()
Mahalanobis distance matching
morie_matching_multi_treatment()
Matching with multiple (> 2) treatment groups
morie_matching_nearest_neighbor()
Nearest-neighbour propensity-score matching
morie_matching_optimal_pair()
Optimal pair matching
morie_matching_overlap()
Propensity-score overlap diagnostics
morie_matching_quality()
Comprehensive matching-quality assessment
morie_matching_rosenbaum_bounds()
Rosenbaum bounds for hidden bias
morie_matching_subclassify()
Subclassification (stratification) on the propensity score
morie_matching_trim_propensity()
Trim propensity scores to a fixed range
morie_matching_variable_ratio()
Variable-ratio matching on propensity score
morie_meta_rma()
Random- / fixed-effects meta-analysis via metafor
morie_midas_regression()
MIDAS regression with Beta-polynomial weights
morie_mini_batch_gradient()
Mini-batch stochastic gradient descent for OLS (R parity)
morie_ml_apply_smote()
Apply SMOTE oversampling to balance a binary outcome
morie_ml_eval_robustness()
Evaluate Random Forest robustness
morie_multi_trait_gblup()
Multi-trait GBLUP via vec-stacked mixed-model equations
morie_multiple_testing
Multiple testing correction and multiplicity-adjusted inference
morie_mvn_with_covariance()
Draw multivariate normal samples under a structured covariance
morie_mvnorm_pmv()
Multivariate normal rectangle probability via mvtnorm
morie_mvnorm_sample()
Sample from the multivariate normal via mvtnorm
morie_nbeats_basis()
N-BEATS-style polynomial + Fourier basis-expansion forecasting
morie_np_kernel_reg()
Nonparametric kernel regression via np
morie_nyc_nypd_socrata_cap_note
Socrata default-API-cap note + pagination wiring
morie_odds_ratio_ci()
Odds ratio and 95% CI from a 2x2 contingency table
morie_omega_squared()
Omega-squared (less biased than eta-squared)
morie_one_sample_coverage()
One-sample coverage probability (Gibbons Ch 2.11.1)
morie_one_sample_t_test()
One-sample t-test
morie_ordered_alternatives_test()
Jonckheere-Terpstra ordered-alternatives test (Gibbons Ch 10.6)
morie_ordered_categories()
Linear-by-linear association test for ordered categories (Gibbons Ch 14.6.1)
morie_otis_aipw_ate()
Doubly-robust (AIPW) ATE on OTIS data via cross-fitted nuisances.
morie_otis_aipw_superlearner()
SuperLearner-stacked AIPW (not yet ported).
morie_otis_all_analyses()
Run the full OTIS analysis bundle
morie_otis_all_analyze
Comprehensive per-dataset analyses for ALL 28 OTIS public-release files
morie_otis_analyze_a01()
OTIS a01 high-level causal analysis (MatchIt + IRM-DML).
morie_otis_analyze_a01_ruhela_alt_age() morie_otis_analyze_a01_mrm_alt_age()
a01 alt-T Ruhela: Age 50+ -> vm count.
morie_otis_analyze_a01_ruhela_alt_gender() morie_otis_analyze_a01_mrm_alt_gender()
a01 alt-T Ruhela: Female -> vm count.
morie_otis_analyze_a01_ruhela_alt_toronto() morie_otis_analyze_a01_mrm_alt_toronto()
a01 alt-T Ruhela: Toronto region -> vm count.
morie_otis_analyze_a01_ruhela_formulations() morie_otis_analyze_a01_dlrm() morie_otis_analyze_a01_mrm()
OTIS a01 Ruhela formulations (full DLRM).
morie_otis_analyze_a01_ruhela_per_year() morie_otis_analyze_a01_mrm_per_year()
Per-year full-DLRM on a01 canonical formulation.
morie_otis_analyze_a01_ruhela_subgroup_female() morie_otis_analyze_a01_mrm_subgroup_female()
a01 subgroup Ruhela: Female-only cell frame.
morie_otis_analyze_a01_ruhela_subgroup_male() morie_otis_analyze_a01_mrm_subgroup_male()
a01 subgroup Ruhela: Male-only cell frame.
morie_otis_analyze_a01_with_csi_context()
OTIS a01 causal pipeline + Toronto Crime Severity Index context.
morie_otis_analyze_all()
Run every OTIS analyzer against a named list of datasets
morie_otis_analyze_b01()
Person-level segregation-placement analysis (b01)
morie_otis_analyze_b01_ruhela_alt_age() morie_otis_analyze_b01_mrm_alt_age()
b01 alt-T Ruhela: Age 50+ -> vm count.
morie_otis_analyze_b01_ruhela_alt_gender() morie_otis_analyze_b01_mrm_alt_gender()
b01 alt-T Ruhela: Female -> vm count.
morie_otis_analyze_b01_ruhela_alt_toronto() morie_otis_analyze_b01_mrm_alt_toronto()
b01 alt-T Ruhela: Toronto region -> vm count.
morie_otis_analyze_b01_ruhela_formulations() morie_otis_analyze_b01_dlrm() morie_otis_analyze_b01_mrm()
OTIS b01 Ruhela formulations (full DLRM).
morie_otis_analyze_b01_ruhela_per_year() morie_otis_analyze_b01_mrm_per_year()
Per-year full-DLRM on b01 canonical formulation.
morie_otis_analyze_b01_ruhela_subgroup_female() morie_otis_analyze_b01_mrm_subgroup_female()
b01 subgroup Ruhela: Female-only cell frame.
morie_otis_analyze_b01_ruhela_subgroup_male() morie_otis_analyze_b01_mrm_subgroup_male()
b01 subgroup Ruhela: Male-only cell frame.
morie_otis_analyze_b02()
Aggregate segregation days per person per year (b02)
morie_otis_analyze_b02_ruhela_alt_age() morie_otis_analyze_b02_mrm_alt_age()
b02 alt-T Ruhela: Age 50+ -> total seg days.
morie_otis_analyze_b02_ruhela_alt_region() morie_otis_analyze_b02_mrm_alt_region()
b02 alt-T Ruhela: Toronto region -> total seg days.
morie_otis_analyze_b02_ruhela_formulations() morie_otis_analyze_b02_dlrm() morie_otis_analyze_b02_mrm()
OTIS b02 Ruhela formulations: T=Female -> seg-day count.
morie_otis_analyze_b03()
Segregation placements by alert x institution (b03)
morie_otis_analyze_b03_ruhela_aggregate() morie_otis_analyze_b03_mrm_aggregate()
b03 aggregate Ruhela: Alert presence -> seg placements.
morie_otis_analyze_b04()
Placement durations by region & gender (b04)
morie_otis_analyze_b04_ruhela_aggregate() morie_otis_analyze_b04_mrm_aggregate()
b04 aggregate Ruhela: Female -> median seg duration.
morie_otis_analyze_b05()
Distribution of placements by binned duration (b05)
morie_otis_analyze_b05_mandela_classification()
Mandela-RF on b05 – per-placement Mandela classification by year.
morie_otis_analyze_b05_ruhela_aggregate()
b05 aggregate Ruhela: schema-no-demographic guard.
morie_otis_analyze_b06()
Reasons for placement x institution x gender (b06)
morie_otis_analyze_b06_ruhela_aggregate() morie_otis_analyze_b06_mrm_aggregate()
b06 aggregate Ruhela: Disciplinary reason -> seg placements.
morie_otis_analyze_b07()
Alerts x gender (b07)
morie_otis_analyze_b07_ruhela_aggregate() morie_otis_analyze_b07_mrm_aggregate()
b07 aggregate Ruhela (pivot to long): With-alert -> seg placements.
morie_otis_analyze_b08()
Durations by institution & gender (b08)
morie_otis_analyze_b08_ruhela_aggregate() morie_otis_analyze_b08_mrm_aggregate()
b08 aggregate Ruhela: Female -> median seg duration (institution-clustered).
morie_otis_analyze_b09()
Individuals by number of placements x gender (b09)
morie_otis_analyze_b09_ruhela_aggregate() morie_otis_analyze_b09_mrm_aggregate()
b09 aggregate Ruhela: Female -> individuals in segregation.
morie_otis_analyze_c01()
Total individuals x custody/RC/seg x gender (c01)
morie_otis_analyze_c01_ruhela_aggregate() morie_otis_analyze_c01_mrm_aggregate()
c01 aggregate Ruhela: Female -> RC count.
morie_otis_analyze_c01_ruhela_aggregate_region_cluster() morie_otis_analyze_c01_mrm_aggregate_region_cluster()
c01 region-cluster variant (year-clustered GEE).
morie_otis_analyze_c02()
Individuals in RC/seg by institution (c02)
morie_otis_analyze_c02_ruhela_aggregate() morie_otis_analyze_c02_mrm_aggregate()
c02 aggregate Ruhela: Female -> RC (institution GEE).
morie_otis_analyze_c03()
Individuals x race x gender (c03)
morie_otis_analyze_c03_ruhela_aggregate() morie_otis_analyze_c03_mrm_aggregate()
c03 aggregate Ruhela: Indigenous -> RC.
morie_otis_analyze_c04()
Individuals in RC/seg by race x region (c04)
morie_otis_analyze_c04_ruhela_aggregate() morie_otis_analyze_c04_mrm_aggregate()
c04 aggregate Ruhela: Indigenous -> RC (by region).
morie_otis_analyze_c04_ruhela_aggregate_region_cluster() morie_otis_analyze_c04_mrm_aggregate_region_cluster()
c04 region-cluster variant.
morie_otis_analyze_c05()
Individuals in RC/seg by religion x region (c05)
morie_otis_analyze_c05_ruhela_aggregate() morie_otis_analyze_c05_mrm_aggregate()
c05 aggregate Ruhela: non-majority religion -> RC.
morie_otis_analyze_c06()
Individuals in RC/seg by age category x region (c06)
morie_otis_analyze_c06_ruhela_aggregate() morie_otis_analyze_c06_mrm_aggregate()
c06 aggregate Ruhela: Age 50+ -> RC.
morie_otis_analyze_c07()
Individuals x alerts x gender (c07)
morie_otis_analyze_c07_ruhela_aggregate() morie_otis_analyze_c07_mrm_aggregate()
c07 aggregate Ruhela: Alert presence x Gender -> RC.
morie_otis_analyze_c08()
Individuals by religion x gender (c08)
morie_otis_analyze_c08_ruhela_aggregate() morie_otis_analyze_c08_mrm_aggregate()
c08 aggregate Ruhela: non-majority religion x gender -> RC.
morie_otis_analyze_c09()
Individuals by age category x gender (c09)
morie_otis_analyze_c09_ruhela_aggregate() morie_otis_analyze_c09_mrm_aggregate()
c09 aggregate Ruhela: Age 50+ x gender -> RC.
morie_otis_analyze_c10()
RC/seg aggregate durations by institution (c10)
morie_otis_analyze_c10_ruhela_aggregate() morie_otis_analyze_c10_mrm_aggregate()
c10 aggregate Ruhela: Female -> median RC days (institution GEE).
morie_otis_analyze_c11()
Individuals by aggregate-duration bin (c11)
morie_otis_analyze_c11_mandela_classification()
Mandela-RF on c11 – per-individual Mandela classification by year.
morie_otis_analyze_c11_ruhela_aggregate() morie_otis_analyze_c11_mrm_aggregate()
c11 aggregate Ruhela: long-duration bin (>=16 days) -> RC.
morie_otis_analyze_c12()
RC/seg aggregate durations by region & gender (c12)
morie_otis_analyze_c12_ruhela_aggregate() morie_otis_analyze_c12_mrm_aggregate()
c12 aggregate Ruhela: Female -> median RC days (by region).
morie_otis_analyze_c_chi2()
MRM chi-square family on c-series.
morie_otis_analyze_d01()
Person-level custodial deaths (d01)
morie_otis_analyze_d02()
Custodial deaths by gender (d02)
morie_otis_analyze_d02_ruhela_aggregate() morie_otis_analyze_d02_mrm_aggregate()
d02 aggregate Ruhela: Female -> custodial deaths.
morie_otis_analyze_d03()
Custodial deaths by race (d03)
morie_otis_analyze_d03_ruhela_aggregate() morie_otis_analyze_d03_mrm_aggregate()
d03 aggregate Ruhela: Indigenous -> custodial deaths.
morie_otis_analyze_d04()
Custodial deaths by religion (d04)
morie_otis_analyze_d04_ruhela_aggregate() morie_otis_analyze_d04_mrm_aggregate()
d04 aggregate Ruhela: non-majority religion -> custodial deaths.
morie_otis_analyze_d05()
Custodial deaths by age category (d05)
morie_otis_analyze_d05_ruhela_aggregate() morie_otis_analyze_d05_mrm_aggregate()
d05 aggregate Ruhela: Age 50+ -> custodial deaths.
morie_otis_analyze_d06()
Custodial deaths by alert x medical cause (d06)
morie_otis_analyze_d07()
Custodial deaths by alert x housing unit (d07)
morie_otis_analyze_d_chi2()
MRM chi-square family on d-series.
morie_otis_analyze_otis_mandela_provincial_vs_federal()
Mandela-RF cross-comparison: Ontario provincial vs federal SIU.
morie_otis_analyze_ruhela_grid()
Aggregate Ruhela grid: one-page IRR comparison across analyzers.
morie_otis_analyze_ruhela_master()
Paper-ready master report – every Ruhela formulation in one result.
morie_otis_analyze_ruhela_per_year()
Per-fiscal-year full-DLRM Ruhela formulation driver.
morie_otis_analyzers()
Registry of dataset-id -> analyzer
morie_otis_astcmb()
Alert-state combination encoding (8 combos -> complexity index)
morie_otis_causal_grid()
Run IPW / AIPW / IRM-DML on the three canonical (T, Y) pairs.
morie_otis_churn
Goffmanian institutional-churn analyses on OTIS
morie_otis_churn_analyze_all()
Run all 11 OTIS-churn analyses
morie_otis_classify_mandela_combo()
Mandela alert-state classifier for an OTIS placement row.
morie_otis_disciplinary_medical_overlap()
Disciplinary x medical-protection overlap
morie_otis_embedding_distribution()
Total-days embedding distribution (lognormal vs Pareto vs exp)
morie_otis_intra_year_transition_matrix()
Intra-year region-to-region transition matrix
morie_otis_ipw_ate()
Hajek-stabilised IPW estimator of the ATE on OTIS data.
morie_otis_irm_dml()
Interactive Regression Model DML on OTIS data (ATE, ATTE, ATC).
morie_otis_irr_glmm_vm()
Poisson + Negative-Binomial IRR for volatility ~ alert complexity
morie_otis_load()
Load the canonical OTIS CSV
morie_otis_make_pair_a()
Pair (a): MentalHealth_Alert -> SuicideRisk_Alert (binary -> binary).
morie_otis_make_pair_alert_to_volatility_a01()
a01-aware wrapper for the Ruhela alert -> volatility builder.
morie_otis_make_pair_alert_to_volatility_all()
Run both Ruhela and Naive alert -> volatility builders.
morie_otis_make_pair_alert_to_volatility_naive()
Naive (max-simultaneous-flags + binary vm) alert -> volatility builder.
morie_otis_make_pair_alert_to_volatility_ruhela()
Ruhela's primary alert-complexity -> regional-volatility builder.
morie_otis_make_pair_b()
Pair (b): HighAlertComplexity -> AnyReadmission.
morie_otis_make_pair_c()
Pair (c): RegionalVolatility -> SegregationDays.
morie_otis_mortification_cooccurrence()
Mortification co-occurrence (concurrent alerts)
morie_otis_otdesc()
Full OTIS descriptive statistics suite
morie_otis_otdml()
Cross-fitted partially linear DML (ATE/ATT) on OTIS
morie_otis_path_complexity_gini()
Path complexity Gini by (year, region)
morie_otis_pipeline
OTIS analysis pipeline (RichResult-style driver)
morie_otis_plr()
Partially Linear Regression DML on OTIS (not yet ported).
morie_otis_regional_placement() morie_otis_alert_state_combo() morie_otis_volatility() morie_otis_rc_trends() morie_otis_descriptives() morie_otis_dml()
Ontario Restrictive Confinement (OTIS) primitive analyses
morie_otis_psm()
Propensity-score 1:k NN matching with caliper (not yet ported).
morie_otis_psm_subclass()
Propensity-score subclassification ATE (not yet ported).
morie_otis_rctrnd()
Restrictive-confinement trends over time by region
morie_otis_regC_demog_contingency()
Multi-region path x Gender / Age contingency
morie_otis_region_alert_state_richness()
Region x alert state richness
morie_otis_repeat_placement_concentration()
Repeat-placement concentration (Goffmanian cyclical-inmate)
morie_otis_rplace()
Regional placement matrix by age group
morie_otis_tps_analyze_all()
Run all OTIS-TPS overlay analyses
morie_otis_tps_composite_overlay()
Composite overlay (alias for the YoY correlation)
morie_otis_tps_overlay
Cross-link OTIS (Ontario corrections) with TPS (Toronto police) data
morie_otis_tps_per_region_rollup()
OTIS seg/RC totals per region x year (Toronto row flagged for TPS-overlay use)
morie_otis_tps_yoy_correlation()
Year-over-year correlation between OTIS Toronto-region segregation placements and TPS incident counts (per category)
morie_otis_volat()
Regional volatility / placement movement
morie_otis_within_year_placement_count()
Within-year placement-count distribution
morie_otis_within_year_region_diversity()
Within-year region diversity
morie_paired_t_test()
Paired t-test
morie_parse_nypd_law_code()
Parse an NYPD law_code string into its structural fields
morie_paths()
Resolve standard project paths
morie_pca_dimension_reduction()
PCA via SVD for dimension reduction (R parity)
morie_pcg_filter()
Phonocardiogram (PCG) bandpass filter
morie_penalized_regression()
Elastic-net regression via coordinate descent (base R)
morie_percentile_modified_rank()
Percentile-modified rank (Gastwirth) two-sample test (Gibbons Ch 8.3.3)
morie_performance_check_collinearity()
Collinearity / VIF check via performance
morie_performance_check_model()
Regression-diagnostic plots via performance
morie_performance_check_outliers()
Outlier check via performance
morie_performance_r2()
R-squared family via performance
morie_point_biserial_r()
Point-biserial correlation
morie_polynomial_regression()
Polynomial regression (R parity)
morie_power_prop_test()
Power for a two-proportion z-test
morie_power_t_test()
Power for a two-sample t-test
morie_ppcor_partial()
Partial correlation via ppcor
morie_ppcor_semipartial()
Semi-partial correlation via ppcor
morie_pps_sample()
Probability proportional to size (PPS) sampling
morie_prediction_accuracy()
Genomic-prediction accuracy metrics
morie_predpol_aggregate_areas()
Aggregate per-record predictive-policing data to one row per area
morie_predpol_calibration_audit()
Audit whether an algorithm's area risk ranking matches realised outcomes
morie_predpol_score_disparity()
Descriptive disparity in a risk score across groups
morie_predpol_temporal_audit()
Audit how disparity metrics move over time and across cities
morie_profile_dataset()
Profile a data.frame: per-column types, missingness, summary statistics
morie_prophet_components()
Prophet-style additive decomposition (linear trend + Fourier seasonality)
morie_proportion_ci()
Wilson score confidence interval for a proportion
morie_psymet_alpha()
Cronbach's coefficient alpha with Feldt CI
morie_psymet_alphadel()
Alpha if item deleted
morie_psymet_ave()
Average variance extracted (AVE) from factor loadings. Mean(lambda^2).
morie_psymet_bartlett()
Bartlett's test of sphericity.
morie_psymet_cr()
Composite reliability from standardized factor loadings. CR = (sum lambda)^2 / ((sum lambda)^2 + sum(1 - lambda^2))
morie_psymet_discrimination()
Item discrimination (D-statistic).
morie_psymet_itemtotal()
Corrected item-total correlations
morie_psymet_kmo()
Kaiser-Meyer-Olkin sampling adequacy.
morie_psymet_omega()
McDonald's omega total and hierarchical
morie_psymet_parallel()
Horn's parallel analysis – suggested number of factors.
morie_psymet_splithalf()
Spearman-Brown split-half reliability.
morie_quantile_reg()
Quantile regression via quantreg
morie_random_forest_ensemble()
Random Forest ensemble (R parity)
morie_random_forest_genomic()
Random-forest genomic predictor
morie_random_search_cv()
Random search hyperparameter optimisation (R parity)
morie_randtests_bartels()
Bartels rank test via randtests
morie_randtests_runs()
Wald-Wolfowitz runs test via randtests
morie_randtests_turning_point()
Turning-point test via randtests
morie_rank_based_test()
Mann's rank test for randomness (Gibbons Ch 3.5)
morie_rank_order_statistics()
Signed ranks of paired differences (Gibbons Ch 5.5)
morie_rank_placements()
Rank placements of Y among X order statistics (Gibbons Ch 2.11.3)
morie_rdd_bandwidth_cct()
Calonico-Cattaneo-Titiunik (CCT) MSE-optimal bandwidth
morie_rdd_bandwidth_ik()
Imbens-Kalyanaraman (IK) MSE-optimal bandwidth
morie_rdd_bandwidth_rot()
Rule-of-thumb (ROT) bandwidth – Silverman-style on running variable
morie_rdd_bandwidth_sensitivity()
Bandwidth sensitivity sweep
morie_rdd_bias_corrected()
CCT bias-corrected, robust-SE RDD inference
morie_rdd_cattaneo_density()
Cattaneo-Jansson-Ma (2020) local-polynomial density test
morie_rdd_covariate_balance()
Covariate balance at the cutoff
morie_rdd_density_test()
McCrary-style RD density test via rddensity
morie_rdd_discrete()
RDD with discrete running variable
morie_rdd_donut()
Donut-hole RDD
morie_rdd_fuzzy()
Fuzzy RDD treatment effect via instrumented Wald ratio
morie_rdd_geographic()
Geographic / boundary RDD on a signed distance
morie_rdd_kernel_triangular() morie_rdd_kernel_epanechnikov() morie_rdd_kernel_uniform() morie_rdd_kernel_gaussian()
RDD kernel functions
morie_rdd_kink()
Regression kink design – slope discontinuity at the cutoff
morie_rdd_local_polynomial()
Local polynomial regression at user-supplied evaluation points
morie_rdd_local_randinf()
Local-randomisation RDD inference via rdlocrand
morie_rdd_local_randomisation()
Local-randomisation RDD via permutation in a fixed window
morie_rdd_mccrary()
McCrary (2008) density manipulation test
morie_rdd_placebo_cutoff()
Placebo cutoff falsification test
morie_rdd_plot_data()
Binned scatter + global-polynomial data for an RD plot
morie_rdd_power()
RDD power calculation
morie_rdd_power_calc()
Power calculations for RDD designs via rdpower
morie_rdd_sample_size()
RDD sample-size determination
morie_rdd_sharp()
Sharp RDD treatment effect at the cutoff
morie_read_outputs_manifest()
Read outputs manifest from a project
morie_recommended_pair_test()
Recommended bivariate test for a pair of variables.
morie_recommended_summary()
Recommended summary statistic for a single variable.
morie_regime_switching()
Markov-switching regression (Hamilton 1989)
morie_regularization_path()
Ridge / LASSO / ElasticNet regularization path (R parity)
morie_risk_difference_ci()
Risk difference (ARD) with Newcombe CI
morie_risk_ratio_ci()
Risk ratio (relative risk) with log-normal CI
morie_rkhs_full()
RKHS regression with Gaussian kernel
morie_rnn_genomic()
Vanilla RNN genomic predictor (BPTT, base R)
morie_roc_auc_score()
ROC curve and AUC (R parity)
morie_rsample_bootstraps()
Direct bridge to rsample::bootstraps
morie_run_ebac_selection_ipw_analysis()
Run the eBAC selection-adjusted IPW workflow
morie_run_morie_module()
Run one implemented MORIE module against CPADS data
morie_run_morie_modules()
Run multiple implemented MORIE modules
morie_run_pipeline()
Run multiple workflow steps
morie_run_propensity_ipw_analysis()
Run the CPADS propensity/IPW workflow
morie_run_treatment_effects_analysis()
Run a treatment-effects analysis (point estimate, SE, 95% CI)
morie_run_weighted_logistic_analysis()
Run a weighted logistic-regression analysis
morie_run_workflow_step()
Run one project workflow step
morie_sample()
Load a bundled MORIE reference sample by name
morie_sample_size_logistic()
Sample size for logistic regression detecting a target odds ratio
morie_semipar_bridge
Semiparametric kernel primitives (R port)
morie_sensitivity_evalue()
E-values for the EValue dispatch family (extender)
morie_sensitivity_konfound()
Konfound robustness for a coefficient (konfound extender)
morie_sensitivity_omitted_var_bias()
Omitted-variable bias on a fitted model (sensemakr extender)
morie_sensitivity_rosenbaum()
Rosenbaum bounds sensitivity analysis
morie_sensitivity_tipping_point()
Tipping-point sensitivity to a single unmeasured confounder (tipr)
morie_sgolay_smooth()
Savitzky-Golay smoothing filter
morie_shapiro_wilk_test()
Shapiro-Wilk normality test
morie_sign_test_power()
Power function of the two-sided sign test (Gibbons Ch 5.4.4)
morie_simple_random_sample()
Simple random sample from a data frame
morie_simpleboot_two()
Direct bridge to simpleboot::two.boot
morie_simulate_longitudinal_panel()
Simulate a longitudinal panel and return a tidy long-format data.frame
morie_siu_all_analyses()
Run every SIU descriptive analysis in this module
morie_siu_analyze
SIU descriptive analyses (R port of morie.siu.analyze)
morie_siu_anomaly_check()
Per-field anomaly check: does the parser's extraction match the HTML?
morie_siu_audit_case()
Audit one SIU case end-to-end: parser output + raw HTML
morie_siu_audit_columns()
Per-column accuracy audit: estimate every SIU column's correctness
morie_siu_by_police_service()
SIU cases by police service
morie_siu_by_year()
SIU cases by year
morie_siu_cache_path()
Cache-path helper for the lightweight SIU scraper
morie_siu_case_counts()
SIU per-case team-size distribution
morie_siu_charges_by_year_chi2()
Chi-square: charges-recommended independent of year?
morie_siu_classify_mandela()
Apply the Sprott-Doob Mandela-Rules classifier to one SIU stay
morie_siu_compare()
Field-by-field SIU comparison against a user-supplied external table
morie_siu_decision_timing()
SIU decision-timing distributions
morie_siu_demographics()
Affected-person demographics
morie_siu_index_url()
Lightweight Ontario SIU Director's Reports scraper (R-native)
morie_siu_fetch_cases()
Scrape Ontario SIU Director's Reports into a tidy CSV
morie_siu_fetch_dataframe()
Scrape Ontario SIU Director's Reports and return a data frame
morie_siu_index()
SIU drid → case_number → language index
morie_siu_llm_extract()
Extract SIU report fields with an LLM (Gemini or Claude)
morie_siu_mental_health_race_indicators()
Mental-health / race keyword indicators
morie_siu_parse_html()
Parse a SIU director's-report HTML page (pure-R)
morie_siu_parse_news_html()
Parse a SIU news-release HTML page (pure-R)
morie_siu_parser
Pure-R SIU director's-report parser (port of morie.siu._parser)
morie_siu_record_correction()
Record a verified correction to the SIU parser's output
morie_siu_refresh_manifest()
Rebuild the Ontario SIU DRID manifest by probing the live site
morie_siu_sanity_check()
Row-level sanity check on a parsed SIU table (regex-only, no LLM)
morie_siu_sprott_doob_feb2021()
Comprehensive replication of Sprott & Doob (Feb 2021)
morie_siu_sprott_doob_iftene_table1()
Sprott-Doob-Iftene (May 2021) Table 1: IEDM-reviewed population
morie_siu_sprott_doob_iftene_table10()
Sprott-Doob-Iftene (May 2021) Table 10: per-IEDM decision variance
morie_siu_sprott_doob_iftene_table15()
Sprott-Doob-Iftene (May 2021) Table 15: long-stay no-IEDM cases
morie_siu_sprott_doob_iftene_table9()
Sprott-Doob-Iftene (May 2021) Table 9: IEDM review outcomes
morie_siu_sprott_doob_table11()
Sprott-Doob (Feb 2021) Table 11: Region x stay length
morie_siu_sprott_doob_table12()
Sprott-Doob (Feb 2021) Table 12: regional over-/under-representation
morie_siu_sprott_doob_table13()
Sprott-Doob (Feb 2021) Table 13: regional SIU person-stay rates
morie_siu_sprott_doob_table15()
Sprott-Doob (Feb 2021) Table 15: Region x MH-flag
morie_siu_sprott_doob_table19()
Sprott-Doob (Feb 2021) Table 19: Mandela-Rules classification
morie_siu_sprott_doob_table22()
Sprott-Doob (Feb 2021) Table 22: Region x Mandela groups
morie_siu_sprott_doob_table23()
Sprott-Doob (Feb 2021) Table 23: regional torture/solitary rates
morie_siu_sprott_doob_table4()
Sprott-Doob (Feb 2021) Table 4: length-of-stay distribution
morie_siu_translate() morie_siu_translate_fr_to_en()
Translate SIU report text into any target language via local LLM
morie_siu_verify_chi2()
Recompute Pearson chi-square from a 2D contingency table
morie_siu_verify_published_chi_squares()
Verify every published chi-square against its transcribed cells
morie_siuiap_cite()
Build a citation string for an SIU IAP / CRIMSL / affidavit entry.
morie_siuiap_panel_summary()
Human-readable summary of the SIU IAP panel.
morie_spatial_voting_aldrich_mckelvey()
Aldrich-McKelvey scaling
morie_spatial_voting_alpha_nominate()
Alpha-NOMINATE (stub)
morie_spatial_voting_anchoring_vignettes()
Anchoring vignettes for DIF correction
morie_spatial_voting_bayesian_am()
Bayesian Aldrich-McKelvey scaling (stub)
morie_spatial_voting_bayesian_irt_likelihood()
Bayesian IRT likelihood (deterministic part of CJR machinery)
morie_spatial_voting_bayesian_irt_posterior()
Posterior summaries for a Bayesian IRT chain
morie_spatial_voting_bayesian_mds()
Bayesian MDS (stub) – log-normal distances via Metropolis
morie_spatial_voting_bayesian_unfolding()
Bayesian unfolding (stub) – Bakker & Poole sampler
morie_spatial_voting_blackbox()
Blackbox / Basic Space scaling
morie_spatial_voting_cjr_irt()
Clinton-Jackman-Rivers Bayesian IRT (stub)
morie_spatial_voting_classical_mds()
Classical (metric) multidimensional scaling
morie_spatial_voting_cutting_lines()
Cutting-line endpoints for Coombs-mesh plots
morie_spatial_voting_double_centering()
Double-center a distance matrix
morie_spatial_voting_dw_nominate()
DW-NOMINATE dynamic weighted ideal-point estimator
morie_spatial_voting_dynamic_irt()
Dynamic IRT with random-walk priors (stub)
morie_spatial_voting_em_irt()
EM algorithm for binary IRT
morie_spatial_voting_ideal_point_recovery()
Ideal-point recovery from unfolding output
morie_spatial_voting_indscal()
INDSCAL: weighted MDS with individual differences
morie_spatial_voting_mds_fit_stats()
MDS fit statistics (Mardia criterion)
morie_spatial_voting_mlsmu6()
MLSMU6 alternating least-squares unfolding
morie_spatial_voting_nominate_bootstrap()
Parametric bootstrap of NOMINATE standard errors
morie_spatial_voting_nominate_loglik()
NOMINATE log-likelihood and GMP
morie_spatial_voting_nominate_utility()
NOMINATE Gaussian utility
morie_spatial_voting_nominate_vote_prob()
Single NOMINATE vote probability
morie_spatial_voting_nonmetric_mds()
Nonmetric MDS with isotonic regression
morie_spatial_voting_nonparametric_bootstrap()
Nonparametric bootstrap for AM / blackbox scaling positions
morie_spatial_voting_normal_vectors()
Normal-vector projection of an external measure
morie_spatial_voting_optimal_classification()
Optimal Classification scaling
morie_spatial_voting_ordered_oc()
Ordered Optimal Classification for ordinal scales
morie_spatial_voting_ordinal_irt()
Ordinal IRT / Quinn factor model (stub)
morie_spatial_voting_procrustes()
Procrustes rotation
morie_spatial_voting_smacof()
SMACOF stress minimisation
morie_spatial_voting_smacof_unfolding()
SMACOF rectangular unfolding
morie_spatial_voting_unfolding_stress()
Compute unfolding stress
morie_spatial_voting_wordfish()
Wordfish: Poisson IRT for document-term matrices
morie_spearman_rho()
Spearman rank correlation
morie_specs_from_df()
Build a list of column specs from a parsed CSV header.
morie_spectral_cluster()
Spectral clustering via kernlab
morie_spectral_density()
Welch power spectral density
morie_sprott_doob
Sprott & Doob (CRIMSL UToronto) SIU analyses
morie_stat_bridge
Bridge between external runners and the morie R command registry
morie_stat_commands
Central command registry for the morie R surface
morie_state_space_model()
Local-level state-space model (Kalman filter+smoother)
morie_stratified_sample()
Proportional or fixed stratified random sample
morie_suggest_analysis_plan()
Suggest an analysis plan from a dataset profile
morie_sukhatme_test()
Sukhatme two-sample scale test (Gibbons Ch 9.7)
morie_summarize_output_audit()
Summarize an output audit
morie_survey_calibrate()
Raking calibration to known marginal totals (iterative proportional fitting).
morie_survey_complex_glm()
Complex-survey GLM constructor (single-shot wrapper that builds a design and fits a svyglm in one call). Cluster-robust SEs via the design.
morie_survey_design()
Construct a survey design object.
morie_survey_glm()
Survey-weighted GLM with design-based SEs.
morie_survey_hajek_mean()
Hajek (ratio) estimator of a population mean.
morie_survey_ht_total()
Horvitz-Thompson estimator of a population total.
morie_survey_mean()
Survey-weighted mean (delegates to survey::svymean when available).
morie_survey_poststratify()
Post-stratification weights (sample-to-population alignment).
morie_survey_ratio()
Ratio estimator of a population total using known X_pop.
morie_survey_subpop()
Subpopulation (domain) mean with Woodruff linearised SE.
morie_survival_aft()
Accelerated failure time model (parametric).
morie_survival_cif()
Cumulative incidence function (Aalen-Johansen) for competing risks.
morie_survival_compare_parametric()
Compare parametric survival models by AIC/BIC.
morie_survival_concordance()
Harrell's concordance index (C-statistic).
morie_survival_cox()
Cox proportional hazards model.
morie_survival_coxsnell()
Cox-Snell residuals from a fitted morie Cox model.
morie_survival_deviance()
Deviance residuals.
morie_survival_finegray()
Fine-Gray subdistribution hazard model (competing risks).
morie_survival_hr()
Hazard ratio between two groups via a simple Cox model.
morie_survival_km()
Kaplan-Meier product-limit survival estimator.
morie_survival_landmark()
Landmark dataset constructor.
morie_survival_left_truncated_km()
Left-truncated Kaplan-Meier with delayed entry.
morie_survival_logrank()
Log-rank family tests (logrank / Peto-Peto / Gehan / Tarone-Ware).
morie_survival_martingale()
Martingale residuals.
morie_survival_nelsonaalen()
Nelson-Aalen cumulative-hazard estimator.
morie_survival_parametric()
Simple parametric survival models (intercept-only).
morie_survival_rmst()
Restricted Mean Survival Time (RMST).
morie_survival_rmst_diff()
Difference in RMST between two groups.
morie_survival_schoenfeld()
Schoenfeld residuals + PH-assumption test.
morie_survival_turnbull()
Turnbull NPMLE for interval-censored data.
morie_svm_genomic()
Support-vector regression for genomic prediction
morie_svm_hinge_primal()
Linear SVM (primal hinge loss) – R parity
morie_svm_kernel_trick()
Kernel SVM (RBF / poly / sigmoid) – R parity
morie_sync_rng()
Synchronised RNG seeded reproducibly for cross-language workflows
morie_synth_corrections_uof()
Build a synthetic Corrections-UoF data.frame for testing.
morie_synth_otis()
Build a synthetic OTIS data.frame for a given publication id.
morie_synth_otis_all()
Build the full 29-dataset OTIS synthetic list.
morie_terry_hoeffding_test()
Terry-Hoeffding (Fisher-Yates) two-sample normal-scores test (Gibbons Ch 8.3.1)
morie_tgarch_model()
GJR-GARCH(1,1) threshold GARCH
morie_threshold_autoregression()
Two-regime self-exciting threshold autoregressive (SETAR) model
morie_to_hood_crosswalk()
Load the bundled BIDIRECTIONAL 158 <-> 140 neighbourhood crosswalk
morie_to_neighbourhoods()
Load a Toronto neighbourhood polygon layer
morie_tolerance_limits()
Distribution-free (Wilks) tolerance limits
morie_toronto_neighbourhoods
Toronto neighbourhood boundary versions
morie_tps_add_hood_140_from_158()
Add an equivalent HOOD_140 column to a HOOD_158-keyed data.frame
morie_tps_add_hood_158_from_140()
Add an equivalent HOOD_158 column to a HOOD_140-keyed data.frame
morie_tps_aggregate_158_to_140()
Aggregate per-158 counts to per-140 counts (EXACT for pure cake-cuts)
morie_tps_analyze
RichResult-emitting analyses for the 13 TPS crime datasets
morie_tps_analyze_all()
Run the full TPS analysis bundle across many TPS data.frames
morie_tps_analyze_assault() morie_tps_analyze_autotheft() morie_tps_analyze_bicycletheft() morie_tps_analyze_breakandenter() morie_tps_analyze_communitysafetyindicators() morie_tps_analyze_hatecrimes() morie_tps_analyze_homicides() morie_tps_analyze_intimatepartnerandfamilyviolence() morie_tps_analyze_neighbourhoodcrimerates() morie_tps_analyze_robbery() morie_tps_analyze_shootingandfirearmdiscarges() morie_tps_analyze_theftfrommovingvehicle() morie_tps_analyze_theftover()
Convenience alias: full TPS bundle on the Assault dataset.
morie_tps_analyze_csi_from_dataframes()
Toronto CSI per-year + per-ward from a named list of TPS data.frames
morie_tps_analyze_one()
Run the standard TPS analysis bundle on one data.frame
morie_tps_arima_forecast()
ARIMA(1,1,1) monthly-count forecast
morie_tps_assert_hood_version()
Assert the HOOD_* schema version of a TPS data.frame
morie_tps_available_formats()
List of formats this build can actually load.
morie_tps_bivariate_moran()
Bivariate Moran's I between two attributes at the same polygons
morie_tps_bivariate_morans_i()
Bivariate Moran's I between two TPS categories
morie_tps_category_correlation_matrix()
Pearson correlation across TPS categories' per-hood counts
morie_tps_changepoint_detection()
Pettitt-style change-point on yearly incident counts
morie_tps_compare_hawkes_kernels()
Compare Hawkes models across kernel x baseline combinations
morie_tps_composite_index()
Composite per-neighbourhood crime-risk index across TPS categories
morie_tps_crime_compare()
Compare counts and trends across multiple TPS categories
morie_tps_criminal_network_graph()
Premise x neighbourhood co-occurrence network
morie_tps_csi_per_neighbourhood()
CSI per neighbourhood (HOOD_158)
morie_tps_csi_per_year()
Toronto CSI per fiscal year from per-category counts
morie_tps_csi_weight()
Return the CSI weight for a TPS open-data category.
morie_tps_data_dir()
Default project data directory for TPS open data.
morie_tps_dbscan_clusters()
DBSCAN density clusters on lat/long
morie_tps_disaggregate_140_to_158()
Disaggregate per-140 counts to per-158 counts (uniform-density)
morie_tps_district_for_centroid()
Return the pre-1998 borough name for a (lat, lon) centroid
morie_tps_fetch_category()
Fetch one TPS category as a CSV, paging until exhausted.
morie_tps_fetch_dataframe()
Fetch a TPS category and return it as a data.frame.
morie_tps_fokker_planck_grid()
1-D Fokker-Planck density evolution under OU drift+diffusion
morie_tps_getis_ord_g_star()
Local Getis-Ord Gi* statistic per neighbourhood
morie_tps_gini_concentration()
Gini coefficient of a numeric vector
morie_tps_hawkes_advanced
Non-stationary Hawkes with non-exponential kernels (R port)
morie_tps_hawkes_advanced_fit()
Fit a single (kernel, baseline) Hawkes specification
morie_tps_hawkes_markovian_vs_nonmarkovian()
Focused 2x2 Markovian vs non-Markovian Hawkes comparison
morie_tps_hawkes_temporal_fit()
Temporal exponential-kernel Hawkes fit
morie_tps_inspection_game_phase()
Helbing-Szolnoki inspection-game phase diagram
morie_tps_kde_density()
2-D kernel density estimate of geocoded incidents
morie_tps_langevin_simulate()
Euler-Maruyama Ornstein-Uhlenbeck simulation
morie_tps_layer_urls() MORIE_TPS_LAYER_URLS
TPS ArcGIS layer URLs known to MORIE
morie_tps_levy_flight_alpha()
Levy-flight tail exponent on consecutive-incident steps
morie_tps_list_categories()
List TPS categories known to the fetcher.
morie_tps_list_datasets()
List all TPS datasets as a data.frame.
morie_tps_list_formats()
Map TPS format name -> path of the file that would be loaded.
morie_tps_load()
Load TPS dataset name in the given format.
morie_tps_load_dataset()
Load one TPS dataset by category name (CSV thin path).
morie_tps_local_morans_i()
LISA – local Moran's Ii per neighbourhood
morie_tps_lotka_volterra_police_crime()
Lotka-Volterra predator-prey on yearly crime counts
morie_tps_moran_sweep_heatmap()
Sweep polygon Moran's I across (category x year)
morie_tps_morans_i_neighbourhood()
Global Moran's I on neighbourhood-level incident counts
morie_tps_neighbourhood_concentration()
How concentrated is crime across Toronto's 158 neighbourhoods?
morie_tps_offence_summary()
Offence-distribution rollup for a TPS crime data.frame
morie_tps_polygon_morans_i()
Polygon-aware Moran's I on a value column
morie_tps_pretty_label()
Convert a SQL-style column name to a prose label
morie_tps_project_xy()
Project (lat, lon) to rotated planar kilometres
morie_tps_psdp_layers()
List the TPS PSDP layers wrapped by morie
morie_tps_render
Toronto Police Service map rendering (R-side)
morie_tps_render_choropleth()
Polygon choropleth map for Toronto (158 wards)
morie_tps_render_dbscan()
DBSCAN cluster figure on TPS-projected points
morie_tps_render_district_proportional()
District-level proportional-symbol map
morie_tps_render_points()
Render a TPS point-pattern map (incident dots, optional DBSCAN)
morie_tps_render_quad()
Four-panel composite of TPS rendering primitives
morie_tps_render_satscan_panel()
SaTScan-style spatial scan panel
morie_tps_render_yearly_grid()
Small-multiples panel of per-year TPS choropleths
morie_tps_resolve_hood_col()
Resolve which HOOD_* column to use on a TPS crime data.frame
morie_tps_ripley_k()
Ripley's K function at multiple radii
morie_tps_sarima_forecast()
Seasonal ARIMA forecast on monthly incident counts
morie_tps_sdb_reaction_diffusion()
Short-D'Orsogna-Brantingham 2008 hot-spot PDE
morie_tps_sdb_turing_demo()
Canonical Short-D'Orsogna-Brantingham Turing-pattern demo
morie_tps_seasonal_pattern()
Seasonal / cyclic incident-time patterns
morie_tps_spatial_summary()
Spatial rollup for a TPS crime data.frame
morie_tps_statphysics
Statistical physics of crime for TPS data
morie_tps_statphysics_analyze_all()
Run all four statistical-physics analyses on a list of categories
morie_tps_stochastic
Stochastic-physics-of-crime analyses for TPS data
morie_tps_temporal
Temporal analyses for TPS crime data
morie_tps_temporal_summary()
Temporal rollup for a TPS crime data.frame
morie_tps_urban_scaling_beta()
Bettencourt urban-scaling exponent across the 158 Toronto wards
morie_tps_use_of_force() morie_tpsuof()
TPS Use-of-Force rate + type distribution
morie_tps_year_over_year_trend()
Year-over-year linear trend on incident counts
morie_tps_year_to_hood_version()
Recommended HOOD_* schema version for a given OCC_YEAR
morie_tps_yoy_panel()
Side-by-side year-over-year panel across TPS categories
morie_transformer_genomic()
Transformer (1-head self-attention) genomic predictor (base R)
morie_tsne_reduction()
t-SNE for non-linear dimension reduction (R parity)
morie_two_sample_coverage()
Two-sample placement coverage (Gibbons Ch 2.11.2)
morie_two_sample_t_test()
Two-sample t-test with tidy output
morie_unobserved_components()
Unobserved-components decomposition (trend + seasonal + irregular)
morie_userguide()
Get path to an MORIE userguide
morie_validate_cpads_data()
Validate a CPADS analysis data frame
morie_validate_outputs_manifest()
Validate outputs manifest structure
morie_van_der_waerden_test()
Van der Waerden two-sample normal-scores location test (Gibbons Ch 8.3.2)
morie_vecm()
Vector error-correction model (VECM)
morie_verify_statistical_output()
Verify that a serialised statistical output meets minimum quality gates
morie_vertex_access_token()
Fetch and cache a Google Cloud access token via gcloud
morie_vertex_ask_gemini()
Send a single-turn prompt to Gemini via Vertex AI
morie_vertex_health_check()
Tiny smoke test for the Vertex AI client
morie_vertex_resolve_config()
Resolve Vertex AI configuration from environment variables
morie_vpd_download_instructions()
Print step-by-step VPD GeoDASH download instructions
morie_wavelet_time_series()
Discrete wavelet decomposition for a time series
morie_weights_bootstrap()
Bootstrap replicate weights (Rao-Wu rescaling within strata).
morie_weights_brr()
Balanced Repeated Replication (BRR) weights.
morie_weights_calibrate_to_totals()
Dispatch helper – calibrate to totals via "raking" or "greg".
morie_weights_combined()
Combined design x nonresponse x post-strat (x trim) pipeline.
morie_weights_deff()
Kish design effect (n / ESS).
morie_weights_design()
Design weights from inclusion probabilities.
morie_weights_detect_extreme()
Detect extreme weights at +/- k * IQR or by absolute percentile.
morie_weights_diagnostics()
Comprehensive weight diagnostics.
morie_weights_ess()
Kish effective sample size: \((\sum w_i)^2 / \sum w_i^2\).
morie_weights_fay_brr()
Fay's BRR weights with perturbation coefficient fay_coefficient in [0,1).
morie_weights_greg()
Generalised regression (GREG) calibration.
morie_weights_jackknife()
Jackknife replicate weights (JK1 delete-1 or JKn stratified delete-n).
morie_weights_multiframe()
Multi-frame (dual-frame) survey weights (Hartley compositing).
morie_weights_nonresponse()
Non-response adjustment within cells.
morie_weights_normalize()
Normalise weights so they sum to n (sample) or N (population).
morie_weights_poststratify()
Post-stratification weight adjustment.
morie_weights_propensity_nonresponse()
Propensity-score non-response weights (logistic).
morie_weights_rake()
Raking calibration (iterative proportional fitting).
morie_weights_replicate_variance()
Variance estimation from replicate estimates.
morie_weights_sdr()
Successive Difference Replication (SDR) weights.
morie_weights_smooth()
Smooth survey weights via shrinkage toward the mean (or log-mean).
morie_weights_trim()
Trim extreme weights at percentile cutpoints.
morie_wilcoxon_power()
Monte-Carlo power of the Wilcoxon signed-rank test (Gibbons Ch 5.7.3)
morie_wilcoxon_signed_rank_test()
Wilcoxon signed-rank test (paired)
morie_write_audit_markdown()
Write a Markdown audit report.
morie_write_synthetic_data()
Write synthetic epidemiology-style data to CSV
morie_xgboost_objective()
XGBoost regularized objective (R parity)
mrm_anova_bonferroni()
One-way ANOVA with pairwise Bonferroni-adjusted t-tests
mrm_anova_oneway()
One-way ANOVA + Tukey HSD post-hoc
mrm_anova_power()
Power of one-way ANOVA given Cohen's f
mrm_arsau
Per-record-type ARSAU analysis pipelines (R-side)
mrm_assumptions_check()
Composite Rubin-style identifiability assumption check
mrm_causal_design()
Designed-experiment convenience wrapper around the morie causal estimator family
mrm_check_balancing()
Composite balance verdict using the Imbens-Rubin %SMD criterion
mrm_check_overlap()
Propensity-score support overlap diagnostic (Cole-Hernan 2008)
mrm_classify_mandela()
Mandela Rules classifier for solitary-confinement placements
mrm_clt_demo()
Central Limit Theorem demonstrator
mrm_design
Experimental-design callables (designexptr-inspired)
mrm_diagnostics
Causal-inference diagnostics (R parity)
mrm_doe
Design-of-Experiments toolkit (R parity)
mrm_factorial_2k()
2^k factorial-design analysis with main effects + interactions
mrm_fractional_factorial()
Fractional 2^(k-p) factorial: main effects + alias structure
mrm_gentrification
Baseline-conditional gentrification coding (MRM primitive)
mrm_gentrification_panel()
Construct a baseline-conditional 3-level gentrification factor
mrm_graeco_latin()
Graeco-Latin square four-way ANOVA (row, col, Latin, Greek)
mrm_kulldorff
Kulldorff space-time scan statistic on TPS event data
mrm_latin_square()
Latin-square three-way ANOVA (row, col, treatment)
mrm_lisa
LISA (Local Indicators of Spatial Association) on polygon-level crime data + per-year polygon Moran's I time series
mrm_mathstats
Mathematical-statistics / simulation / computation toolkit (R parity)
mrm_mc_power()
Empirical Monte-Carlo power
mrm_median_causal_effect()
Median causal effect via 1:1 nearest-neighbour PS matching
mrm_morans_i()
Moran's I statistic for residual spatial autocorrelation
mrm_oneprop_test()
One-proportion test (binomial exact + Wald approximation)
mrm_otis
MRM-framework analyses on Ontario OTIS data
mrm_otis_mandela_spectrum()
Mandela Rules apples-to-apples spectrum on OTIS b01
mrm_otis_mortification_cooccurrence()
Pairwise Cramer's V of OTIS b01 alert columns (mortification proxy)
mrm_otis_placement_concentration()
Per-individual segregation-placement-count concentration on OTIS b09
mrm_otis_region_locality()
OTIS b01 region locality: chi-square + diagonal-share
mrm_otis_seg_duration_km()
Kaplan-Meier survival on OTIS b01 segregation-placement durations
mrm_perm_block()
Block-permutation test for treatment effect
mrm_pit()
Probability Integral Transform (PIT)
mrm_primitives_ordinal
Threshold-specific ordinal-logit primitive (MRM)
mrm_qq_plot()
Q-Q plot coordinates against a reference distribution
mrm_random_latin()
Generate a random k x k Latin square
mrm_rcbd()
Randomised complete block design (RCBD) two-way ANOVA
mrm_response_surface()
Second-order response-surface fit (Box-Wilson 1951)
mrm_samples
Bundled reference data samples and dataset fetchers
mrm_siu
MRM-framework analyses on Ontario SIU (Special Investigations Unit) data
mrm_siu_case_to_decision_km()
KM survival of SIU case-to-decision gap per police service
mrm_siu_outcome_classifier()
Tabulate SIU Director's-decision outcomes
mrm_siu_per_service_rate()
Per-police-service SIU case-rate summary
mrm_spatial_spillover
Spatial Durbin / SAR direct-indirect-total decomposition (MRM primitive)
mrm_spatial_spillover_decomposition()
SDM direct / indirect / total decomposition
mrm_standardised_difference()
Imbens-Rubin standardised %SMD per covariate
mrm_synthetic_area_exposure()
Compute the synthetic exposure offset for each area
mrm_synthetic_exposure
Synthetic small-area-estimated exposure offset (MRM primitive)
mrm_threshold_coefficient()
Extract coefficient(s) for one covariate across all thresholds
mrm_threshold_specific_ordinal()
Fit a threshold-specific cumulative-logit ordinal regression
mrm_tps
MRM-framework analyses on Toronto Police Service (TPS) open data
mrm_tps_kulldorff_scan()
Run a 3-d (lat, lon, time) Kulldorff scan with MC inference
mrm_tps_levy_scaling()
Levy-flight Hill-MLE exponent on TPS inter-incident step lengths
mrm_tps_lisa()
Local Moran's I per polygon + quadrant + 999-permutation significance
mrm_tps_load_hawkes_refit()
Load the precomputed per-category TPS Hawkes refit manifest
mrm_tps_moran_clustering()
Global Moran's I + DBSCAN summary on TPS lat/long event data
mrm_tps_neighbourhood_recurrence_km()
Kaplan-Meier inter-event recurrence on TPS by neighbourhood
mrm_tps_polygon_moran_per_year()
Per-year global Moran's I time series across a polygon surface
mrm_two_treatment_test()
Two-treatment outcome comparison with three assumption regimes
mrm_twoprop_test()
Two-proportion test (chi-square + Fisher exact + Wald)
mrm_uof
Generic Multilevel Reconciliation Methodology (MRM) Use-of-Force callables
mrm_uof_data_quality_audit()
Schema, null, and suspect-value audit
mrm_uof_demographic_disparity()
Demographic disparity in outcome rates with risk-ratio CIs
mrm_uof_force_concentration()
Concentration of UoF incidents across forces / services
mrm_uof_region_locality()
Region-at-time vs region-now locality contingency
mrm_uof_weapon_diversity()
Weapon-by-force contingency test
mrm_uof_yoy_change()
Year-on-year change in incident counts
mrm_var_test()
Chi-square test for variance (Wilks 1962)
n_effective_tests()
Effective number of independent tests from a correlation matrix
n_stat_commands()
Total number of registered commands (excluding aliases)
nested_cross_validate()
Nested cross-validation with inner-loop grid search
normality_suite()
Run a suite of normality tests
number_needed_to_harm()
Number needed to harm (NNH) — sign-reversed NNT
number_needed_to_treat()
Number needed to treat (NNT) = 1 / |RD|
nw_regression()
Nadaraya-Watson kernel regression
odds_ratio()
Odds ratio for a 2x2 table [[a, b], [c, d]]
odds_ratio_table()
Odds-ratio table from a fitted logistic GLM
omega_squared()
Omega-squared — less biased than eta-squared
omitted_variable_bias()
Omitted-variable bias analysis (sensemakr framework)
one_proportion_ztest()
One-sample z-test for a proportion
one_sample_ttest()
One-sample Student's t-test
one_way_anova()
One-way between-subjects ANOVA
or_to_d()
Convert odds ratio to Cohen's d (Hasselblad & Hedges, 1995)
or_to_r()
Convert OR to Pearson r via d
paired_permutation_test()
Paired permutation test (sign-flipping)
paired_ttest()
Paired-sample t-test
parametric_bootstrap()
Parametric bootstrap
partial_correlation()
Partial Pearson correlation controlling for covariates
partial_eta_squared()
Partial eta-squared
pburg()
Burg autoregressive power spectral density
pcgenv()
PCG Shannon-energy envelope
pcgmur()
PCG murmur likelihood score
pcgseg()
PCG S1/S2 heart-sound segmentation
pearson_correlation()
Pearson product-moment correlation
permutation_fdr()
Permutation-based FDR control via empirical null p-value distribution
permutation_fwer()
Permutation-based FWER control via step-down max-T (Westfall-Young)
permutation_test()
Two-sample permutation test
pettitt_changepoint()
Pettitt non-parametric change-point detection
pfd()
Petrosian fractal dimension
ph_assumption_test()
Proportional-hazards assumption test (Schoenfeld-style)
phi_coefficient()
Phi coefficient for a 2x2 contingency table
point_biserial_correlation()
Point-biserial correlation
prediction_interval()
Prediction interval for a new study (random-effects meta)
print(<morie_audit_result>)
Print method for audit results.
print(<morie_tps_result>)
Pretty-print method for morie_tps_result objects.
print(<morie_variable_taxonomy>)
Print method for taxonomy entries.
probabilistic_bias_analysis()
Probabilistic (Monte Carlo) sensitivity analysis
r_effect_size()
Pearson r as an effect size with Fisher-z CI
r_squared()
Coefficient of determination R^2
r_to_d()
Convert Pearson r to Cohen's d
r_to_or()
Convert Pearson r to OR via d
ramsey_reset_test()
Ramsey RESET test for functional-form misspecification
random_effects_meta()
Random-effects (DerSimonian-Laird) meta-analytic pooling
rank_biserial_correlation()
Rank-biserial correlation (matched rank version)
rate_ratio()
Incidence rate ratio (IRR)
register_stat_command()
Register a stat_command in the package-level registry
regression_table()
Side-by-side regression table for multiple model fits
repeated_cv()
Repeated K-fold cross-validation
repeated_measures_anova()
One-way repeated-measures ANOVA
resolve_stat_command()
Resolve a command by canonical name or alias
risk_difference()
Risk difference for a 2x2 table
risk_ratio()
Risk ratio (relative risk) for a 2x2 table
rosenbaum_bounds()
Rosenbaum sensitivity analysis for matched-pair designs
rrint()
RR interval series from R-peak sample indices
run_stat_command()
Run a command's REPL handler with positional/keyword arguments
runs_test()
Wald-Wolfowitz runs test for randomness
sampen()
Sample entropy
score_data_quality()
Multi-dimensional data quality scores
score_test()
Score (Lagrange multiplier) test
semi_partial_correlation()
Semi-partial (part) correlation
sensitivity
Sensitivity analysis for causal inference assumptions
sensitivity_rosenbaum()
Rosenbaum bounds sensitivity analysis (data-frame interface)
sensitivity_summary()
Generate a comprehensive sensitivity-analysis summary
sgolay()
Savitzky-Golay smoothing (direct alias)
sidak()
Sidak FWER correction
silverman_bandwidth()
Silverman rule-of-thumb bandwidth
simes_combined()
Simes test for the global null
spearman_correlation()
Spearman rank correlation
specification_curve()
Specification curve analysis
standardized_coefficients()
Standardised regression coefficients (beta weights)
stat_bridge_exec()
Execute a single command and return the resulting text
stat_bridge_fn_info()
Inspect a single command by name
stat_bridge_fn_search()
Search the registry for matching commands
stat_bridge_help()
Formatted text dump of the command registry
stat_bridge_main()
Command-line dispatcher
stat_bridge_registry_json()
JSON enumeration of all registered commands
stat_bridge_verify()
Self-test enumeration helper
stat_command()
Construct a stat_command entry
statistics
Comprehensive hypothesis testing suite for epidemiological research
storey_q()
Storey q-value procedure (adaptive FDR)
stouffer_combined()
Stouffer's z-score method
subsampling()
Subsampling inference (Politis, Romano & Wolf)
substance_categories
Substance Categories
summary_statistics_table()
Descriptive statistics for a set of variables
table1()
Table 1 (baseline characteristics) stratified by group
tables_pub
Publication-ready table generation
temporal_validate()
Train on earlier data, test on later data
tippett_combined()
Tippett's minimum-p method
tipping_point_analysis()
Tipping-point analysis for missing-data sensitivity
tps_crime
Cross-category crime analyses for Toronto Police Service (TPS) datasets
tps_csi
Statistics Canada Crime Severity Index (CSI) weights for TPS data
tps_spatial
Spatial analyses for TPS crime data
tps_spatial_advanced
Heavyweight spatial statistics for TPS data
treatment_effect_table()
Summary table of causal effect estimates from multiple estimators
two_proportion_ztest()
Two-sample z-test for the difference in proportions
two_sample_ttest()
Independent two-sample t-test (equal or unequal variance)
two_way_anova()
Two-way factorial ANOVA (Type-II SS)
validate_schema()
Validate a data frame against a list of column rules
validation
Data and model validation framework
morie_datasets_vancouver_graffiti() morie_datasets_vancouver_noise_control_areas() morie_datasets_vancouver_homeless_shelters() morie_datasets_vancouver_property_use_inspection_districts() morie_datasets_vancouver_fire_halls() morie_datasets_vancouver_community_centres() morie_datasets_vancouver_community_food_markets() morie_datasets_vancouver_disability_parking() morie_datasets_vancouver_public_art()
Bundled Vancouver Open Data crime-adjacent civic datasets
vargha_delaney_a()
Vargha-Delaney A statistic
variable_taxonomy
Per-variable taxonomy + dispatcher (R mirror of morie.variable_taxonomy)
variance_equality_suite()
Run a suite of homogeneity-of-variance tests
variance_ratio()
Variance ratio (F-test for equality of variances)
wald_test()
Wald test for linear restrictions on parameters
welch()
Welch power spectral density
welch_ttest()
Welch's t-test (convenience wrapper)
wilcoxon_signed_rank()
Wilcoxon signed-rank test (one-sample or paired)
wild_bootstrap()
Wild bootstrap for linear regression with heteroskedasticity