GithubHelp home page GithubHelp logo

zhentaoshi / c-lasso Goto Github PK

View Code? Open in Web Editor NEW
20.0 7.0 66.0 2.83 MB

The replication data and files for Liangjun Su, Zhentao Shi and Peter Phillips (2016, Econometrica): “Identifying Latent Structures in Panel Data”

Home Page: https://zhentaoshi.github.io/C-Lasso/

MATLAB 100.00%
econometrics panel-data big-data

c-lasso's Introduction

C-Lasso

This is the Matlab code for the empirical applications and simulations of

Please contact Zhentao Shi ([email protected]) if you have any question about the code.

R users please check github.com/zhan-gao/classo.

A follow-up paper is composed to further investigate the computational speed of C-Lasso. Please refer to:

Computation Environment

For the Matlab code, CVX must be installed to implement convex optimization. Mosek is recommended to facilitate CVX, but not necessary.

Generic Functions

We add a folder generic_functions for the estimation procedures. The functions are ready to take input and return output.

  • SSP_PLS_est.m is a generic function to implement PLS.
  • PLS_example.m is a minimum example of PLS.

Development Plan after Publication

In response to demand, we may further consider

  • provide user-friendly Matlab interface for general use (currently working under generic_functions)

We welcome interested researchers to develop the code with us.

Note for v1.0: Replication Package

The results in the paper are generated under

CVX must be installed and linked with Matlab, and Mosek is invoked as the solver through the command cvx_solver mosek. Without Mosek, a user can still run the code with CVX if he comments out this line.

The empirical applications can be exactly replicated by the commented master.m in folders

  • app_saving_PLS: for Section 5.1
  • app_saving_PGMM: for Section 5.1
  • app_civil_war: for Section 5.2
  • app_democracy: for Section S4.3

Data are also provided in each folder.

The workhorse scripts that execute the iterative algorithm in Section 3.1 of the Supplementary Material are

  • PLS_est.m: for PLS estimation
  • PGMM_est.m: for PGMM estimation
  • PNL_est.m: for the PPL (Panel Probit) estimation

The scripts in folders simulations generate the simulation results. The master files are either master_** or **_super. Super parameters, such as N, T and Rep, should be provided outside of the main function or script.

c-lasso's People

Contributors

zhentaoshi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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