Learn R Programming

GPP (version 0.1)

Gaussian Process Projection

Description

Estimates a counterfactual using Gaussian process projection. It takes a dataframe, creates missingness in the desired outcome variable and estimates counterfactual values based on all information in the dataframe. The package writes Stan code, checks it for convergence and adds artificial noise to prevent overfitting and returns a plot of actual values and estimated counterfactual values using r-base plot.

Copy Link

Version

Install

install.packages('GPP')

Monthly Downloads

155

Version

0.1

License

GPL (>= 2)

Maintainer

David Carlson

Last Published

November 27th, 2020

Functions in GPP (0.1)

writeMod

Writes Stan code for GPP model
GPP

Estimates a counterfactual with uncertainty using Gaussian process projection
autoConverge

Checks Stan model for convergence, then runs model on actual data.
plotGPPfit

Plots results of a (converged) model, with true and projected values.
GDPdata

1960-2003 GDP dataset
runMod

Runs the model, given the data and treated case (may be a placebo).