Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: modifying a data set for multiple regression analysis


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: modifying a data set for multiple regression analysis
Date   Sun, 6 Apr 2003 16:15:25 +0100

burkom@comcast.net
 
> As a fairly new Stata user trying to do more tasks within 
> Stata, I have 2
> questions about preparing a data set for a regression 
> analysis.  Any help
> would be greatly appreciated.
> 
> First, I have a data set with variables v1, v2,...,v6.  I 
> would like to
> create a large new data set giving counts of each value of 
> v1 for all
> combinations of v2,...,v6.  Have thought of going back to 
> Microsoft tools
> and doing this with a query, but I'd prefer to do it all in Stata.
> 
> Second, my reason for this request is that I want to 
> regress counts of v1
> values using some of v2,...,v6 as predictors.  Are there 
> features of Stata
> specifically intended for this procedure?

If I understand this correctly 

preserve 
contract v1 v2 v3 v4 v5 v6 
list 
... 
restore 

If this doesn't help, please give more 
details or examples.

Nick 
n.j.cox@durham.ac.uk 


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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   |   What's new   |   Site index