Question

SAS code for problem:

title 'grocery questions';
data a; /* This data set will be a temporary sas file with name
'a' . In this example we don't need to refer to this
name as if there is only one temporary sas file in use,
any procedure will automatically use it. */

input y x1 x2 x3 ; /* names input variables */

cards;
4264 305657 7.17 0
4496 328476 6.2 0
4317 317164 4.61 0
4292 366745 7.02 0
4945 265518 8.61 1
4325 301995 6.88 0
4110 269334 7.23 0
4111 267631 6.27 0
4161 296350 6.49 0
4560 277223 6.37 0
4401 269189 7.05 0
4251 277133 6.34 0
4222 282892 6.94 0
4063 306639 8.56 0
4343 328405 6.71 0
4833 321773 5.82 1
4453 272319 6.82 0
4195 293880 8.38 0
4394 300867 7.72 0
4099 296872 7.67 0
4816 245674 7.72 1
4867 211944 6.45 1
4114 227996 7.22 0
4314 248328 8.5 0
4289 249894 8.08 0
4269 302660 7.26 0
4347 273848 7.39 0
4178 245743 8.12 0
4333 267673 6.75 0
4226 256506 7.79 0
4121 271854 7.89 0
3998 293225 9.01 0
4475 269121 8.01 0
4545 322812 7.21 0
4016 252225 7.85 0
4207 261365 6.14 0
4148 287645 6.76 0
4562 289666 7.92 0
4146 270051 8.19 0
4555 265239 7.55 0
4365 352466 6.94 0
4471 426908 7.25 0
5045 369989 9.65 1
4469 472476 8.2 0
4408 414102 8.02 0
4219 302507 6.72 0
4211 382686 7.23 0
4993 442782 7.61 1
4309 322303 7.39 0
4499 290455 7.99 0
4186 411750 7.83 0
4342 292087 7.77 0
4172 414867 7.7 0
4351 290085 7.65 0
. 302000 7.2 0
;

proc print;
run;


proc reg data=a;
model y=x1 x2 x3/p clm;
output out=regout p=fitted r=residual;
run;

1) In a small-scale experimental study of the relation between degree of brand liking (Y) and moisture content of the product

c) Prepare a correlation matrix for X1 and X2 using SAS. d) Describe your findings from the previous part.

1) In a small-scale experimental study of the relation between degree of brand liking (Y) and moisture content of the product (X1) and sweetness of the product (X2), the following results were obtained from the experiment based on a completely randomized design. Partial data follows, and the complete data set is included in the SAS code, which is named "BrandSAS.525s19.txt" 4 2 64 4 4 73 3 4 2 15 10 2 94 16 10 4 100
c) Prepare a correlation matrix for X1 and X2 using SAS. d) Describe your findings from the previous part.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

The ReG Procad 54 DF Model 35 16 ,c001 83168 05to 169 505 5t Rtot MSe 143.4 29 # R-Square o.Gag4 4359. 2 x8 Adj R-Sq, C.6591

