[Rd] Advice on package design for handling of dots in a formula

2014-10-15 Thread Greg Ridgeway
I am working on a new package, one in which the user needs to specify the role that different variables play in the analysis. Where I'm stumped is the best way to have users specify those roles. Approach #1: Separate formula for each special component First I thought to have users specify each fo

Re: [Rd] Advice on package design for handling of dots in a formula

2014-10-15 Thread S Ellison
> This seems to be a common approach in other packages. However, one of my > testers noted that if he put formula=y~. then w, ID, and site showed up in the > model where they weren't supposed to be. This is the documented behaviour for '.' in a formula - it means 'everything else in the data obj

Re: [Rd] Advice on package design for handling of dots in a formula

2014-10-15 Thread Charles Berry
Greg Ridgeway gmail.com> writes: > > I am working on a new package, one in which the user needs to specify the > role that different variables play in the analysis. Where I'm stumped is > the best way to have users specify those roles. [delete discussion of dot in formula and specials] > > Doe