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

2021-10-08 Thread Vladimir Dergachev
: Re: [R-pkg-devel] [External] Formula modeling 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

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

2021-10-08 Thread pikappa.devel
. Heiberger ; pikappa.de...@gmail.com Cc: r-package-devel@r-project.org Subject: Re: [R-pkg-devel] [External] Formula modeling 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: >

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. There's

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 https://

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 us

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 fo