Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE INCLUDE R CODE !!! THANKS IN ADVANCE. A researcher performs a survey of a random sample of young people aged 25 to 32. The

PLEASE INCLUDE R CODE !!! THANKS IN ADVANCE. A researcher performs a survey of a random sample of young people aged 25 to 32. The sample of such people included 340 individuals with four-year college degrees and 260 individuals with high school degrees but no college. (Individuals with community college degrees or no high school degree are excluded here, as are individuals who are not working; you should also exclude them from your analysis.) The results are given in two data files (posted in the Data folder of the Files section of Canvas):

college.txt contains the annual earnings of the 340 individuals with college degrees.

highschool.txt contains the annual earnings of the 260 individuals with high school degrees but no college.

Note: The data is fictitious but realistic. Save this data to your computer and read it into R, e.g. by using scan(file.choose()).

college.txt data from file:

23479

153459

63232

35979

80191

28683

12471

157464

178628

35392

34926

17630

18538

103289

138072

133389

67068

124653

186166

58463

77144

215643

78254

4613

94359

22002

89917

72182

32389

12815

23971

158264

37797

41161

108841

250727

4969

67333

43297

137134

5533

49096

30920

16217

26270

86486

3666

19675

53151

31020

32201

99669

73866

32609

40718

21258

64301

125598

77417

14580

59773

70278

4046

155660

9295

127436

121871

21250

74493

130870

108717

133542

23886

54777

8806

37010

12856

20099

37336

19755

179703

45053

19039

16345

72151

58974

68586

158648

31352

8126

138624

17025

53795

70761

3127

53619

80270

21266

20881

39844

18758

58594

63728

86894

1513

91863

43266

55025

11298

29287

84949

220615

43571

21863

89851

7242

8871

24247

3724

28124

14980

53017

21360

76107

13469

27401

35457

91486

11911

5550

29444

133190

175264

63267

151801

23225

24938

18971

70441

28910

51875

21002

25135

92586

108126

63248

130524

59499

5780

215247

15586

135203

180467

59673

9488

84329

1888

387653

23250

32044

111463

22109

9327

200289

72526

22703

43670

174273

55678

9936

14510

879

25493

85949

2054

20870

191194

9756

24792

79491

168429

4888

23007

59487

86533

109797

89187

114869

5041

37877

70069

40904

65613

64211

12293

119451

33053

99662

40781

11944

10799

29557

101732

78052

59463

128958

64428

37530

1511

35056

30070

4211

107616

38964

61918

13266

15323

161465

34786

33419

50487

35138

61627

25302

40441

13565

45764

33081

3053

47057

48936

76198

51039

65252

32964

69707

48633

4573

24110

37723

153957

126927

55747

40993

72088

32251

72961

85754

80768

121178

504

221961

40606

60288

6447

543

20499

13752

34663

136053

1179

32992

59115

230821

77357

198095

5645

26328

284283

6785

29150

47976

100314

50440

18880

61864

26258

98952

10969

104292

703

75581

66774

14596

100987

37433

75076

20977

7524

75719

53862

69845

10221

81692

72387

34929

43272

67936

104282

41176

39713

42210

58804

22947

57188

26785

18539

622

50555

23312

30828

77703

116019

30826

77374

168431

131924

81452

118944

29527

152668

35716

75513

124529

25375

48717

30525

68734

200499

300563

100310

88852

38763

106793

13713

38374

116264

57392

20587

36258

high school.txt data:

23479

153459

63232

35979

80191

28683

12471

157464

178628

35392

34926

17630

18538

103289

138072

133389

67068

124653

186166

58463

77144

215643

78254

4613

94359

22002

89917

72182

32389

12815

23971

158264

37797

41161

108841

250727

4969

67333

43297

137134

5533

49096

30920

16217

26270

86486

3666

19675

53151

31020

32201

99669

73866

32609

40718

21258

64301

125598

77417

14580

59773

70278

4046

155660

9295

127436

121871

21250

74493

130870

108717

133542

23886

54777

8806

37010

12856

20099

37336

19755

179703

45053

19039

16345

72151

58974

68586

158648

31352

8126

138624

17025

53795

70761

3127

53619

80270

21266

20881

39844

18758

58594

63728

86894

1513

91863

43266

55025

11298

29287

84949

220615

43571

21863

89851

7242

8871

24247

3724

28124

14980

53017

21360

76107

13469

27401

35457

91486

11911

5550

29444

133190

175264

63267

151801

23225

24938

18971

70441

28910

51875

21002

25135

92586

108126

63248

130524

59499

5780

215247

15586

135203

180467

59673

9488

84329

1888

387653

23250

32044

111463

22109

9327

200289

72526

22703

43670

174273

55678

9936

14510

879

25493

85949

2054

20870

191194

9756

24792

79491

168429

4888

23007

59487

86533

109797

89187

114869

5041

37877

70069

40904

65613

64211

12293

119451

33053

99662

40781

11944

10799

29557

101732

78052

59463

128958

64428

37530

1511

35056

30070

4211

107616

38964

61918

13266

15323

161465

34786

33419

50487

35138

61627

25302

40441

13565

45764

33081

3053

47057

48936

76198

51039

65252

32964

69707

48633

4573

24110

37723

153957

126927

55747

40993

72088

32251

72961

85754

80768

121178

504

221961

40606

60288

6447

543

20499

13752

34663

136053

1179

32992

59115

230821

77357

198095

5645

26328

284283

6785

29150

47976

100314

50440

18880

61864

26258

98952

10969

104292

703

75581

66774

14596

100987

37433

75076

20977

7524

75719

53862

69845

10221

81692

72387

34929

43272

67936

104282

41176

39713

42210

58804

22947

57188

26785

18539

622

50555

23312

30828

77703

116019

30826

77374

168431

131924

81452

118944

29527

152668

35716

75513

124529

25375

48717

30525

68734

200499

300563

100310

88852

38763

106793

13713

38374

116264

57392

20587

36258

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

An Introduction To Categorical Data Analysis

Authors: Alan Agresti

2nd Edition

0470653205, 9780470653203

More Books

Students also viewed these Mathematics questions