Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Matrix? Stack? Reshape? Xpose? - almost there


From   buddyb <[email protected]>
To   [email protected]
Subject   st: Matrix? Stack? Reshape? Xpose? - almost there
Date   Thu, 22 Jun 2006 16:44:19 -0700 (PDT)

Hi, I am using Version 8.

Thanks to Justin and Dave for their help....My data
set now looks like this:

Var             IMP	SIMP    VIMP  missing       
q6ashealth	38	35	50	89       q6bboh	        20	32	63
97	

I want to create a new variable called TYPE with
values of q6ashealth, 86bboh and another variable
called score with values of IMP, SIMP, and VIMP.  I
don't want to include missing.  After the Score and
Type variables are created, I would like to be able to
issue a Table command:

Table TYPE SCORE

so that it would output a table like this:

                              Score
    Type          IMP         SIMP          VIMP
  Q6ahealth       50 (40.7%)  35 (28.5%)   38 (30.9%)
  Q6bboh          63 (54.8%)  32 (27.8%)   20 (17.4%)


What is this called?  Any ideas how to do this?

Thanks


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index