Package: geocausal 0.3.4

geocausal: Causal Inference with Spatio-Temporal Data

Spatio-temporal causal inference based on point process data. You provide the raw data of locations and timings of treatment and outcome events, specify counterfactual scenarios, and the package estimates causal effects over specified spatial and temporal windows. See Papadogeorgou, et al. (2022) <doi:10.1111/rssb.12548> and Mukaigawara, et al. (2024) <doi:10.31219/osf.io/5kc6f>.

Authors:Mitsuru Mukaigawara [cre, aut], Lingxiao Zhou [aut], Georgia Papadogeorgou [aut], Jason Lyall [aut], Kosuke Imai [aut]

geocausal_0.3.4.tar.gz
geocausal_0.3.4.zip(r-4.5)geocausal_0.3.4.zip(r-4.4)geocausal_0.3.4.zip(r-4.3)
geocausal_0.3.4.tgz(r-4.5-any)geocausal_0.3.4.tgz(r-4.4-any)geocausal_0.3.4.tgz(r-4.3-any)
geocausal_0.3.4.tar.gz(r-4.5-noble)geocausal_0.3.4.tar.gz(r-4.4-noble)
geocausal_0.3.4.tgz(r-4.4-emscripten)geocausal_0.3.4.tgz(r-4.3-emscripten)
geocausal.pdf |geocausal.html
geocausal/json (API)
NEWS

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

Bug tracker:https://github.com/mmukaigawara/geocausal/issues

Datasets:

On CRAN:

Conda:

5.77 score 45 stars 327 downloads 25 exports 107 dependencies

Last updated 11 days agofrom:6e7c4748ee. Checks:9 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 20 2025
R-4.5-winOKMar 20 2025
R-4.5-macOKMar 20 2025
R-4.5-linuxOKMar 20 2025
R-4.4-winOKMar 20 2025
R-4.4-macOKMar 20 2025
R-4.4-linuxOKMar 20 2025
R-4.3-winOKMar 20 2025
R-4.3-macOKMar 20 2025

Exports:conv_owin_into_sfget_base_densget_categet_cf_densget_cf_sum_log_intensget_dist_focusget_dist_lineget_distexpget_elevget_em_vecget_estget_estimatesget_hfrget_histget_obs_densget_power_densget_var_boundget_weighted_surfget_windowimls_to_arrpixel_count_ppppredict_obs_denssim_cf_denssim_power_denssmooth_ppp

Dependencies:abindbackportsbootbroomcarcarDataclassclassIntclicodetoolscolorspacecorrplotcowplotcpp11data.tableDBIdeldirDerivdigestdoBydplyre1071fansifarverFormulafurrrfuturegenericsggplot2ggpubrggrepelggsciggsignifglobalsgluegoftestgridExtragtableisobandKernSmoothlabelinglatex2explatticelifecyclelistenvlme4magrittrMASSMatrixMatrixModelsmclustmgcvmicrobenchmarkminqamodelrmunsellnlmenloptrnnetnumDerivparallellypbkrtestpillarpkgconfigpolyclippolynomprogressrproxypurrrquantregR6rbibutilsRColorBrewerRcppRcppEigenRdpackreformulasrlangrpartrstatixs2scalessfSparseMspatstat.dataspatstat.explorespatstat.geomspatstat.modelspatstat.randomspatstat.sparsespatstat.univarspatstat.utilsstringistringrsurvivaltensorterratibbletidyrtidyselecttidyterraunitsutf8vctrsviridisLitewithrwk

Readme and manuals

Help Manual

Help pageTopics
airstrikesairstrikes
airstrikes_baseairstrikes_base
Convert windows into sf objectsconv_owin_into_sf
Get the baseline densityget_base_dens
Generate a Hajek estimator for heterogeneity analysisget_cate
Get counterfactual densitiesget_cf_dens
Calculate the log counterfactual densitiesget_cf_sum_log_intens
Get distance mapsget_dist_focus
Get distance maps from lines and polygonsget_dist_line
Get the expectation of treatment events with arbitrary distancesget_distexp
Get elevation dataget_elev
convert a list of im objects to a vectorget_em_vec
Get causal estimates comparing two scenariosget_est
Generate a Hajek estimatorget_estimates
Create a hyperframeget_hfr
Obtain histories of treatment or outcome eventsget_hist
Generate observed densitiesget_obs_dens
Get power densitiesget_power_dens
Calculate variance upper boundsget_var_bound
Generate average weighted surfacesget_weighted_surf
Generate a windowget_window
convert a list of im objects to a three-dimensional arrayimls_to_arr
insurgenciesinsurgencies
iraq_windowiraq_window
Get number of events in a pixelpixel_count_ppp
Plot estimated CATEplot.cate
Plot simulated counterfactual densitiesplot.cflist
Plot distance-based expectationsplot.distlist
Plot estimatesplot.est
Plot estimatesplot.hyperframe
Plot implot.im
Plot im objects (list)plot.imlist
Plot listsplot.list
Plot observed densitiesplot.obs
Plot simulated power densitiesplot.powerlist
Plot point pattern (list)plot.ppplist
Plot weightsplot.weights
Perform out-of-sample predictionpredict_obs_dens
Print resultsprint.cate
Print resultsprint.est
Simulate counterfactual densitiessim_cf_dens
Simulate power densitiessim_power_dens
Smooth outcome eventssmooth_ppp
Summarize resultssummary.cate
Summarize resultssummary.est
Summarize resultssummary.obs