Skip to main content
Ctrl+K
CausalPy 0.4.0 documentation - Home
0.4.0
  • Knowledge base
  • API
  • How-to
  • About PyMC Labs
  • Knowledge base
  • API
  • How-to
  • About PyMC Labs

Section Navigation

  • data
    • datasets
      • load_data
    • simulate_data
      • create_series
      • generate_ancova_data
      • generate_did
      • generate_geolift_data
      • generate_multicell_geolift_data
      • generate_regression_discontinuity_data
      • generate_seasonality
      • generate_synthetic_control_data
      • generate_time_series_data
      • generate_time_series_data_seasonal
      • generate_time_series_data_simple
      • periodic_kernel
  • pymc_models
    • InstrumentalVariableRegression
      • InstrumentalVariableRegression.__init__
      • InstrumentalVariableRegression.add_coord
      • InstrumentalVariableRegression.add_coords
      • InstrumentalVariableRegression.add_named_variable
      • InstrumentalVariableRegression.build_model
      • InstrumentalVariableRegression.calculate_cumulative_impact
      • InstrumentalVariableRegression.calculate_impact
      • InstrumentalVariableRegression.check_start_vals
      • InstrumentalVariableRegression.compile_d2logp
      • InstrumentalVariableRegression.compile_dlogp
      • InstrumentalVariableRegression.compile_fn
      • InstrumentalVariableRegression.compile_logp
      • InstrumentalVariableRegression.create_value_var
      • InstrumentalVariableRegression.d2logp
      • InstrumentalVariableRegression.debug
      • InstrumentalVariableRegression.dlogp
      • InstrumentalVariableRegression.eval_rv_shapes
      • InstrumentalVariableRegression.fit
      • InstrumentalVariableRegression.initial_point
      • InstrumentalVariableRegression.logp
      • InstrumentalVariableRegression.logp_dlogp_function
      • InstrumentalVariableRegression.make_obs_var
      • InstrumentalVariableRegression.name_for
      • InstrumentalVariableRegression.name_of
      • InstrumentalVariableRegression.point_logps
      • InstrumentalVariableRegression.predict
      • InstrumentalVariableRegression.print_coefficients
      • InstrumentalVariableRegression.profile
      • InstrumentalVariableRegression.register_data_var
      • InstrumentalVariableRegression.register_rv
      • InstrumentalVariableRegression.replace_rvs_by_values
      • InstrumentalVariableRegression.sample_predictive_distribution
      • InstrumentalVariableRegression.score
      • InstrumentalVariableRegression.set_data
      • InstrumentalVariableRegression.set_dim
      • InstrumentalVariableRegression.set_initval
      • InstrumentalVariableRegression.shape_from_dims
      • InstrumentalVariableRegression.to_graphviz
      • InstrumentalVariableRegression.update_start_vals
    • LinearRegression
      • LinearRegression.__init__
      • LinearRegression.add_coord
      • LinearRegression.add_coords
      • LinearRegression.add_named_variable
      • LinearRegression.build_model
      • LinearRegression.calculate_cumulative_impact
      • LinearRegression.calculate_impact
      • LinearRegression.check_start_vals
      • LinearRegression.compile_d2logp
      • LinearRegression.compile_dlogp
      • LinearRegression.compile_fn
      • LinearRegression.compile_logp
      • LinearRegression.create_value_var
      • LinearRegression.d2logp
      • LinearRegression.debug
      • LinearRegression.dlogp
      • LinearRegression.eval_rv_shapes
      • LinearRegression.fit
      • LinearRegression.initial_point
      • LinearRegression.logp
      • LinearRegression.logp_dlogp_function
      • LinearRegression.make_obs_var
      • LinearRegression.name_for
      • LinearRegression.name_of
      • LinearRegression.point_logps
      • LinearRegression.predict
      • LinearRegression.print_coefficients
      • LinearRegression.profile
      • LinearRegression.register_data_var
      • LinearRegression.register_rv
      • LinearRegression.replace_rvs_by_values
      • LinearRegression.score
      • LinearRegression.set_data
      • LinearRegression.set_dim
      • LinearRegression.set_initval
      • LinearRegression.shape_from_dims
      • LinearRegression.to_graphviz
      • LinearRegression.update_start_vals
    • PropensityScore
      • PropensityScore.__init__
      • PropensityScore.add_coord
      • PropensityScore.add_coords
      • PropensityScore.add_named_variable
      • PropensityScore.build_model
      • PropensityScore.calculate_cumulative_impact
      • PropensityScore.calculate_impact
      • PropensityScore.check_start_vals
      • PropensityScore.compile_d2logp
      • PropensityScore.compile_dlogp
      • PropensityScore.compile_fn
      • PropensityScore.compile_logp
      • PropensityScore.create_value_var
      • PropensityScore.d2logp
      • PropensityScore.debug
      • PropensityScore.dlogp
      • PropensityScore.eval_rv_shapes
      • PropensityScore.fit
      • PropensityScore.initial_point
      • PropensityScore.logp
      • PropensityScore.logp_dlogp_function
      • PropensityScore.make_obs_var
      • PropensityScore.name_for
      • PropensityScore.name_of
      • PropensityScore.point_logps
      • PropensityScore.predict
      • PropensityScore.print_coefficients
      • PropensityScore.profile
      • PropensityScore.register_data_var
      • PropensityScore.register_rv
      • PropensityScore.replace_rvs_by_values
      • PropensityScore.score
      • PropensityScore.set_data
      • PropensityScore.set_dim
      • PropensityScore.set_initval
      • PropensityScore.shape_from_dims
      • PropensityScore.to_graphviz
      • PropensityScore.update_start_vals
    • PyMCModel
      • PyMCModel.__init__
      • PyMCModel.add_coord
      • PyMCModel.add_coords
      • PyMCModel.add_named_variable
      • PyMCModel.build_model
      • PyMCModel.calculate_cumulative_impact
      • PyMCModel.calculate_impact
      • PyMCModel.check_start_vals
      • PyMCModel.compile_d2logp
      • PyMCModel.compile_dlogp
      • PyMCModel.compile_fn
      • PyMCModel.compile_logp
      • PyMCModel.create_value_var
      • PyMCModel.d2logp
      • PyMCModel.debug
      • PyMCModel.dlogp
      • PyMCModel.eval_rv_shapes
      • PyMCModel.fit
      • PyMCModel.initial_point
      • PyMCModel.logp
      • PyMCModel.logp_dlogp_function
      • PyMCModel.make_obs_var
      • PyMCModel.name_for
      • PyMCModel.name_of
      • PyMCModel.point_logps
      • PyMCModel.predict
      • PyMCModel.print_coefficients
      • PyMCModel.profile
      • PyMCModel.register_data_var
      • PyMCModel.register_rv
      • PyMCModel.replace_rvs_by_values
      • PyMCModel.score
      • PyMCModel.set_data
      • PyMCModel.set_dim
      • PyMCModel.set_initval
      • PyMCModel.shape_from_dims
      • PyMCModel.to_graphviz
      • PyMCModel.update_start_vals
    • WeightedSumFitter
      • WeightedSumFitter.__init__
      • WeightedSumFitter.add_coord
      • WeightedSumFitter.add_coords
      • WeightedSumFitter.add_named_variable
      • WeightedSumFitter.build_model
      • WeightedSumFitter.calculate_cumulative_impact
      • WeightedSumFitter.calculate_impact
      • WeightedSumFitter.check_start_vals
      • WeightedSumFitter.compile_d2logp
      • WeightedSumFitter.compile_dlogp
      • WeightedSumFitter.compile_fn
      • WeightedSumFitter.compile_logp
      • WeightedSumFitter.create_value_var
      • WeightedSumFitter.d2logp
      • WeightedSumFitter.debug
      • WeightedSumFitter.dlogp
      • WeightedSumFitter.eval_rv_shapes
      • WeightedSumFitter.fit
      • WeightedSumFitter.initial_point
      • WeightedSumFitter.logp
      • WeightedSumFitter.logp_dlogp_function
      • WeightedSumFitter.make_obs_var
      • WeightedSumFitter.name_for
      • WeightedSumFitter.name_of
      • WeightedSumFitter.point_logps
      • WeightedSumFitter.predict
      • WeightedSumFitter.print_coefficients
      • WeightedSumFitter.profile
      • WeightedSumFitter.register_data_var
      • WeightedSumFitter.register_rv
      • WeightedSumFitter.replace_rvs_by_values
      • WeightedSumFitter.score
      • WeightedSumFitter.set_data
      • WeightedSumFitter.set_dim
      • WeightedSumFitter.set_initval
      • WeightedSumFitter.shape_from_dims
      • WeightedSumFitter.to_graphviz
      • WeightedSumFitter.update_start_vals
  • skl_models
    • create_causalpy_compatible_class
    • ScikitLearnAdaptor
      • ScikitLearnAdaptor.__init__
      • ScikitLearnAdaptor.calculate_cumulative_impact
      • ScikitLearnAdaptor.calculate_impact
      • ScikitLearnAdaptor.get_coeffs
      • ScikitLearnAdaptor.print_coefficients
    • WeightedProportion
      • WeightedProportion.__init__
      • WeightedProportion.calculate_cumulative_impact
      • WeightedProportion.calculate_impact
      • WeightedProportion.fit
      • WeightedProportion.get_coeffs
      • WeightedProportion.get_metadata_routing
      • WeightedProportion.get_params
      • WeightedProportion.loss
      • WeightedProportion.predict
      • WeightedProportion.print_coefficients
      • WeightedProportion.score
      • WeightedProportion.set_params
      • WeightedProportion.set_score_request
  • experiments
    • base
      • BaseExperiment
        • BaseExperiment.__init__
        • BaseExperiment.bayesian_plot
        • BaseExperiment.ols_plot
        • BaseExperiment.plot
        • BaseExperiment.print_coefficients
    • diff_in_diff
      • DifferenceInDifferences
        • DifferenceInDifferences.__init__
        • DifferenceInDifferences.bayesian_plot
        • DifferenceInDifferences.input_validation
        • DifferenceInDifferences.ols_plot
        • DifferenceInDifferences.plot
        • DifferenceInDifferences.print_coefficients
        • DifferenceInDifferences.summary
    • instrumental_variable
      • InstrumentalVariable
        • InstrumentalVariable.__init__
        • InstrumentalVariable.bayesian_plot
        • InstrumentalVariable.get_2SLS_fit
        • InstrumentalVariable.get_naive_OLS_fit
        • InstrumentalVariable.input_validation
        • InstrumentalVariable.ols_plot
        • InstrumentalVariable.plot
        • InstrumentalVariable.print_coefficients
        • InstrumentalVariable.summary
    • inverse_propensity_weighting
      • InversePropensityWeighting
        • InversePropensityWeighting.__init__
        • InversePropensityWeighting.bayesian_plot
        • InversePropensityWeighting.get_ate
        • InversePropensityWeighting.input_validation
        • InversePropensityWeighting.make_doubly_robust_adjustment
        • InversePropensityWeighting.make_overlap_adjustments
        • InversePropensityWeighting.make_raw_adjustments
        • InversePropensityWeighting.make_robust_adjustments
        • InversePropensityWeighting.ols_plot
        • InversePropensityWeighting.plot
        • InversePropensityWeighting.plot_ate
        • InversePropensityWeighting.plot_balance_ecdf
        • InversePropensityWeighting.print_coefficients
        • InversePropensityWeighting.weighted_percentile
    • prepostfit
      • InterruptedTimeSeries
        • InterruptedTimeSeries.__init__
        • InterruptedTimeSeries.bayesian_plot
        • InterruptedTimeSeries.input_validation
        • InterruptedTimeSeries.ols_plot
        • InterruptedTimeSeries.plot
        • InterruptedTimeSeries.print_coefficients
        • InterruptedTimeSeries.summary
      • PrePostFit
        • PrePostFit.__init__
        • PrePostFit.bayesian_plot
        • PrePostFit.input_validation
        • PrePostFit.ols_plot
        • PrePostFit.plot
        • PrePostFit.print_coefficients
        • PrePostFit.summary
      • SyntheticControl
        • SyntheticControl.__init__
        • SyntheticControl.bayesian_plot
        • SyntheticControl.input_validation
        • SyntheticControl.ols_plot
        • SyntheticControl.plot
        • SyntheticControl.print_coefficients
        • SyntheticControl.summary
    • prepostnegd
      • PrePostNEGD
        • PrePostNEGD.__init__
        • PrePostNEGD.bayesian_plot
        • PrePostNEGD.input_validation
        • PrePostNEGD.ols_plot
        • PrePostNEGD.plot
        • PrePostNEGD.print_coefficients
        • PrePostNEGD.summary
    • regression_discontinuity
      • RegressionDiscontinuity
        • RegressionDiscontinuity.__init__
        • RegressionDiscontinuity.bayesian_plot
        • RegressionDiscontinuity.input_validation
        • RegressionDiscontinuity.ols_plot
        • RegressionDiscontinuity.plot
        • RegressionDiscontinuity.print_coefficients
        • RegressionDiscontinuity.summary
    • regression_kink
      • RegressionKink
        • RegressionKink.__init__
        • RegressionKink.bayesian_plot
        • RegressionKink.input_validation
        • RegressionKink.ols_plot
        • RegressionKink.plot
        • RegressionKink.print_coefficients
        • RegressionKink.summary
  • API

API#

Modules#

data

Code for loading datasets.

pymc_models

Custom PyMC models for causal inference

skl_models

Custom scikit-learn models for causal inference

experiments

On this page
  • Modules
Edit on GitHub
Show Source
Consulting and training

© Copyright 2024, PyMC Labs.

  • Twitter
  • Github
  • LinkedIn
  • YouTube
  • Meetup
  • Contact