RStudio Programming and Histograms

Job ID: 33002284

Budget: $30 – $250 USD

1. Using the 'world' data, summarize (mean, variance, median) GDP per capita (gdppc) and create a histogram. Make sure to label the axes of your histogram and provide a title. What do you notice?
2. Sometimes when data are positive and skewed towards the right tail of the distribution we take the log transformation. Create a new variable that is the log of GDP per capita.
3. Summarize (mean, variance, median) this new variable. Create a new histogram. Make sure to label the axes of your histogram and provide a title. What do you notice?How does this compare to the original variable of GDP per capita?
4. Pick another continuous variable and plot it against GDP per capita. Make sure to label the axes of your plot and provide at title. Add a line of best fit. What do you find? Describe your results. How would this look different if you hadn't logged GDP per capita?


Can someone answer those 4 questions using RStudio in the Descriptive_Statistics.R file that I provided? (you do not need to take screenshots or anything just answer those questions in the file I stated above using excel) (you do not need to summarize any data or anything, I just need to work in RStudio).