*! version 0.31

Title

dummynizer -- Generating Stata dummy variables using Mata syntax

Syntax

dummynizer
[,
options]

Main
matacode(string) The mata codeblock to generate dummy variables.

prefix(string) Choose your own prefix for variables names. Default is v.

Description

Generating Stata dummy variables using Mata syntax.
Names are a prefix and a four digits number.

Examples

Creating a set of dummy variables.

`"dummynizer, matacode(J(3, 1, I(4)), I(3) # J(4,1,1), J(3,1,1::4), (1::3) # J(4,1,1)) prefix(demo) clear"'

Listing dummy variables.

`"list, sep(4)"'

Authors and support

Author:

Niels Henrik Bruun,

Aalborg University Hospital

Support:

niels.henrik.bruun@gmail.com