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

R: st: graph frequencies


From   "Bader, Giovanni" <Giovanni.Bader@pfizer.com>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   R: st: graph frequencies
Date   Thu, 23 Sep 2004 09:09:08 -0400

Thank you Nick. You solved my problem.

giovanni

-----Messaggio originale-----
Da: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu]Per conto di n j cox
Inviato: giovedý 23 settembre 2004 14.49
A: statalist@hsphsun2.harvard.edu
Oggetto: Re: st: graph frequencies


Giovanni Bader

I'd like to have a bar chart showing frequencies (percents) of 
categorical variables (death and heart failure , both yes/no, for 
example). Basically I want the percentages of death in patient with and 
without heart failure.
The program fbar does the job:

.fbar heartf, by(death) stack percent.

How can I get the same result with Stata8.2 ?

 >>>

. ssc inst catplot
. whelp catplot

and then something like

. catplot bar heartf death, stack percent(death) asyvars

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/

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004
 

*
*   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