wjchulme / OSWGmcr-MAPS-collaboration

2 stars 2 forks source link

Create script_AJS_final.R #11

Closed ajstewartlang closed 5 years ago

ajstewartlang commented 5 years ago

Hi Will - I've tided my script and moved the code into three functions to read in the data, tidy the data, and model the data. I've also calculated the odds ratio for each of the predictors in the ordinal model. You might want to check I've done that right!

We can easily add more predictors if you like by adding them to the model definition in the model_data() function.