Question

What is the SAS Coding for a Paired T-test and boxplot of the following dataset on...

What is the SAS Coding for a Paired T-test and boxplot of the following dataset on cars owned before and after winning the lottery?

Before: 1, 2, 2, 1

After: 3, 3, 4, 2

Homework Answers

Answer #1

I dont have SAS so could not run it. If any bug please let me know,

Below is the code you can execute in SAS,

1) PAIRED t-test

Data Cars;

Input cars_before cars_after;

Datalines;

1 3

2 3

2 4

1 2;

run;

Proc TTEST;

Paired cars_before cars_after;

paired_t_test_cars;

run;

2) Box Plot of the data

 

Data Cars_1;

Input Sr_No cars_before;

Datalines;

1 1

2 2

3 2

4 1;

run;

PROC SGPLOT data = Cars_1;
Sr_No cars_before / category = type;
Title "Cars Before BoxPlot";

Run;

 

Data Cars_2;

Input Sr_No cars_after;

Datalines;

1 3

2 3

3 4

4 2;

run;

PROC SGPLOT data = Cars_2;
Sr_No cars_after / category = type;
Title "Cars After BoxPlot";

Run;

Know the answer?
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
Similar Questions
Use "PLUC" data and the description for the dataset on the blackboard. What t test shall...
Use "PLUC" data and the description for the dataset on the blackboard. What t test shall be used to compare the population means of "LWAS" between male and female. One sample t test Two sample independent t test paired t test X^2 test Two sample proportion z test Use "PLUC" data and the description for the dataset on the blackboard. What t test shall be test if the population mean of LWAS of males is more than 75. One sample...
What is the difference between a One sample t-test, Unpooled t-test, Pooled t-test, Paired t-test, and...
What is the difference between a One sample t-test, Unpooled t-test, Pooled t-test, Paired t-test, and Mann Whitney U test? How do you know when to use each test?
A paired t-test would be the appropriate test for which of the following situations: A. Compare...
A paired t-test would be the appropriate test for which of the following situations: A. Compare the mean body temperature for 15 men before getting the flu shot to their mean body temp after getting the flu shot B. Compare the mean body temp for 15 men after they get a flu shot to the value of 100 degress C. Compare the mean body temp for 15 men who have had a flu shot to the mean body temp for...
Conduct a paired-samples (repeated measures) t test using the following data: The Dark Souls video game...
Conduct a paired-samples (repeated measures) t test using the following data: The Dark Souls video game series has achieved meme-status as being controller-breaking difficult. A researcher was interested in how frustrating playing the games can be so she asked participants to rate their base frustration levels and then had them play the first game in the series – Dark Souls – as its seen as one of the harder games. The data is as follows: Participant Before After A 6...
Question: Please indicate if the following are independent or paired samples of t-tests: a) Attitudes of...
Question: Please indicate if the following are independent or paired samples of t-tests: a) Attitudes of 8th graders toward art before and after visiting a museum on a field trip b) Differences in political opinions of father and sons c) Differences in rates of attendance at Rutgers football games for students raised in New Jersey and those raised in  Pennsylvania d) Differences between freshman and sophomores in the class on time spent studying e) A comparison between education levels of the...
What is the appropriate test (e.g., Independent Samples T Test, Paired Samples T-Test, ANOVA, Correlation) and...
What is the appropriate test (e.g., Independent Samples T Test, Paired Samples T-Test, ANOVA, Correlation) and why (e.g., what type of variables are you analyzing)? What is the effect of living arrangements on the overall satisfaction at University.
What is precisely the difference in the situation for independent samples and matched paired samples t-test...
What is precisely the difference in the situation for independent samples and matched paired samples t-test that lead to different types of computation of t-values.
Two sample Dependent t-test (or Paired t-test) You want to test your hypothesis below: There is...
Two sample Dependent t-test (or Paired t-test) You want to test your hypothesis below: There is a difference in mean test scores between Exam 1 and Exam 2             Provide your answers in the template below the data set. Exam 1 Exam 2 17 19 18 20 16 22 18 24 12 10 20 25 18 20 20 22 20 21 22 23 20 20 10 10 8 12 12 14 16 12 16 20 18 22 20 24 18...
What is the path to run a paired-samples t-test on SPSS? (step by step) Please be...
What is the path to run a paired-samples t-test on SPSS? (step by step) Please be specific and clear. Thanks so much in advance!!
Then you will do a paired t-test on the two # of letters variables using a...
Then you will do a paired t-test on the two # of letters variables using a level of significance. What is the test-statistic and p-value? # of letters in first name #letters in last name 5 6 5 5 7 7 4 6 7 7 6 5 7 9 6 9 4 12 5 7 4 5 7 5