Add a comment
Know the answer?
Add Answer to:
SAS code for problem: title 'grocery questions'; data a; /* This data set will be a temporary sas...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 6.5. Brand preference. In a small-scale experimental study of the relation between degree of brand liking...

    6.5. Brand preference. In a small-scale experimental study of the relation between degree of brand liking (Y) and moisture content (Xi) and sweetness (X2) of the product, the following results were obtained from the experiment based on a completely randomized design (data are coded): 2 4 4 73 3 4 61 15 10 94 16 10 100 Xi1: 4 10 4 95 64 a. Obtain the scatter plot matrix and the correlation matrix. What information do these diag- b. Fit...

  • 4.27 Suppose the following command sequence is run on a five-step pipeline data pass. ADD X5,...

    4.27 Suppose the following command sequence is run on a five-step pipeline data pass. ADD X5, X2, X1 LDUR X3, [X5, #4] LDUR X2, [X2, #0] ORR X3, X5, X3 STUR X3, [X2, #0] 1.Change or reorder the code to minimize NOP operations. Assume that register X7 can be used to store temporary values in the modified code. 2. What would happen if this code were executed in a process with forward transmission but without a sub-sea detection unit?

  • The following data set is adapted from current Raleigh real estate listings for zip code 27605,...

    The following data set is adapted from current Raleigh real estate listings for zip code 27605, near NCSU. (a) Using Excel, enter the following data set: BEDROOM (x1) BATHROOM (x2) SQ.FT (x3) PRICE (P) 1 1 500 $67500 1 1 800 $128000 1 1 800 $128000 2 1.5 948 $138000 2 1 904 $145000 2 2 1125 $154900 2 1.5 1050 $156000 2 2 1265 $158500 2 2 1010 $164900 2 2.5 1140 $171000 2 2 1150 $173000 4 1.5...

  • Problems 473 results from parts (a), (b), and (c). What model seems most plausible? How do the da...

    can you answer question 9 please Problems 473 results from parts (a), (b), and (c). What model seems most plausible? How do the data limit your conclusions? tle the data from Freund (1979), presented in Problem 22 in Chapter 14. Taking be model discussed there as the maximum model, repeat parts (a) through (h) of Problem 6. In part (h), note the possible role of collinearity. A random sample of data was collected on residential sales in a large city....

  • I am writing a code for the LC3 Simulator. This is in assembly, I need assistance...

    I am writing a code for the LC3 Simulator. This is in assembly, I need assistance with the numbers 5-8. Thank you. ALU OPERATIONS 1. Compute the sum X +Y and place it at location x3102. 2. Compute X AND Y and place it at location x3103. 3. Compute X OR Y and place it at location x3104. 4. Compute NOT(X) and place it at location x3105. 5. Compute NOT(Y) and place it at location x3106. 6. Compute X +3...

  • . The data set below contains information about the gasoline mileage performance for 32 au- tomob...

    please answer the following using the r code provided . The data set below contains information about the gasoline mileage performance for 32 au- tomobiles. We are interested in developing a model to predict the miles per gallon () using related predictor variables. The variables in the study are Dependent variable: Miles per gallon (v) Independent variables: ri horsepower (ft-lb) ra: torque (ft-lb) r: horsepower+torque (ft-lb) rs: carburetor (barrels) (a) We first start by fitting a model using y and...

  • Credit card fraud is fraud perpetrated through stolen credit cards or credit card information. For years, credit card issuers have been using data mining and statistical tools to detect fraud. Citiba...

    Credit card fraud is fraud perpetrated through stolen credit cards or credit card information. For years, credit card issuers have been using data mining and statistical tools to detect fraud. Citibank reported that knowing the type of product or service bought, frequency of purchases, and size and location of transaction can significantly reduce fraud. (Source: Jesus Mena, Investigative Data Mining for Security and Criminal Detection, Butterworth-Heinemann, pp. 250-251) A data-mining analyst at a major credit card company would like to...

  • A group of physics students collected data from a test of the projectile motion problem that...

    A group of physics students collected data from a test of the projectile motion problem that was analyzed in a previous lab exercise (L5). In their test, the students varied the angle and initial velocity Vo at which the projectile was launched, and then measured the resulting time of flight (tright). Note that tright was the dependent variable, while and Vo were independent variables. The results are listed below. (degrees) Time of Flight (s) Initial Velocity V. (m/s) 15 20...

  • Font A) Complete following missing data (XI-X10) in the table below (Show your Steps) % Market...

    Font A) Complete following missing data (XI-X10) in the table below (Show your Steps) % Market Share PI Revenue (1st year) 90.6 P2 20% 30.000.000 P4 30% X2 50,000 75,000 50.00% 40.00% 9,000,000 45.00% Market Size X1 # Product %Revenue for Product survey Average sales price per unit Number of Unit Sold Annually Revenue per product gross margin per product Total cost of goods year 1 % Annual Maintenance Annual tax rate Long term debit Years Annual R Increase Annual...

  • PLEASE USE THE BELOW GIVEN DATA TO SOLVE THIS PROBLEM. INCLUDING THE BRIEF REPORT. THANK YOU....

    PLEASE USE THE BELOW GIVEN DATA TO SOLVE THIS PROBLEM. INCLUDING THE BRIEF REPORT. THANK YOU. Sales (Y) Calls (X1) Time (X2) Years (X3) Type 47 167 12.9 5 ONLINE 47 167 16.1 5 ONLINE 44 165 14.2 5 GROUP 43 137 16.6 4 NONE 34 184 12.5 4 GROUP 36 173 14.3 4 GROUP 44 160 14.1 4 NONE 34 132 18.2 4 NONE 48 182 14.1 4 ONLINE 41 158 13.8 4 GROUP 38 163 10.8 4 GROUP...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT