Package: causalgenerics 0.1.0.9000

Malcolm Barrett

causalgenerics: Shared Generics for the 'r-causal' Ecosystem

A home for the S3 generics shared across the 'r-causal' ecosystem, including 'propensity', 'halfmoon', 'positively', and 'balancing'. Owning the generic definitions in one place lets those packages register methods without masking one another when several are attached at once. The generics cover inverse probability weighted estimation, effective sample size, and the metadata carried by causal weight vectors, and the package supplies the abstract causal weight class and the result class those estimates are returned in, together with the methods both classes carry, so that the ecosystem packages inherit them rather than writing their own. The design follows that of the 'generics' package, which provides commonly used S3 generics for the same purpose: letting packages share a single definition instead of each defining its own.

Authors:Malcolm Barrett [aut, cre, cph]

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

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

Bug tracker:https://github.com/r-causal/causalgenerics/issues

Pkgdown/docs site:https://r-causal.github.io

On CRAN:

Conda:

4.65 score 1 stars 5 packages 3 scripts 245 downloads 22 exports 5 dependencies

Last updated from:7a98f37cc6. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK131
source / vignettesOK187
linux-releaseOK127
macos-releaseOK93
macos-oldrelOK105
windows-develOK109
windows-releaseOK76
windows-oldrelOK274
wasm-releaseOK98

Exports:as_conditionalas_marginalcausal_wts_ptype2check_forced_typedetect_exposure_typeessestimandestimand<-has_two_levelsipwis_categoricalis_causal_wtis_joint_exposurejoint_componentsjoint_exposurejoint_referencematch_exposure_typenew_causal_wtsnew_ipwnew_ipw_modelobserved_valuespool_ipw

Dependencies:cligluelifecyclerlangvctrs

Readme and manuals

Help Manual

Help pageTopics
Common type of two causal weight vectors of the same classcausal_wts_ptype2
Causal weight accessorscausal-weights estimand estimand<- is_causal_wt
Refuse an exposure type the data cannot carrycheck_forced_type
Detect the type of an exposuredetect_exposure_type
Effective sample sizeess ess.default
Read the values an exposure takesexposure-type-helpers has_two_levels is_categorical observed_values
Inverse probability weighted estimationipw
Model accessors for an inverse probability weighted resultcoef.ipw confint.ipw df.residual.ipw estimand.ipw ipw-accessors model.frame.ipw nobs.ipw vcov.ipw weights.ipw
The presentation mode of an inverse probability weighted resultas_conditional as_marginal ipw-modes
Methods for a pooled inverse probability weighted resultas.data.frame.ipw_pooled coef.ipw_pooled confint.ipw_pooled estimand.ipw_pooled ipw-pooled-methods nobs.ipw_pooled print.ipw_pooled vcov.ipw_pooled
Declare an exposure that crosses two treatmentsjoint_exposure
Read the declaration a joint exposure carriesis_joint_exposure joint-exposure-accessors joint_components joint_reference
Resolve the exposure type a function will work onmatch_exposure_type
Construct a causal weight vectornew_causal_wts
Construct an inverse probability weighted resultas.data.frame.ipw new_ipw print.ipw
Attach a corrected covariance to a component model of an IPW fitnew_ipw_model vcov.ipw_model
Pool inverse probability weighted results over multiply imputed datapool_ipw