[R] Surprising Symbolic Model Formula Evaluations
Richard M. Heiberger
rmh @end|ng |rom temp|e@edu
Fri Oct 11 19:58:58 CEST 2019
I can't duplicate your examples
This is what I see
> y ~ 1:x
y ~ 1:x
Please try again in a vanilla R session, and send a reproducible example.
vanilla means start R from the operating system command line with
this prevents any of your initialization files from being loaded. See
On Fri, Oct 11, 2019 at 1:05 PM Emi Tanaka <dr.emi.tanaka using gmail.com> wrote:
> I'm wondering about some logics behind the following simplifications:
> y ~ 1:x simplifies to y ~ 1
> y ~ x:1 simplifies to y ~ 1
> y ~ x*1 simplifies to y ~ x
> y ~ 1*x simplifies to y ~ 1
> Mainly I would have expected y ~ 1:x to simplify to y ~ x and the cross
> operator to be invariant to order.
> I have some further surprising cases below that I'd also like to know more
> about but just above will also be great.
> *Dr. Emi Tanaka* | Lecturer in Statistics
> Faculty of Science, School of Mathematics and Statistics
> Secretary, NSW Branch, Statistical Society of Australia
> Social Media Coordinator, Central, International Biometrics Society
> *THE UNIVERSITY OF SYDNEY*
> 827, Carslaw F07 | The University of Sydney | NSW | 2006
> *Phone:* +61 2 9351 3039
> *Website:* * <http://sydney.edu.au/>*https://emitanaka.github.io/
> *Twitter: *@statsgen
> CRICOS 00026A
> This email plus any attachments to it are confidential.
> Any unauthorised use is strictly prohibited. If you receive this email in
> error, please delete it and any attachments. Please think of our
> environment and only print this e-mail if necessary.
> [[alternative HTML version deleted]]
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help