Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: st: AW: AW: Mean dependent variable


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   AW: st: AW: AW: Mean dependent variable
Date   Tue, 14 Apr 2009 11:23:41 +0200

<> 

One of the two alternatives:

*************
estat summarize selb
*or
summarize selb if e(sample)
*************

Note that this advice is invariant to the chosen form of standard errors and
respects your -if- qualifier. Stata reports the # of observations in both
cases, so you can easily check whether it matches the number used in the
estimation...


HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von
[email protected]
Gesendet: Dienstag, 14. April 2009 11:18
An: [email protected]
Betreff: Re: st: AW: AW: Mean dependent variable

Dear Martin,

thanks for your help!

Let's say this is my estimation command:

probit selb sex alter alterqu if deutsch, robust

So, to get the mean of the dependent variable, what shoul I state?  
It's only about the dependent variable.

Thanks again!






Zitat von Martin Weiss <[email protected]>:

> <>
>
> BTW: If it is really only about the dependent variable, the last two lines
> can be used to arrive at the same result:
>
> *************
> sysuse auto, clear
> probit for mpg price rep78
> estat summarize foreign
> summarize foreign if e(sample)
> *************
>
>
>
> HTH
> Martin
>
>
> -----Ursprüngliche Nachricht-----
> Von: [email protected]
> [mailto:[email protected]] Im Auftrag von Martin Weiss
> Gesendet: Dienstag, 14. April 2009 10:53
> An: [email protected]
> Betreff: st: AW: Mean dependent variable
>
>
> <>
>
>
>
> *************
> sysuse auto, clear
> probit for mpg price rep78
> estat summarize
> *************
>
> Note that I used "rep78" as a covariate so that a covariate with missing
> values makes my explantation meaningful. If you want to take this further,
> -e(sample)- can be used to condition on inclusion in the estimation.
>
>
> HTH
> Martin
>
>
> -----Ursprüngliche Nachricht-----
> Von: [email protected]
> [mailto:[email protected]] Im Auftrag von
> [email protected]
> Gesendet: Dienstag, 14. April 2009 10:44
> An: [email protected]
> Betreff: st: Mean dependent variable
>
> Hi there,
>
> I'm not so familiar with stata. So maybe that's a simple question:
>
> I've run a probit estimation and I want the mean of my independent
> variable of this regression. What can I do to get this addtional
> information in my estimation output?
> I can use the means-command before my regression. But in my regression
> some observations are excluded. So there will be a different mean
> value of my independent variable.
>
> Thanks for your help,
> Michael
> *
> *   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/
>
>
> *
> *   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/


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index