Editing Statistics and Statistical Programming (Winter 2017)/Problem Set: Week 2
From CommunityData
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{WIP}} | |||
__NOTOC__ | |||
== Programming Challenges == | == Programming Challenges == | ||
Line 10: | Line 9: | ||
:'''PC4.''' Although these basic functions all exist, many things you will want to do in the future won't have functions. Write R code to compute these three statistics by hand: mean, median, and mode. It's OK if getting the answer involves some eyeballing or counting this by hand. But do get the answer and be ready to walk us through how you did it. | :'''PC4.''' Although these basic functions all exist, many things you will want to do in the future won't have functions. Write R code to compute these three statistics by hand: mean, median, and mode. It's OK if getting the answer involves some eyeballing or counting this by hand. But do get the answer and be ready to walk us through how you did it. | ||
:'''PC5.''' Create a number of visualizations of your dataset: at the very least, create a boxplot and histogram. | :'''PC5.''' Create a number of visualizations of your dataset: at the very least, create a boxplot and histogram. | ||
:'''PC6.''' Some of you will have negative numbers. Whoops! Those were not supposed to be there. Recode all negative numbers as missing (i.e. NA) in your dataset. Now create compute a new mean and standard deviation. How does it change? | :'''PC6.''' Some of you will have negative numbers. Whoops! Those were not supposed to be there. Recode all negative numbers as missing (i.e. NA) in your dataset. Now create compute a new mean and standard deviation. How does it change? | ||
:'''PC7.''' Log transform your dataset. Create new histograms, boxplots, and means, median, and standard deviations. | :'''PC7.''' Log transform your dataset. Create new histograms, boxplots, and means, median, and standard deviations. | ||
:'''PC8.''' Commit the code that does all of these into a folder called "week_02" in your git repository. Publish this on Github and email me with the link to your published Github folder. | :'''PC8.''' Commit the code that does all of these into a folder called "week_02" in your git repository. Publish this on Github and email me with the link to your published Github folder. | ||
Line 26: | Line 25: | ||
=== Empirical Paper === | === Empirical Paper === | ||