help fillin dialog: fillin
-------------------------------------------------------------------------------
Title
[D] fillin -- Rectangularize dataset
Syntax
fillin varlist
Menu
Data > Create or change data > Other variable-transformation commands >
Rectangularize dataset
Description
fillin adds observations with missing data so that all interactions of
varlist exist, thus making a complete rectangularization of varlist.
fillin also adds the variable _fillin to the dataset. _fillin is 1 for
observations created by using fillin and 0 for previously existing
observations.
Examples
Setup
. webuse fillin1
List the data
. list
Create observations with missing values for all combinations of sex,
race, and age_group that are in the dataset
. fillin sex race age_group
List the data
. list
Also see
Manual: [D] fillin
Help: [D] cross, [D] expand, [D] joinby, [D] save