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: esttab equivalent for svy data
From
"Gupta, Sumedha" <[email protected]>
To
"[email protected]" <[email protected]>
Subject
RE: st: esttab equivalent for svy data
Date
Tue, 10 May 2011 20:15:27 +0000
Hi Steve,
Thank you so much for your reply and sorry for not knowing that I had to send output from standard data. I will keep that in mind from now on.
You were right, I was making an error. It works now! Many thanks. I do have a follow up question though. How can I append several regression results using esttab? For instance,
. sysuse auto
(1978 Automobile Data)
. eststo: quietly regress price weight mpg
(est1 stored)
. eststo: quietly regress price weight mpg foreign
(est2 stored)
This would give me :
. esttab
--------------------------------------------
(1) (2)
price price
--------------------------------------------
weight 1.747** 3.465***
(2.72) (5.49)
mpg -49.51 21.85
(-0.57) (0.29)
foreign 3673.1***
(5.37)
_cons 1946.1 -5853.7
(0.54) (-1.73)
--------------------------------------------
N 74 74
--------------------------------------------
t statistics in parentheses
* p<0.05, ** p<0.01, *** p<0.001
But what if rather than having results of model 1 and 2 placed horizontally next to each other I want to stack them on top of each other. Can you please advise me on how I may be able to achieve that? I will really appreciate your input.
Thanks!
Sumedha.
________________________________________
From: [email protected] [[email protected]] on behalf of Steven Samuels [[email protected]]
Sent: Monday, May 09, 2011 5:48 PM
To: [email protected]
Subject: Re: st: esttab equivalent for svy data
Sumedha-
I think you've made a mistake someplace. If you don't show us your code applied to a standard survey data set and what Stata said in response (as requested in the FAQ), we can't tell you what the mistake is. Here is syntax that works.
*****************************
sysuse auto, clear
svyset _n
eststo: svy: reg price weight mpg
esttab, ar2 label
*******************************
Steve
[email protected]
On May 9, 2011, at 2:13 PM, Gupta, Sumedha wrote:
Hi,
Can somebody advise me please of a method for making regression tables for svy data using Stata? I don't seem to be able to use eststo followed with esttab. That would have been perfect to make tables and export to latex. Is there a similar command for use with svy?
Any input will be much appreciated.
Many thanks.
Sumedha.
*
* 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/