Statalist


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

st: Problem with syntax - Option X required ... but Options not allowed


From   [email protected]
To   [email protected]
Subject   st: Problem with syntax - Option X required ... but Options not allowed
Date   Fri, 9 Nov 2007 21:34:54 -0200 (BRT)

Dear all,

I would like to know your opinion about an error I am having when I run a
simple program.

*---------------------------
capture program drop rtpcr
*! rtpcr v1. TVP 2007
program define rtpcr, rclass
version 9.2
syntax varlist(min=2 max=100 default=none numeric) [if] [in] , MODEL(string)
*---------------------------

Assuming I have two variables, a and b:

why does the following problem show up?

. rtpcr a b
option model() required
r(198);

. rtpcr a b, model(overdominant)
options not allowed
r(101);

thank you for any help.

Tiago

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index