Question

In: Statistics and Probability

In this week’s discussion we will continue to explore SAS. This week we will ask you...

In this week’s discussion we will continue to explore SAS. This week we will ask you to calculate confidence intervals for the mean using SAS. To obtain confidence intervals for the mean you can once again use proc means. I have posted instructions on using SAS for confidence intervals to Moodle.

Background:

A professor at Southland State University was interested in the amount his students pay for rent in off campus apartments. Using a current list of all students at the university as a sampling frame, he selected a simple random sample of 130 students who live off campus. Each student completed a survey regarding their housing. The resulting data is given in the file “housing.txt.” This file contains the following variables:

Gender: the gender of the student as “Female” or “Male”

Rent: The amount, in dollars, that the student spends on their apartment each month.

Utilities: On average, how much the subjects spend on utilities each month.

Roommates: The number of roommates the subject has.

The post:

For this post you are to:

Locate the text file from the course website and save it to your hard drive.

Create a SAS program that opens the data file and reads in the variables.

Calculate a confidence interval for the mean amount students at Southland State University spend on rent for off campus housing.

Post your program to the group for evaluation. Be sure to follow the SAS programming standards. You do not need to post the output only the program.

Female 350 100 3
Female 892 150 1
Female 555 14 2
Female 665 500 3
Female 510 30 0
Male 528.35 0 2
Female 350 70 1
Female 350 50 1
Female 500 45 3
Female 730 200 3
Male 320 150 1
Male 715 0 1
Male 720 0 3
Female 416 100 2
Female 491 0 3
Male 940 0 1
Female 525 0 3
Female 700 0 3
Female 515 0 1
Male 645 0 3
Female 670 0 3
Female 800 100 3
Female 575 30 3
Male 580 30 3
Female 535 0 2
Female 540 0 2
Female 283.33 18.75 1
Male 540 0 2
Female 400 0 2
Male 620 0 3
Male 574 0 1
Female 500 100 1
Female 520 0 2
Male 600 60 1
Female 585 0 3
Female 525 0 3
Female 540 0 2
Male 780 0 1
Female 500 100 1
Female 515 0 1
Female 850 200 0
Female 520 230 3
Female 670 0 3
Female 350 100 1
Female 700 0 3
Female 500 80 0
Female 580 0 1
Female 364 100 3
Female 495 100 3
Female 505 0 2
Female 505 0 3
Female 475 0 3
Male 400 10 3
Female 600 50 1
Female 450 70 1
Male 520 0 3
Male 500 100 1
Female 500 0 3
Female 395 0 3
Female 560 0 2
Male 750 0 3
Male 530 0 3
Female 1000 600 1
Female 370 40 3
Male 510 0 1
Male 685 0 2
Female 560 0 3
Female 720 0 1
Male 280 10 3
Male 450 50 3
Female 540 0 2
Female 375 65 1
Female 515 0 3
Female 513.75 0 3
Male 700 80 0
Female 450 75 3
Male 299 0 1
Female 1000 0 0
Female 500 0 3
Female 530 0 3
Male 595 80 0
Female 660 40 0
Male 400 50 2
Female 700 0 3
Female 506 150 2
Male 250 50 1
Female 434 0 3
Female 350 45 3
Male 490 530 3
Male 650 0 3
Female 629 60 0
Female 700 0 3
Female 560 0 2
Female 650 0 1
Male 670 0 3
Male 500 0 3
Female 375 0 3
Female 550 100 2
Female 635 150 4
Female 510 60 1
Female 600 0 3
Female 380 50 1
Male 550 0 3
Male 700 100 0
Male 550 120 1
Male 555 0 2
Male 312 84 2
Male 550 100 2
Female 570 250 2
Female 450 50 1
Male 525 0 3
Male 450 100 3
Male 700 0 2
Female 700 250 4
Female 600 0 3
Male 702 0 3
Female 550 200 3
Female 800 100 0
Female 600 0 2
Female 325 50 3
Male 420 61 4
Female 400 100 3
Female 610 0 3
Male 670 0 3
Female 702 0 3
Female 500 300 1
Male 695 0 3
Male 600 40 3
Female 700 0 1
Male 625 75 1

