Coder Social home page Coder Social logo

rhcw's Introduction

The R Package of Panel Data Approach for Program Evaluation

Author: Leo Y. Yang [email protected]

This package is used to do the program evaluation using the Panel Data Approach raised by Cheng Hsiao, H. Steve Ching, and Shui Ki Wan (2012), "A panel data approach for program evaluation: measuring the benefits of political and economic integration of Hong kong with mainland China", Journal of Applied Econometrics.

Installation

# The development version from GitHub:
# install.packages("devtools")
devtools::install_github("jpshuimu/rhcw")

Data

This package includes the data from Hsiao et.al (2012).

library(rhcw)
data <- hcw_data

head(data)
date Hong Kong Australia Austria Canada Denmark
1993Q1 0.062 0.040 -0.013 0.010 -0.012
1993Q2 0.059 0.038 -0.008 0.021 -0.003
1993Q3 0.058 0.023 0.001 0.019 -0.008

Select Donor Pool

result <- draw_donorpool(data = hcw_data,
 target_name = "Hong Kong",
 donorpool_name = NULL,
 time_name = "date",
 period = 20, 
 nvmax = 6)

Draw the Results

plot_sim_result(result)

plot_delta(result)

Do Placebo Test

placebo_time(result, lead_period = 5)

placebo_unit(result)

rhcw's People

Contributors

leoyyang avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.