Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[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 <lance_erickson@byu.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
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: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Nick Cox
Sent: Sunday, December 25, 2011 5:03 AM
To: statalist@hsphsun2.harvard.edu
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 <lance_erickson@byu.edu> 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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index