Question: The record Mieten.csv contains the following variables: Variable Description miete Net rent in Euro in Munich lage Location of the apartment: 1 = not near
The record Mieten.csv contains the following variables:
Variable Description
miete Net rent in Euro in Munich
lage Location of the apartment:
not near university
near university
a Import the dataset Mieten.csv into R and save the data in a separate data object.
data object.
b Create a histogram for the variable miete by first entering the following command:
hist rent freq F
Further add a correct axis label to your graph.
c Create a new variable logRent that contains the logarithmized values of the variable miete.
d Use a QQ plot qqnorm command to check if the variable logRent follows a normal distribution.For a better interpretation of the graph, add a compensation line using the qqline function.
The rest of the task is based on the data set klausurumfrage.csv cf Task
e Import the data set klausurumfrage.csv into R and save the data in a new,
separate data object.
f Create the empirical distribution function of the variable using the R code below.
note:
plot ecdf note
Change the label of the xaxis and the heading of the graph.
Note: So far, all of the graphs you have created in this task are only in RStudio
stored In order to be able to use the created graphics also in other documents, there is the possibility in the RStudio to export the generated graphics eg in PDF format.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
