R programming (Rstudio) assignment
You need to be good at R programming (Rstudio) to complete this assignment. Specifically, you need to need to have the following skills for this assignment:
1.ability to test an interaction
2.running of an appropriate model given the distribution of the outcome
3.interpretation of an interaction
4.consideration of statistical and practical significance
5.making a plot.
6. use of a mixed model
7. specification of a random intercept
8. interclass correlations (including interpretation)
9. likelihood ratio tests
10. consideration of multiple models
11. interpretation of model parameter estimates (coefficients)
12. consideration of practical significance above and beyond statistical significance.
There are descriptions of two unrelated data sets. You will be asked to analyze the data sets, being attentive to specific questions described in the data sets.
For each data set, you are asked to provide
1) a write-up,
2) syntax that will allow for replication of all your analyses
3) output from your analyses.
R programming (Rstudio) assignment
Data Set #1 (5 points)
These data (“Titanic.txt”) consist of outcomes for all but one of the passengers on the Titanic.
It is well known that the differing passenger classes on the Titanic (1 st , 2 nd , 3 rd ) correlated well with wealth, and also survival of this tragedy. There are also tales suggesting that when loading lifeboats, women and children may have been prioritized.
There is an interaction in these data when Sex and passenger class (PClass) are used to predict survival (Survived). Test this interaction for yourself, interpret the interaction, and create a plot based on the model. When interpreting, focus on the effect of class within levels of sex. Be sure to interpret both practical and statistical significance — that is, interpret those parameter estimates! Make the results salient — how much did being in a lower class or being female/male change your odds of survival?
R programming (Rstudio) assignment
Data Set #1 Requirements:
Write-up: The short write up should consist of 2 sections:
1) a description of the results of your analyses,
2) a short discussion summarizing the implications of your results.
These sections should be similar to the results and discussion sections of a typical research paper. About a page (double-spaced, type 12) will likely be required to complete this assignment. Write-ups should be clear, concise, and professionally written. There should be no misuse/ambiguity regarding statistical terms, and clear statistical evidence should be given for all statements/claims made.
Syntax/Output: Please use Rstudio to do the analysis and provide copies of all syntax and output used in the analyses.
Analysis: A few skills that should be demonstrated for this assignment include:
R programming (Rstudio) assignment