Question: Calculate a variable called EntDum (a dummy variable that can carry the value of 1 or 0, which equals 1 if room_type = Entire House
Calculate a variable called EntDum (a dummy variable that can carry the value of 1 or 0, which equals 1 if "room_type" = "Entire House" and 0 if "room_type" = shared room or private room. To do so, sort the database by "room_type" and insert a variable and name it "EntDum"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
