Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > Math Resources > Mathematics Software Discussion
Reply
 
Thread Tools Display Modes
  #1  
Old October 28th, 2009, 09:45 AM
Newbie
 
Join Date: Oct 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Kooshster is on a distinguished road
Default STATA T-tests with Unmatched Data

Hi everyone!

I'm running STATA and have a bit of a problem. I have employment data for minority-owned firms and non-minority owned firms. Employment data is all in one column, and I've separated it by dummy variables so I have "majorityemp" with about 350,000 observations and "minorityemp" with about 1,000 observations. The "minority" column has Y or N, with a blank for companies that did not disclose that data.

I want to test if there's a statistically-significant difference in the means of the two groups, but whenever I run "ttest majorityemp=minorityemp" I get "zero observations (r2000)" error.

When I try running "ttest minority, by(emp)" I get "more than 2 groups found, only 2 allowed r(420);" I assume this is because the non-reporting companies are tacked on as a third group.

My question: is there any way I can do a ttest by employment for JUST minority=Y or N, thus filtering out the non-responses?
Reply With Quote
Advertisement
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 01:36 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2009 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.