Solutions

Expert Solution

Solution:

use datalines to read data

Input statement to input the varaibles.

Character variable here is gender and it placed a dollar symbol.

SAS PROGRAM to create Housing dataset

data housing;

infile datalines;

input  Gender $ Rent  Utilities Roommates;

datalines;

Female 350 100 3
Female 892 150 1
Female 555 14 2
Female 665 500 3
Female 510 30 0
Male 528.35 0 2
Female 350 70 1
Female 350 50 1
Female 500 45 3
Female 730 200 3
Male 320 150 1
Male 715 0 1
Male 720 0 3
Female 416 100 2
Female 491 0 3
Male 940 0 1
Female 525 0 3
Female 700 0 3
Female 515 0 1
Male 645 0 3
Female 670 0 3
Female 800 100 3
Female 575 30 3
Male 580 30 3
Female 535 0 2
Female 540 0 2
Female 283.33 18.75 1
Male 540 0 2
Female 400 0 2
Male 620 0 3
Male 574 0 1
Female 500 100 1
Female 520 0 2
Male 600 60 1
Female 585 0 3
Female 525 0 3
Female 540 0 2
Male 780 0 1
Female 500 100 1
Female 515 0 1
Female 850 200 0
Female 520 230 3
Female 670 0 3
Female 350 100 1
Female 700 0 3
Female 500 80 0
Female 580 0 1
Female 364 100 3
Female 495 100 3
Female 505 0 2
Female 505 0 3
Female 475 0 3
Male 400 10 3
Female 600 50 1
Female 450 70 1
Male 520 0 3
Male 500 100 1
Female 500 0 3
Female 395 0 3
Female 560 0 2
Male 750 0 3
Male 530 0 3
Female 1000 600 1
Female 370 40 3
Male 510 0 1
Male 685 0 2
Female 560 0 3
Female 720 0 1
Male 280 10 3
Male 450 50 3
Female 540 0 2
Female 375 65 1
Female 515 0 3
Female 513.75 0 3
Male 700 80 0
Female 450 75 3
Male 299 0 1
Female 1000 0 0
Female 500 0 3
Female 530 0 3
Male 595 80 0
Female 660 40 0
Male 400 50 2
Female 700 0 3
Female 506 150 2
Male 250 50 1
Female 434 0 3
Female 350 45 3
Male 490 530 3
Male 650 0 3
Female 629 60 0
Female 700 0 3
Female 560 0 2
Female 650 0 1
Male 670 0 3
Male 500 0 3
Female 375 0 3
Female 550 100 2
Female 635 150 4
Female 510 60 1
Female 600 0 3
Female 380 50 1
Male 550 0 3
Male 700 100 0
Male 550 120 1
Male 555 0 2
Male 312 84 2
Male 550 100 2
Female 570 250 2
Female 450 50 1
Male 525 0 3
Male 450 100 3
Male 700 0 2
Female 700 250 4
Female 600 0 3
Male 702 0 3
Female 550 200 3
Female 800 100 0
Female 600 0 2
Female 325 50 3
Male 420 61 4
Female 400 100 3
Female 610 0 3
Male 670 0 3
Female 702 0 3
Female 500 300 1
Male 695 0 3
Male 600 40 3
Female 700 0 1
Male 625 75 1

;

run;

#to find confidence interval using procedure univariate for variable Rent

title 'Confidence Intervals for the amount spent on Rent';

ods select BasisIntervals;

Proc univariate data=Housing cibasic;

var Rent;

run;

# we get 95% confidence interval for the mean by above program.if you want 90%

Proc univariate data=Housing cibasic(alpha=0.1);

var Rent;

run;


Related Solutions

