kdorheim / 2024.SULI.practice

Practice and training materials for 2024 Hector SULI
0 stars 0 forks source link

Issue 12 - Used optim to fit model to example data #15

Closed ptrscll closed 3 months ago

ptrscll commented 3 months ago

I used optim to fit the given model to the given data in Issue 12, detailing my work and results in an Rmd file. The example data that the model was fitted to is also included in this PR

kdorheim commented 3 months ago

Nicely done! The fit does look pretty reasonable, but there are a few more robust ways to evaluate fit which we haven't covered yet. I use the "observed" data here to refer to the example data set which is a data set that I generated, so I know exactly the correct parameters :)

Some things to look at

Because I generated the data set we've got model which is $$y = 3 + 2.5 x + 0.5 x^2$$

How do your fitted values compare with these? Any idea as to why they might differ? Do you have any concerns with the parameter estimates you got?