Statalist The Stata Listserver


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

Re: st: RE: proper syntax for mcompp


From   "Christopher W. Ryan" <cryan@binghamton.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: proper syntax for mcompp
Date   Tue, 28 Nov 2006 15:49:32 -0500

Actually, I came upon it by

-search multiple-comparisons-

in Stata 8.2

I'll take a look at _mtest

Thanks.

--Chris
-- 
Christopher W. Ryan, MD
SUNY Upstate Medical University Clinical Campus at Binghamton
and Wilson Family Practice Residency, Johnson City, NY
cryanatbinghamtondotedu
GnuPG and PGP public keys available at http://pgp.mit.edu

"If you want to build a ship, don't drum up the men to gather wood,
divide the work and give orders. Instead, teach them to yearn for the
vast and endless sea."  [Antoine de St. Exupery]


Nick Cox wrote:
> This command was published in the STB in 1994. The help 
> file contains a typo: the closing "]" was omitted by 
> accident. The "[ ]" indicate genuinely optional options and 
> are not to be typed literally. 
> 
> This contribution only appears if you type -search, historical-
> but then without comment. That usually means that the contribution
> may be rendered awkward or impossible to use given subsequent 
> changes in Stata, so deeper problems may yet lurk. In fact one 
> of your error messages below indicates one such. 
> 
> On looking at the file I see no -version- statement. Inserting 
> a line 
> 
> version 2.1 
> 
> below the "program define" is one possible remedy, but I've not 
> tried it and make no promises. 
> 
> Nick 
> n.j.cox@durham.ac.uk 
> 
> Christopher W. Ryan
>  
>> I've installed mcompp and mcompr but can't seem to get mcompp to work.
>> What is the proper syntax?
>>
>> Here is an extract from the help file:
>>
>>
>>  P-values for multiple comparisons                            
>>    [sg28:
>> STB-22]
>> ----------------------------------
>>
>>         mcompp varlist , [ nocons bonferonni(varname)
>>
>>                         scheffe(varname) sidak(varname)
>>
>> calculates P-values for all possible contrasts defined by the 
>> varlist.  This
>> list must appear in the most recent estimation command.
>>
>>
>> Here are the errors I get when I try different syntax.  It seems odd
>> that the syntax diagram contains just an opening square bracket, no
>> closing one.
>>
>> . mcompp _Ifamily_2, [sidak(sidak)
>> option [ not allowed
>> r(198);
>>
>> . mcompp _Ifamily_2, sidak(sidak)
>> program error:  matching close brace not found
>> r(198);
>>
>> . mcompp _Ifamily_2, sidak(sidak)]
>> option ] not allowed
>> r(198);
>>
>> . mcompp _Ifamily_2, (sidak(sidak))
>> option ( not allowed
>> r(198);
>>
>> . mcompp _Ifamily_2, [sidak(sidak)]
>> option [ not allowed
>> r(198);
>>
>> . mcompp _Ifamily_2
>> program error:  matching close brace not found
>> r(198);
> 
> *
> *   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/
> 
*
*   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