How to add weights parameter to Generalized Mixed Model

The reason that I used RCall instead of RDatasets to obtain the data set is to ensure that it is a more faithful copy of the R dataset. The factor level orders are the same as those in R. If you create a CSV file then read the CSV, which I believe is what happens in RDatasets, you can’t guarantee you will get the same ordering.

1 Like