Learn R Programming

SCtools

This package is a work in progress compiling functions to make it easier running placebo in space tests with synthetic control models and SCM with multiple treated units. It relies heavily on the ‘Synth’ package.

You can install it on CRAN with:

install.packages("SCtools")

You can install it with ‘devtools’.

library(devtools)

install_github("bcastanho/SCtools")

Or with the ‘remotes’ package

library(remotes)
install_github("bcastanho/SCtools")

Please note that the ‘SCtools’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Copy Link

Version

Install

install.packages('SCtools')

Monthly Downloads

542

Version

0.3.3.1

License

GPL-3

Maintainer

Bruno Castanho Silva

Last Published

January 27th, 2025

Functions in SCtools (0.3.3.1)

is_tdf_multi

Test if the object is a tdf_multi object
SCtools-package

SCTools: Tools for Synthetic Control Methods
is_tdf

Test if the object is a tdf object
multiple.synth

Function to Apply Synthetic Controls to Multiple Treated Units
plot_placebos

Function to plot placebos of a synthetic control analysis
generate.placebos

Function to generate placebo synthetic controls
alcohol

World Alcohol per Capita Consumption
mspe.test

Function to compute the post/pre treatment MSPE ratio for the treated unit and placebos
mspe.plot

Plot the post/pre-treatment MSPE ratio
plac.dist

Plot the distribution of placebo samples for synthetic control analysis with multiple treated units.
synth.data

Synth Data Synthetic data that can be used to explore SCtools.