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:
1= not near university
2= 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 1).
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 x-axis and the heading of the graph.
Note: So far, all of the graphs you have created in this task are only in R-Studio
"'stored"'. In order to be able to use the created graphics also in other documents, there is the possibility in the R-Studio to export the generated graphics e.g. in PDF format.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!