felixholub / genshares

Stata command which allows to quickly calculate rowwise shares of a variable ist.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GENSHARES

This is a simple program which calculates row-wise shares of a variable list. It will later be extended to allow for more customization.

Installation

In Stata, simply run

cap ado uninstall genshares
net install genshares, from(https://github.com/felixholub/genshares/raw/master/src/)

Usage

webuse union, clear
keep year grade
contract year grade
rename _freq size_
reshape wide size_, i(year) j(grade)
genshares size*

About

Stata command which allows to quickly calculate rowwise shares of a variable ist.

License:MIT License


Languages

Language:TeX 50.5%Language:Stata 49.5%