Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Is it possible to recover estimation sample size used in -twoway lfit-
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: Is it possible to recover estimation sample size used in -twoway lfit-
Date
Sun, 25 Dec 2011 12:02:38 +0000
Only by issuing the equivalent -regress- command, I believe.
Nick
On Fri, Dec 23, 2011 at 5:50 PM, Lance Erickson <[email protected]> wrote:
> Dear Statalist,
>
> Does anyone know if it is possible to recover the estimation sample size used in -twoway lfit-? I've always assumed that the graphic produced by the command is based on a regression that uses listwise deletion, so the estimation sample size would be the number of cases that have complete data on the two variables involved. I want to recover this information to illustrate to students in an undergraduate class on data management the importance of understanding patterns of missing values.
>
> As a stab in the dark, I tried modifying the file "twoway__lfit_serset.ado" to create a matrix or global macro to store the sample size but neither approach worked.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/