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

make_bar from compute_posterior function (Lecture 2) not found #1

Open
kylap opened this issue Jan 11, 2023 · 3 comments
Open

make_bar from compute_posterior function (Lecture 2) not found #1

kylap opened this issue Jan 11, 2023 · 3 comments

Comments

@kylap
Copy link

kylap commented Jan 11, 2023

Hello! I was wondering if I needed to install a separate library to be able to run the make_bar in the compute_posterior function that was shown in Lecture #2? I tried typing out all the code and running it, however it produced an error saying "Error in make_bar(q): could not find function "make_bar"?

@rmcelreath
Copy link
Owner

It's in the 3rd edition draft. You can just comment out make_bar if you are running the code from the slides only.

@kylap
Copy link
Author

kylap commented Jan 12, 2023

Thank you very much for your response! Apologies for this, I don't have access to the 3rd edition draft as I'm not enrolled in the course. Thank you again!

@Preve92
Copy link

Preve92 commented Jan 12, 2023

I came up with a simple solution:

make_bar <- function(x) paste(rep("#", 20*x), sep = "", collapse = ""

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

3 participants