You are on page 1of 2

Results Friday March 31 01:44:43 2023 Page 1

___ ____ ____ ____ ____(R)


/__ / ____/ / ____/
___/ / /___/ / /___/
Statistics/Data Analysis

User: Umer
Project: Econ_Assignment 2

___ ____ ____ ____ ____ (R)


/__ / ____/ / ____/
___/ / /___/ / /___/ 14.0 Copyright 1985-2015 StataCorp LP
Statistics/Data Analysis StataCorp
4905 Lakeway Drive
MP - Parallel Edition College Station, Texas 77845 USA
800-STATA-PC http://www.stata.com
979-696-4600 stata@stata.com
979-696-4601 (fax)

Single-user 8-core Stata perpetual license:


Serial number: 10699393
Licensed to: COMSAT
COMSAT

Notes:
1. Unicode is supported; see help unicode_advice.
2. Maximum number of variables is set to 5000; see help set_maxvar.

1 . import excel "C:\Users\hassa\OneDrive\Desktop\TrainExer11.xls", sheet("Data Training Exercise 1


> 1") firstrow

2 . histogram Expenditures
(bin=5, start=89, width=4)

3 . histogram Age
(bin=5, start=15, width=8.4)

4 . twoway (scatter Expenditures Age)

5 . mean Age

Mean estimation Number of obs = 26

Mean Std. Err. [95% Conf. Interval]

Age 39.34615 2.086545 35.04883 43.64347

6 . mean Expenditures

Mean estimation Number of obs = 26

Mean Std. Err. [95% Conf. Interval]

Expenditures 101.1154 1.197853 98.64836 103.5824

7 . sort age
variable age not found
r(111);
Results Friday March 31 01:44:43 2023 Page 2

8 . sort Age

9 . br

10 . br

11 . mean Expenditures if Age>40

Mean estimation Number of obs = 12

Mean Std. Err. [95% Conf. Interval]

Expenditures 96 1.121417 93.53178 98.46822

12 . mean Expenditures if Age=>40


>40 invalid name
r(198);

13 . mean Expenditures if Age==>40


>40 invalid name
r(198);

14 . mean Expenditures if Age<40

Mean estimation Number of obs = 13

Mean Std. Err. [95% Conf. Interval]

Expenditures 106.3846 .5131409 105.2666 107.5027

15 . * For client above 50 years old will be around 90 to 95 whereas for client who is 25 years old
> ill be above 106.

16 .

You might also like