Re: [R-pkg-devel] [External] Formula modeling

2021-10-07 Thread Duncan Murdoch
On 07/10/2021 5:58 p.m., Duncan Murdoch wrote: I don't work with models like this, but I would find it more natural to express the multiple formulas in a list: list(d ~ p + x + y, s ~ p + w + y, p ~ z + y) I'd really have no idea how either of the proposals below should be parsed.

Re: [R-pkg-devel] [External] Formula modeling

2021-10-07 Thread Ben Bolker
There's a Formula package on CRAN that's designed for this use case. lme4 and nlme don't use it, but implement their own formula manipulation machinery. (The cleanest version of this machinery is actually in glmmTMB at

Re: [R-pkg-devel] [External] Formula modeling

2021-10-07 Thread Duncan Murdoch
I don't work with models like this, but I would find it more natural to express the multiple formulas in a list: list(d ~ p + x + y, s ~ p + w + y, p ~ z + y) I'd really have no idea how either of the proposals below should be parsed. Of course, if people working with models like this are

Re: [R-pkg-devel] [External] Formula modeling

2021-10-07 Thread Richard M. Heiberger
I am responding to a subset of what you asked. There are packages which use multiple formulas in their argument sequence. What you have as a single formula with | as a separator q | p | subject | time | rho ~ p + x + y | p + w + y | z + y I think would be better as a comma-separated list of

[R-pkg-devel] Formula modeling

2021-10-07 Thread pikappa.devel
Dear R-package-devel subscribers, My question concerns a package design issue relating to the usage of formulas. I am interested in describing via formulas systems of the form: d = p + x + y s = p + w + y p = z + y q = min(d,s). The context in which I am working is that of