-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add more intro material quick start #436
Add more intro material quick start #436
Conversation
@s3alfisc I recommend you enable the https://www.reviewnb.com/ app (it is free for public repos!) to review notebooks :) |
@s3alfisc I started working on #435. What do you think about the intro section? I want to do something similar for the rest of the sections. Hence, I want some initial feedback :) For such purpose, I need to re-run all the notebook (also important for all users). However, I can not access |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #436 +/- ##
==========================================
- Coverage 85.79% 83.00% -2.79%
==========================================
Files 38 51 +13
Lines 3421 4243 +822
==========================================
+ Hits 2935 3522 +587
- Misses 486 721 +235 ☔ View full report in Codecov by Sentry. |
I've activated the reviewnb tool. Very nice! Trivago is even mentioned in the list of customers, I should ask procurement if we actually have a professional license =) Beyond that I think the intro is excellent. Clearly describes the problem and I also like the sketch of the solution by demeaning! Thanks so much! =) The reason why you're results don't match exactly is that you forgot to demean the dependent variable: fit_demeaned = pf.feols(
fml="Y_demeaned ~ X1_demeaned",
data=data.assign(
Y_demeaned=lambda df: df["Y"] - df.groupby("f1")["Y"].transform("mean")
X1_demeaned=lambda df: df["X1"] - df.groupby("f1")["X1"].transform("mean")
),
vcov="HC1",
)
fit_demeaned.summary() The non-existing file can be downloaded from import pandas as pd
df = pd.read_stata("www.damianclarke.net/stata/census2000_5pc.dta") fails for some reasons. But the file is super big, so maybe we should add a warning about that? |
@s3alfisc |
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
@s3alfisc I think this one is ready for a first review round :) |
Thanks - I think it looks really good but I still left a lot of comments 😄 |
Hey @s3alfisc I can not see your comments 😅 . Can you please send the again? 🙏 |
Oh - I left the comments in the review notebook. Can you see them there? Basically, I wonder about how to simply and intuitively define what a fixed effect is but think you have done a pretty good job, actually; and then I also wonder if it would help to rename the columns in |
@s3alfisc ok! Got it! It would be nice to see notebook comments. Could you try again? Sometimes one need a to hit the “finish review” button 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
placeholder to refresh review nb
Looks like all my comments are gone =/ Will start a second round then! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many comments within the ipynb now - I did not want to risk losing all of them in the review nb again 😅
Ok I started with the feedback in eadcbf8 . I will continue in the next days so that we don't delay this PR for long :D |
ok @s3alfisc I think we are ready for another review round :) |
This looks excellent @juanitorduz! I found two more small typos. Beyond that, I think this PR is ready to be merged! I really appreciate the added section on multiple estimations & the section on "brave and true". I think the intro has improved a lot. Vielen Dank =) |
Fixed! |
Ah wow you have been faster then me =D I will merge it after the CI run. Thank you! |
@s3alfisc thank you for the comments and feedback! BTW: You can ad reviews directly in the ReviewNB notebook view as well ; |
@@ -6,45 +6,151 @@ | |||
"source": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Click on the ReviewNB and you will see the comment on the cell ;) |
@@ -6,45 +6,151 @@ | |||
"source": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trying out a review from the review nb (I failed with this the other day) - I think this is my favorite new section =)
Reply via ReviewNB
I now realize what I did wrong the other day - I added a lot of comments but the review was only "pending", I never clicked on "post to github". That's why all my initial comments got lost 🌞 |
Related to #435