Question: / * Generated Code ( IMPORT ) * / / * Source File: IPhone.xls * / / * Source Path: / home / u 6
Generated Code IMPORT
Source File: IPhone.xls
Source Path: homeumysharedfilelinksuData
Code generated on: :
webdroptableWORKIMPORT;
FILENAME REFFILE homeumysharedfilelinksuDataIPhonexls;
PROC IMPORT DATAFILEREFFILE
DBMSXLS
OUTWORK.IMPORT;
GETNAMESYES;
RUN;
PROC CONTENTS DATAWORK.IMPORT; RUN;
webopentableWORK The fourth step is to collect the data. Your professor has provided you with a data set of iPhone auctions that have taken place over the last three weeks on eBay. Are you concerned that the observations may not be comparable since they come from different time periods? Why or why not?
a Locate and open the iPhone dataset from the shared folder on SAS On Demand.
b Lets explore the data. To explore the data, calculate summary statistics.
i See what variables are available
ii Verify that the following variables are available:
PRICEi the price at which the ith iPhone sold on eBay
NEWi Yes or No
SCRATCHi a dummy variable equal to if the ith iPhone had a minor cosmetic defect, otherwise
BIDRSi the number of bidders on the ith iPhone
c Understand the data and the values the variables take. For example, what are variables mean, median, minimum, and maximum values? Are there any missing values?
d Assume that you choose the following specification:
PRICEi beta beta NEWi beta SCRATCHi beta BIDRSi epsi i
Do you see any issue that may affect your ability to use the variable NEW?
e Transform the variable NEW into a numeric variable that takes the value of if the iPhone is NEW and otherwise.
You may use the following code to create the dummy variable:
Create dummy vaiable
data DatasetName; set DatasetName; DatasetName if your data set name
if NEWNo then Newdummy;
else if NEW"Yes" then Newdummy;
run;
Check the new created dummy
proc freq dataDatasetName;
tables NEW Newdummy;
run;
If you want to know more about how to create dummy variables, read https:statsoarc.ucla.edusasfaqisthereaquickwaytocreatedummyvariables
The fifth step is to estimate the regression model. Use the same specification you defined under d
PRICEi beta beta NEWi beta SCRATCHi beta BIDRSi epsi i
a Write the estimated regression equation.
b Do the estimated coefficients correspond to your expectations? Explain.
c What is the overall quality of the regression equation you have estimated? How can you tell?
The sixth step is to document the results. Do not simply copy and paste the SAS results. Write your results as instructed in our textbook step IMPORT;
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
