Learn R Programming

⚠️There's a newer version (0.3.3.1) of this package.Take me there.

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.2.1

License

GPL-3

Maintainer

Bruno Castanho Silva

Last Published

June 9th, 2022

Functions in SCtools (0.3.2.1)

multiple.synth

Function to Apply Synthetic Controls to Multiple Treated Units
alcohol

World Alcohol per Capita Consumption
is_tdf_multi

Test if the object is a tdf_multi object
generate.placebos

Function to generate placebo synthetic controls
SCtools-package

SCTools: Tools for Synthetic Control Methods
mspe.plot

Plot the post/pre-treatment MSPE ratio
is_tdf

Test if the object is a tdf object
mspe.test

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

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

Function to plot placebos of a synthetic control analysis
synth.data

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