Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ch 5 #9

Open
oharac opened this issue Jul 8, 2018 · 2 comments
Open

Ch 5 #9

oharac opened this issue Jul 8, 2018 · 2 comments

Comments

@oharac
Copy link
Contributor

oharac commented Jul 8, 2018

hey all, my chapter 5 work is in the repo - I tried it with a loop (as in the pseudocode) and with dplyr::mutate() in a dataframe, and even with purrr::pmap and base::apply(), and in this case, seems like the loop is the fastest way to do it. I'd be curious to see if anyone came up with a different way to take advantage of vector operations to do it faster.

I also included some code from econometrics, calculating ordinary least squares estimators in matrix form, which is a much more efficient way (as in thousands of times faster) to find the parameters that minimize the sum of squares... but a lot less conceptually intuitive than the loop process. If folks are interested I'd be happy to show how it works on Wednesday.

@couture322
Copy link

Cool, I used loops too but will look at your OLS stuff.

Did anyone try the goodness of fit stuff after pseudocode 5.2?

@couture322
Copy link

Also, I think I was losing steam by using this pretty round-about pseudo code which helps to understand the concepts but isn't what we'd use to do this in real life. Maybe we could talk about this Weds if there's extra time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants