stanc model name

5 views
Skip to first unread message

Jiqiang Guo

unread,
Jun 2, 2012, 2:28:36 PM6/2/12
to stan...@googlegroups.com
Naming the 8-schools model "8chools" leads to find that 
the name could be not arbitrary.  I guess we need to fix it. 

--
Jiqiang

Bob Carpenter

unread,
Jun 2, 2012, 2:40:33 PM6/2/12
to stan...@googlegroups.com
The name needs to be a valid C++ identifier so
that it can be the name of a class! You may
want to fix this name and always use the same one
in the R interface so you know where to find it
from the R side.

See the discussion of valid identifiers on this
page:

http://www.cplusplus.com/doc/tutorial/variables/

- Bob

Jiqiang Guo

unread,
Jun 2, 2012, 2:56:42 PM6/2/12
to stan...@googlegroups.com
I am just talking about stanc generally as currently 
I do not see a rule for the name in the manual (sorry if there is).  
And I am not saying that we should fix the name 
literally, I meant to say we should do something about the name. 

Thanks for the link of c++ names.

--
Jiqiang  

Bob Carpenter

unread,
Jun 2, 2012, 6:32:08 PM6/2/12
to stan...@googlegroups.com
I added some text about legal identifiers in
the doc.

On 6/2/12 2:56 PM, Jiqiang Guo wrote:
> I am just talking about stanc generally as currently
> I do not see a rule for the name in the manual (sorry if there is).

I added a description of legal identifiers toe
the stanc documentation in the commands part of the
doc.

> And I am not saying that we should fix the name
> literally, I meant to say we should do something about the name.

What do you think we should do? And where?
The checked-in model is

models/misc/eight_schools.stan

but that really doesn't have anything to do with the
name given the stanc command for the \Cpp model class
name.

- Bob

Jiqiang Guo

unread,
Jun 2, 2012, 7:49:07 PM6/2/12
to stan...@googlegroups.com
Adding something to the doc would be perfect to me. 

It is just the eight schools example made me realize we could not 
pick any name.  There is nothing particular of this example with stanc. 

What do you think we should do?  And where?
Nothing.  (I realized the word `fix` that I used the first time could mean differently from intended.  Then I wanted to explain.)

--
Jiqiang   

Reply all
Reply to author
Forward
0 new messages