Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: error with sccendif

From   Roger Newson <>
To   "" <>
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 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
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Web page:
Departmental Web page:

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
tab firm, m
sccendif price 0, tdist centile(25(25)75)
*   For searches and help try:

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