Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can you help me with this using R: using the following QUIZ_trialDATA.csvdata set. The data set has 5 columns: subjID, age (in years), initWeight (weight

Can you help me with this using R:

using the following QUIZ_trialDATA.csvdata set.

The data set has 5 columns:

subjID,

age (in years),

initWeight (weight at baseline, in kilograms),

intervention (one of Control, DrugA or DrugB)

and mo6Weight (weight after six months of the assigned intervention, in kilograms). Provide an approximate 95% CI for the average age in the population from which these subjects were sampled.

subjID

age

initWeight

intervention

mo6Weight

101

23

75

Control

87

102

22

94

DrugB

69

103

23

105

Control

67

104

25

89

Control

83

105

24

64

DrugA

81

106

24

71

Control

71

107

23

69

Control

82

108

26

84

DrugB

59

109

25

95

DrugA

75

110

22

76

DrugA

80

111

20

86

DrugB

58

112

23

75

DrugA

76

113

20

75

DrugB

80

114

22

68

Control

67

115

21

75

DrugA

73

116

22

83

Control

82

117

22

89

DrugB

104

118

25

93

DrugA

65

119

24

92

DrugB

69

120

26

75

DrugA

86

121

24

96

DrugB

71

122

25

91

DrugB

69

123

25

71

DrugA

76

124

25

99

DrugA

59

125

25

73

Control

71

126

22

72

Control

82

127

24

80

DrugA

75

128

20

81

DrugA

64

129

23

90

DrugA

77

130

24

72

Control

81

131

21

92

Control

63

132

24

63

DrugB

81

133

24

75

Control

78

134

23

88

DrugA

68

135

22

78

Control

79

136

24

71

Control

72

137

21

84

DrugB

67

138

24

62

Control

82

139

24

76

DrugB

85

140

21

80

DrugA

74

141

29

92

DrugA

80

142

26

72

DrugB

90

143

22

67

DrugA

73

144

22

60

Control

84

145

26

79

DrugB

51

146

24

81

Control

65

147

27

69

Control

71

148

20

85

DrugB

69

149

21

90

DrugA

76

150

20

72

Control

81

151

20

80

Control

94

152

23

90

DrugB

67

153

25

86

DrugA

74

154

23

80

DrugA

79

155

28

80

Control

57

156

21

72

DrugB

95

157

19

84

Control

74

158

25

73

DrugA

61

159

24

85

DrugA

60

160

21

67

DrugB

77

161

24

94

DrugB

89

162

24

70

Control

57

163

23

87

Control

89

164

21

71

DrugB

82

165

24

73

DrugA

96

166

21

86

DrugA

92

167

25

89

DrugA

89

168

21

86

Control

84

169

21

91

DrugB

70

170

23

73

DrugB

83

171

23

78

DrugA

75

172

26

79

DrugB

74

173

24

88

DrugA

77

174

22

73

DrugB

57

175

25

63

Control

81

176

25

88

Control

76

177

25

74

DrugA

99

178

22

74

DrugB

75

179

26

92

Control

79

180

25

93

DrugA

78

181

24

84

DrugA

73

182

22

99

DrugA

106

183

19

83

Control

81

184

23

94

Control

80

185

23

71

DrugB

73

186

23

96

Control

74

187

23

76

DrugA

69

188

19

71

DrugA

79

189

33

69

DrugA

83

190

24

61

DrugB

85

191

21

84

Control

73

192

25

88

DrugA

74

193

22

80

DrugA

70

194

20

75

DrugA

75

195

24

77

Control

61

196

26

89

DrugB

56

197

23

83

Control

77

198

24

82

DrugB

84

199

21

72

Control

87

200

25

82

DrugA

73

201

27

78

DrugA

53

202

23

83

DrugA

52

203

25

93

Control

73

204

26

89

DrugA

73

205

21

114

DrugA

79

206

23

84

Control

75

207

22

75

Control

67

208

23

87

Control

59

209

22

75

DrugB

80

210

26

77

Control

77

211

18

68

DrugA

82

212

22

77

Control

64

213

23

76

Control

74

214

28

77

DrugA

94

215

23

72

DrugB

83

216

26

73

DrugA

86

217

20

87

Control

69

218

21

79

DrugB

71

219

20

71

DrugB

62

220

27

74

Control

77

221

25

59

DrugB

87

222

27

80

Control

88

223

21

78

DrugB

68

224

23

82

DrugB

74

225

21

99

DrugB

55

226

23

75

DrugB

78

227

24

84

Control

74

228

25

73

DrugB

68

229

21

73

Control

53

230

20

63

DrugB

75

231

24

93

DrugA

82

232

24

69

DrugA

90

233

24

86

Control

78

234

22

83

DrugB

64

235

23

104

DrugB

52

236

24

90

DrugB

71

237

23

98

DrugB

70

238

26

63

DrugA

67

239

25

78

DrugB

88

240

21

83

DrugA

83

241

20

80

DrugB

72

242

19

73

DrugB

82

243

22

87

DrugA

72

244

25

99

DrugB

72

245

21

89

Control

78

246

20

81

DrugB

75

247

24

81

DrugB

75

248

20

89

DrugB

80

249

24

88

Control

65

250

23

74

Control

70

251

24

89

Control

65

252

23

79

DrugB

79

253

25

94

DrugB

78

254

27

74

DrugB

73

255

23

84

DrugB

79

256

24

84

DrugB

84

257

24

67

Control

79

258

19

85

Control

98

259

22

74

Control

70

260

24

81

DrugB

104

261

21

66

DrugA

84

262

22

58

Control

89

263

22

85

DrugA

81

264

21

67

DrugA

86

265

24

65

DrugA

75

266

23

76

DrugA

95

267

28

80

DrugB

86

268

22

69

DrugB

85

269

23

77

DrugB

80

270

22

79

DrugA

84

271

19

74

DrugA

78

272

21

67

DrugB

91

273

22

61

DrugB

81

274

22

98

DrugB

66

275

22

67

Control

63

276

20

85

DrugA

83

277

22

75

Control

67

278

23

80

DrugA

77

279

25

57

DrugB

70

280

20

77

Control

66

281

20

83

DrugB

101

282

25

83

Control

74

283

22

101

DrugA

71

284

25

77

Control

78

285

27

75

Control

66

286

19

87

Control

75

287

25

78

DrugB

77

288

21

63

DrugA

70

289

23

83

Control

76

290

25

82

DrugA

67

291

24

77

Control

88

292

21

75

DrugA

76

293

23

72

Control

68

294

23

69

DrugA

69

295

28

74

DrugA

81

296

28

99

DrugA

88

297

25

60

DrugB

76

298

24

64

Control

84

299

22

88

DrugA

63

300

20

89

Control

53

301

22

81

DrugB

69

302

24

77

DrugB

71

303

21

81

Control

71

304

21

72

Control

77

305

21

88

DrugB

73

306

25

67

DrugB

63

307

26

87

DrugB

75

308

22

78

DrugB

69

309

22

87

DrugB

78

310

22

85

DrugA

72

311

22

78

DrugB

86

312

19

67

DrugB

73

313

22

93

DrugA

76

314

22

90

DrugA

66

315

20

88

DrugB

52

316

21

69

DrugA

85

317

23

79

Control

70

318

26

100

DrugA

81

319

27

59

Control

60

320

24

82

DrugA

74

321

19

74

Control

63

322

22

90

DrugA

81

323

25

62

DrugA

88

324

19

78

DrugB

62

325

23

83

Control

73

326

24

77

Control

79

327

27

75

Control

65

328

23

62

DrugB

70

329

26

94

DrugA

67

330

24

79

Control

63

331

23

74

DrugB

80

332

23

75

Control

80

333

23

89

DrugA

97

334

23

82

DrugA

66

335

23

72

DrugB

71

336

20

85

Control

80

337

23

69

DrugB

77

338

24

65

Control

77

339

22

78

Control

76

340

21

73

Control

74

341

24

65

DrugB

73

342

23

60

DrugB

66

343

19

86

Control

84

344

23

90

DrugB

58

345

23

76

DrugB

74

346

22

84

Control

73

347

24

92

Control

112

348

24

76

DrugB

72

349

21

62

DrugB

85

350

25

84

DrugA

53

351

19

78

Control

77

352

22

95

DrugA

76

353

25

68

DrugB

77

354

22

94

DrugA

63

355

26

84

DrugB

104

356

24

73

Control

64

357

30

84

DrugA

73

358

22

77

DrugA

65

359

20

69

Control

85

360

25

77

DrugB

77

361

22

70

DrugA

62

362

20

79

DrugB

81

363

21

63

DrugA

71

364

23

83

DrugA

72

365

24

81

DrugA

76

366

25

80

Control

78

367

23

75

DrugA

100

368

26

89

DrugA

66

369

27

85

DrugA

59

370

22

68

Control

69

371

23

95

DrugB

79

372

28

69

Control

68

373

22

92

DrugB

74

374

22

83

DrugB

87

375

20

102

DrugA

65

376

21

77

DrugB

78

377

21

73

DrugB

91

378

22

89

Control

68

379

24

81

Control

79

380

21

81

DrugA

95

381

26

102

DrugB

70

382

29

87

DrugB

75

383

22

61

DrugB

53

384

24

87

Control

90

385

29

91

Control

84

386

20

97

DrugA

81

387

20

72

DrugA

67

388

24

76

DrugA

86

389

23

67

DrugA

75

390

22

102

DrugA

86

391

25

75

DrugA

76

392

21

76

DrugB

74

393

26

60

DrugB

92

394

20

98

Control

84

395

25

70

Control

67

396

22

81

Control

64

397

22

76

DrugA

85

398

24

72

Control

66

399

22

83

DrugA

60

400

25

89

Control

77

401

25

67

Control

70

402

25

73

DrugA

81

403

21

75

Control

80

404

24

94

DrugA

84

405

25

74

DrugB

69

406

22

71

DrugA

85

407

23

83

Control

66

408

25

62

DrugA

82

409

22

84

DrugA

78

410

26

89

DrugB

67

411

23

82

DrugA

90

412

23

83

DrugA

77

413

21

80

DrugA

75

414

24

80

DrugB

59

415

22

78

DrugB

59

416

20

78

DrugB

85

417

23

68

DrugA

74

418

21

76

Control

61

419

25

73

Control

94

420

21

80

DrugA

91

421

24

89

DrugA

80

422

23

94

Control

70

423

21

96

Control

74

424

20

84

DrugA

71

425

23

85

Control

86

426

26

61

DrugA

76

427

19

87

DrugB

80

428

23

84

DrugA

92

429

23

78

DrugA

83

430

24

90

DrugA

72

431

22

61

Control

72

432

27

102

Control

83

433

25

68

Control

78

434

28

65

DrugA

71

435

21

90

Control

81

436

21

86

DrugA

65

437

22

58

DrugB

64

438

22

93

DrugA

85

439

26

98

DrugA

61

440

20

100

DrugB

82

441

26

73

DrugA

55

442

23

96

DrugB

65

443

20

74

DrugA

67

444

23

93

DrugB

59

445

21

91

DrugB

73

446

24

76

Control

89

447

24

59

Control

98

448

22

76

DrugB

92

449

22

72

DrugA

85

450

23

98

DrugA

72

451

20

67

DrugA

75

452

21

82

Control

66

453

24

101

DrugA

74

454

25

81

DrugB

66

455

23

73

DrugB

86

456

22

92

DrugB

80

457

20

73

DrugB

74

458

22

82

DrugB

70

459

29

85

Control

93

460

24

81

DrugB

83

461

22

73

DrugB

81

462

26

80

DrugB

78

463

19

81

DrugB

84

464

21

95

DrugB

70

465

23

70

Control

84

466

22

69

DrugB

73

467

24

77

Control

59

468

23

94

Control

84

469

23

87

Control

86

470

23

83

Control

83

471

22

72

DrugB

81

472

21

91

DrugB

57

473

23

77

Control

81

474

22

80

DrugA

76

475

24

81

DrugB

74

476

20

85

DrugA

93

477

22

74

DrugB

67

478

23

89

DrugB

97

479

24

79

Control

79

480

21

82

DrugB

86

481

21

81

DrugA

75

482

26

70

DrugB

84

483

23

81

Control

66

484

21

77

Control

69

485

23

62

DrugA

76

486

24

74

Control

64

487

22

66

DrugA

86

488

23

63

DrugA

85

489

20

79

DrugA

78

490

26

87

DrugA

81

491

23

79

DrugA

65

492

24

81

Control

96

493

25

90

DrugA

74

494

26

95

Control

75

495

22

73

Control

90

496

28

87

DrugA

93

497

26

82

DrugB

57

498

23

58

DrugA

88

499

25

82

Control

86

500

22

85

DrugB

78

501

27

69

DrugB

65

502

22

58

Control

82

503

22

95

DrugB

51

504

24

93

DrugB

81

505

25

84

DrugA

72

506

21

84

Control

75

507

23

63

DrugA

64

508

21

55

DrugA

67

509

23

78

DrugA

63

510

18

71

Control

71

511

23

87

DrugA

76

512

22

98

DrugB

77

513

27

80

DrugB

75

514

22

81

DrugB

72

515

23

71

DrugA

75

516

24

57

DrugB

70

517

21

81

Control

84

518

26

91

Control

82

519

25

87

DrugA

67

520

24

71

DrugA

59

521

20

84

DrugA

85

522

27

83

Control

87

523

22

76

Control

85

524

18

84

Control

82

525

27

86

DrugB

90

526

20

74

DrugA

76

527

21

73

Control

82

528

27

78

DrugB

74

529

25

81

DrugA

80

530

22

76

Control

72

531

23

70

DrugA

73

532

21

87

DrugB

67

533

23

75

Control

88

534

25

77

DrugA

68

535

27

78

Control

75

536

24

74

Control

63

537

25

70

DrugB

69

538

21

61

DrugB

86

539

24

82

DrugB

62

540

24

96

DrugB

74

541

26

69

DrugB

66

542

23

77

DrugB

76

543

23

79

DrugB

85

544

21

70

Control

74

545

27

84

DrugA

63

546

26

95

DrugB

80

547

23

83

Control

67

548

23

63

DrugB

86

549

20

64

Control

88

550

22

92

Control

76

551

22

93

Control

93

552

22

82

Control

68

553

22

83

DrugB

57

554

23

77

DrugB

66

555

21

77

Control

78

556

28

73

DrugB

73

557

23

96

DrugA

65

558

25

77

Control

74

559

25

82

DrugB

72

560

23

79

DrugA

71

561

23

82

DrugB

70

562

25

93

DrugA

69

563

21

68

DrugB

79

564

22

73

Control

84

565

21

92

DrugA

78

566

18

81

DrugA

78

567

24

89

Control

58

568

25

73

DrugB

81

569

24

78

DrugA

65

570

23

81

Control

88

571

25

63

Control

76

572

19

73

DrugA

78

573

22

78

Control

86

574

24

87

Control

77

575

25

72

Control

65

576

22

85

DrugA

82

577

22

71

Control

66

578

20

81

DrugB

87

579

23

81

DrugA

82

580

20

69

DrugB

90

581

26

85

DrugB

75

582

25

69

DrugB

77

583

33

92

Control

94

584

25

63

DrugA

73

585

21

81

DrugB

65

586

26

77

Control

73

587

23

84

Control

86

588

21

79

DrugB

83

589

22

84

DrugB

81

590

27

80

DrugA

88

591

22

98

DrugB

69

592

22

78

DrugB

63

593

24

83

DrugB

82

594

23

81

DrugA

48

595

22

87

Control

77

596

26

66

DrugA

75

597

25

62

DrugA

73

598

22

88

DrugB

66

599

24

79

DrugA

71

600

26

81

Control

75

601

26

87

DrugA

68

602

22

87

DrugB

82

603

22

68

Control

79

604

26

71

DrugA

81

605

20

87

DrugB

74

606

26

81

DrugB

62

607

21

65

Control

73

608

2

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_2

Step: 3

blur-text-image_3

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

Challenging Math Problems

Authors: Terry Stickels

1st Edition

0486808572, 9780486808574

More Books

Students also viewed these Mathematics questions

Question

Describe the business functions in the value chain. lo2

Answered: 1 week ago