Stata 15 help for fillin

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

varlist may not contain strLs.

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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index