Stata 15 help for _xtstrbal

Title

[XT] _xtstrbal -- Programmer's command to verify that data are strongly balanced

Syntax

_xtstrbal panelvar timevar tousevar

Description

_xtstrbal is used by panel-data commands to verify that data are strongly balanced. Unlike xtset and tsset, here you include a touse variable that can restrict the sample. _xtstrbal returns r(strbal), containing yes or no depending on the case.

Remarks

A dataset is strongly balanced if each panel has the same number of observations and each distinct time period in the dataset has the same number of observations. In other words, a dataset is strongly balanced if each panel has the same number of observations and the panels' observations refer to the same set of time periods.


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