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
Lance Erickson <[email protected]>
To
"[email protected]" <[email protected]>
Subject
RE: st: Is it possible to recover estimation sample size used in -twoway lfit-
Date
Mon, 26 Dec 2011 19:14:00 +0000
Okay--thanks.
Lance
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Nick Cox
Sent: Sunday, December 25, 2011 5:03 AM
To: [email protected]
Subject: Re: st: Is it possible to recover estimation sample size used in -twoway lfit-
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/
*
* 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/