Week 2 Project. I want someone who can do R-Studio
ESCP 7170 - Project 2 Frequencies, Percentages, and Graphs
Last updated: May 06, 2022
For this assignment DO NOT perform any calculations “by hand”.Please use proper R functions and make sure you document/explain each step thoroughly!
This project builds on the previous work and adds descriptive statistics (frequencies, percents) as well as visual presentation of the data using graphs.
Work on this project in the folder you created for Project 1 earlier in the semester. Thefolder already has your data file.
Step 1 In the Intimidation folder you created before create a new RNotebook file for the project. Then save it and name it <your-last-name>_p2.Rmd. Clean everything except the header (included in between ---) at the top of the file and change the title to <your-last-name> Project 2. Save your file and click Preview.
Step 2 Copy the code and explanations for importing and setting up the dataframe from the previous project.
Because for any data analysis you need to have the variables’ levels of measurementproperly set up, copy over from the first project, which asked you to set up these levels of measurement, the explanations and the code that makes that happen. You don’t need to copy everything - for example, in this project you do not need to test the data frame variables if you know that the import process set them properly. You just need to make sure they are properly set.
As a side note, you will need to do the same for the next project as well, so make sure the code and explanations are set in such a way that you can copy them over next time without any changes.
Step 3 Add R code chunks to your RNotebook file to generate the output below.
Remember to thoroughly document and explain your work. Do not focus too much onexplaining the R code. That is more or less self explanatory. What is important is to explain the process and the analysis behind the code, as well as any needed interpretation of the output.
1. Create a scatterplot between Intimidation before and after;
1
2. Calculate the Final score situated at the 70th percentile; 3. Create a histogram of the Final variable; 4. Generate frequencies, relative frequencies, and percentages for each category of the Major variable; 5. Create a bar chart for the Major variable; 6. Use the tableone package to generate the frequencies and percentages for each category of the
Biosex and Year variables.
Bonus Item: APA Write Up (.5 points) Provide an APA write up that describes one of your variables in terms of frequencies and percentages.
Grading The entire project is worth 10 points. Both code and explanations will be evaluated.
The bonus item points cannot increase the grade above 10 points.
Turn in Your Work To turn in your work, do the following:
1. Make sure you saved the RNotebook file for the project to catch all changes. 2. Perform a final Preview to make sure all updates are included in the output file. 3. Upload the two files you generated for this project:
• The RNotebook file <your-last-name>_p2.Rmd • The automatically generated notebook in html format, called <your-last-name>_p2.nb.html
You can submit multiple files in a single assignment submission by clicking on the +AddAnother File link that shows up in the assignment submission window or modal.
2
- Step 1
- Step 2
- Step 3
- Bonus Item: APA Write Up (.5 points)
- Turn in Your Work