-
Notifications
You must be signed in to change notification settings - Fork 0
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
Basic questions for the presentation. #1
Comments
|
Thanks for your work on the presentation! Somehow the code doesn't run yet though for me. Could you have a quick look at the working directories? I think they need to be defined for the Beamer presentation as well as for the R file. We have the PDF, but Christopher might want to replicate what we've done. A few comments on your slides (as I see them in the PDF): That all looks good to me. I would maybe put a bit less content on each slide. Unfortunately I have really little time to review everything as I'm busy with the end of year report and I have guests over the weekend, but I will have a look again this evening! Hope my comments are helpful though. |
In order for the presentation to render, you have to set the working directory to the root directory of the repository, which is done automatically if you clone the repo directly from within RStudio, hence why I never do it. Because not everyone follows this workflow, I added a line with 'setwd(~/Git/PresentationAssignment)' and a comment asking the user to change the directory accordingly. In order for the repository to run, you need to copy your data sets into the data/ directory, hence why I created the directory and put the placeholder file inside. The readme stated that one needed to manually include the data into the repo, but that can be easy to miss. To prevent that from happening again, I included another note about that in the Rmd file and had the readme state explicitly that the repository does not contain the data necessary to reproduce the RMarkdown files. As for the interpretation of the coefficients: the numbers reported are not beta coefficients, but odds ratios as they allow for easier interpretation of binary variables. The interpretation of them is as follows in the case of mayors: Mayors who are board members of Sparkassen have 23% higher odds of getting re-elected. Generally, odds ratios show the ratio of the odds between the reference category and the category reported, so 1.23 means that the odds are 23% for the category (board member-mayors) under scrutiny in relation to the reference category (non-board-member.mayors). Likewise, an odds ratio below 1 can interpreted as the category underscrutiny having lower odds of getting re-elected in comparison to the reference category by a percentage that equals 1-odds ratio. In the case of female mayors, the interpretation is as follows: Female mayors have around 24% lower odds of getting re-elected. As for the test statistics: I changed stargazer to report two decimal points only now and also excluded the Akaine statistic, but adj. R² can't be reported by stargazer, as it is not calculated by the glm function and thus is not stored in the object storing the regression estimates. I changed the reported t-values for p-values to get some stars on there. However, because I had stargazer exponentiate the coefficient estimates to convert them into the odds ratios, the standard errors come out wrong as they are recalculated using the new coefficient estimates. To circumvent this, I have disabled the automatic re-calculation of the test statistics and reported the p-values from the underlying beta coefficients along with the exponentiated beta coefficients (the odds ratios). |
Hi Malte,
I just created a first rough outline of the presentation. A number of basic questions are still to be answered:
The text was updated successfully, but these errors were encountered: