Bookmark and Share

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: error with sccendif


From   Roger Newson <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: error with sccendif
Date   Wed, 2 Feb 2011 13:15:18 +0000

Hello Wassim

The example quoted below works for me. I suspect that your problem is caused by an out-of-date version of the -somersd- package (which includes -cendif-), dating from before the -cfweight()- option was introduced.

You do not tell me what version of Stata you are using. However, if it is Stata Version 10 or 11 (which is required for -sccendif- to work), then you should update your version of -somersd- from SSC. This can be done using the -ssc- command, or using -adoupdate-. It might be a good idea also to update the -expgen- package, which is also downloadable from SSC, and which is also used by the -scsomersd- package.

I hope this helps. Let me know if you have any further queries.

Best wishes

Roger


Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: [email protected]
Web page: http://www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/

Opinions expressed are those of the author, not of the institution.

On 01/02/2011 22:17, Wassim Tarraf wrote:
**********************************
webuse auto, clear
gene firm=word(make,1)
lab var firm "Firm"
sort foreign firm make
describe
tab firm, m
sccendif price 0, tdist centile(25(25)75)
**********************************
*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index