Diving deeper into Causal Analysis

Practice session covering topics …..

Luisa M. Mimmi, M.P.P.  |  Independent consultant

August 27, 2024

GOAL OF TODAY’S PRACTICE SESSION

  • ……



The examples and datasets in this Lab session follow very closely two sources:

  1. ….
  2. ….

R ENVIRONMENT SET UP & DATA

Needed R Packages

  • We will use functions from packages base, utils, and stats (pre-installed and pre-loaded)
  • We may also use the packages below (specifying package::function for clarity).
# Load pckgs for this R session

# --- General 
library(here)     # tools find your project's files, based on working directory
library(dplyr)    # A Grammar of Data Manipulation
library(skimr)    # Compact and Flexible Summaries of Data
library(magrittr) # A Forward-Pipe Operator for R 
library(readr)    # A Forward-Pipe Operator for R 

# Plotting & data visualization
library(ggplot2)      # Create Elegant Data Visualisations Using the Grammar of Graphics
library(ggfortify)     # Data Visualization Tools for Statistical Analysis Results
library(scatterplot3d) # 3D Scatter Plot

# --- Statistics
library(MASS)       # Support Functions and Datasets for Venables and Ripley's MASS
library(factoextra) # Extract and Visualize the Results of Multivariate Data Analyses
library(FactoMineR) # Multivariate Exploratory Data Analysis and Data Mining
library(rstatix)    # Pipe-Friendly Framework for Basic Statistical Tests

# --- Tidymodels (meta package)
library(rsample)    # General Resampling Infrastructure  
library(broom)      # Convert Statistical Objects into Tidy Tibbles

TO DO

RIMESCOLARE LA LEZ 3 CON QUESTO https://gabors-data-analysis.com/images/slides-public/da-public-slides-ch19-v3-2023.pdf

DATASETS for today


In this tutorial, we will use:

  • …….

Dataset on ….

Name: …. Documentation: …. Sampling details: ….

Importing Dataset ....

.

  • The data can be interactively obtained form the MASS R package
# (after loading pckg)
# library(MASS)  

# I can call 
# utils::data(biopsy)

We define:

  • the individual treatment effect
  • the average treatment effect
  • and the average treatment effect on the treated

Final thoughts

  • …..