QUESTION 1: For our discussion/participation assignment this week, we will continue the company/industry research. This week,...
QUESTION 1: For our discussion/participation assignment this week, we will continue the company/industry research. This week, you should determine the following: Industry Description and features Top 4 Industry Leaders Industry Type and Why: Monopoly, Oligopoly, Monopolistic Competition and Perfect Competition Industry Sales and Revenue Figures Number of Competitors Competition Analysis Compare your firm to top 4 in sales, revenues, profits, stock price Behavior of your firm due to its market structure Future of the Industry – profits, new competitors, ways...
This week’s discussion will allow you to combine what we learned about global marketing with the...
This week’s discussion will allow you to combine what we learned about global marketing with the BABY BOOMER PHONE APPLICATION product you are using for your marketing plan. Assume that you are being sent to another country other then Canada to market the BABY BOOMER APPLICATION (activities for active boomers) product you are using in your class marketing plan. Considering everything we have learned so far about the marketing mix, environment and other factors you need to develop a plan...
This week’s discussion will allow you to combine what we learned about global marketing with the...
This week’s discussion will allow you to combine what we learned about global marketing with the product you are using for your marketing plan. Assume that you are being sent to another country other then Canada to market the baby boomer app (activities for active boomers) product you are using in your class marketing plan. Considering everything we have learned so far about the marketing mix, environment and other factors you need to develop a plan to sell your product....
In Learning Plan 6 we explore the process of conducting research. For this discussion you are...
In Learning Plan 6 we explore the process of conducting research. For this discussion you are introduced to Research Methods and various terms and definitions related to research. SAGE provides a helpful Research Methods Map to assist you with becoming familiar with the research processes. Review the map, terms, and definitions and then report to your classmates what you learned from reviewing the map. Do you have any questions or concerns about conducting research? Share your thoughts with your classmates...
ONLY SPSS In this week’s assignment, you will explore the different types of graphs used to...
ONLY SPSS In this week’s assignment, you will explore the different types of graphs used to visualize data. Results from SPSS should be copied and pasted into a Word document for submission. Each graph must contain a narrative description of what it represents and an interpretation of the image. Please use the provided datasets for building these figures. Pie chart Bar chart Scatterplot Histogram Data is X Y 382 4215 397 4472 344 3421 275 4077 406 3845 337 2844...
ONLY SPSS In this week’s assignment, you will explore the different types of graphs used to...
ONLY SPSS In this week’s assignment, you will explore the different types of graphs used to visualize data. Results from SPSS should be copied and pasted into a Word document for submission. Each graph must contain a narrative description of what it represents and an interpretation of the image. Please use the provided datasets for building these figures. Pie chart Bar chart Scatterplot Histogram Data is X Y 382 4215 397 4472 344 3421 275 4077 406 3845 337 2844...
This week as we explore cultural diversity it is important to realize the impact culture plays...
This week as we explore cultural diversity it is important to realize the impact culture plays in health promotion. It is essential that we become culturally competent to ensure we provide the best possible care and services to all of the patients we serve regardless of cultural and ethnic backgrounds. Culture is embedded in one’s worldview and perception about health yet we often overlook how culture plays a role in an individual’s health outcomes. In this week’s discussion, you will...
6-1 Discussion: Professional Relevance of Financial Accounting Previous Next In this week’s discussion, you will make...
6-1 Discussion: Professional Relevance of Financial Accounting Previous Next In this week’s discussion, you will make connections between your chosen field and what you have learned about financial accounting up to this point. This discussion is important practice for the second part of your final project, in which you will analyze the practical applications of financial accounting in terms of how relevant it is to your own professional aspirations. In your initial post, describe your current or aspiring professional identity,...
This week we continue to build our understanding of ethical accounting practices by examining the intersection...
This week we continue to build our understanding of ethical accounting practices by examining the intersection of business and accounting practices by examining the ethical responsibilities of accountants when encountering company procedures affecting the accounting function, and its related responsibilities. Considering differing bases for accounting (cash, accrual) available, Discuss the legal rights, responsibilities, and liabilities involved when the accounting function is asked to take action(s) that may be inconsistent with the accounting basis that the company has traditionally used. Does...
Reflect back to this week’s lecture and discussion where we learned about the consumer decision-making process....
Reflect back to this week’s lecture and discussion where we learned about the consumer decision-making process. In your own words, explain the process and how you would utilize it in creation of a marketing plan
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT