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: Problem defining syntax for program


From   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: Problem defining syntax for program
Date   Sat, 14 Dec 2013 00:13:02 +0000

If an option is compulsory, it can't have a default. After all, what
is default? A default is what you get if you don't specify the option.
But you must specify a compulsory option.
Nick
[email protected]


On 13 December 2013 22:06,  <[email protected]> wrote:
> Dear list
> I am writing a Stata program and am encountering some problems with defining the syntax. The program is designed to estimate power for comparing ROC curves. When I run the program I obtain the following error (with set trace on).
>
> rocpower , area0(0.5) area1(0.6) n(100) percent(0.25)
> --------------------------------------------------------------------------------- begin rocpower ---
> - syntax, area0(real 0.50) area1(real 0.50) n(integer 100) [area2(real 0.50) na(integer 50)
> nn(integer 50) percent(real 0.50) r(real 0) alpha(real 0.05) tails(integer 2) I(integer 2) J(integer 1)
> ordinal]
>
> invalid syntax
>
> The program was called using the statement:
>
> rocpower , area0(0.5) area1(0.6) n(100) percent(0.25)
>
> I have looked over the syntax help several times but I can't seem to locate the problem. Any advice or suggestions would be much appreciated.
>
> Barth
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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