Question: please need anyone can help me by solving these two questions in SAS program/code, please I need code and output 1. Question DATA TRANS; INPUT

please need anyone can help me by solving these two questions in SAS program/code, please I need code and output

1.Question

DATA TRANS;

INPUT THICK @@;

DATALINES;

3.468 3.428 3.509 3.516 3.461 3.492 3.478 3.556 3.482 3.512

3.490 3.467 3.498 3.519 3.504 3.469 3.497 3.495 3.518 3.523

3.458 3.478 3.443 3.500 3.449 3.525 3.461 3.489 3.514 3.470

3.561 3.506 3.444 3.479 3.524 3.531 3.501 3.495 3.443 3.458

3.481 3.497 3.461 3.513 3.528 3.496 3.533 3.450 3.516 3.476

3.512 3.550 3.441 3.541 3.569 3.531 3.468 3.564 3.522 3.520

3.505 3.523 3.475 3.470 3.457 3.536 3.528 3.477 3.536 3.491

3.510 3.461 3.431 3.502 3.491 3.506 3.439 3.513 3.496 3.539

3.469 3.481 3.515 3.535 3.460 3.575 3.488 3.515 3.484 3.482

3.517 3.483 3.467 3.467 3.502 3.471 3.516 3.474 3.500 3.466

;

RUN;

1.1.Use all SAS program code "TRANS" and should be pasted into the Enhanced Editor in order to complete the following questions. A semiconductor manufacturer produces printed circuit boards that are sampled to determine the thickness of their copper plating. The following statements create data set namedTrans, which contains the plating thicknesses (Thick) of 100 boards:

1.1.1.Create SAS code to produce a histogram with a superimposed normality curve, for the variable Thick.

1.1.2.Create label for the variable thick as follows;

-Planting thickness (mils)

1.1.3.Discuss the distribution of the variable.

1.1.4.Generate output in a rich text format.

2: Question

DATA FATCOMP;

INPUT EXPOSURE RESPONSE COUNT;

LABEL RESPONSE = 'HEART DISEASE';

DATALINES;

0 06

0 12

1 04

1 1 11

;

RUN;

Use the SAS program/code "FATCOMP".

The dataset "FATCOMP" contains hypothetical data for a case-control study of high fat diet and the risk of coronary heart disease.

Variables Description

Exposure A binary variable which includes ( 1 = High Cholesterol Diet) & (0 = Low Cholesterol Diet)

Response 1 = Yes and 0 = No, Response indicates whether the individual is susceptible to heart disease.

Count The data is recorded as cell counts which is the frequencies of exposure and response.

Create code that will perform a Chi-Square independence test between the variables EXPOSURE and RESPONSE using "PROC FREQ". The significance level for this Chi-Square test is 0.01. Assign the variable COUNT as the weight. (Note: RESPONSE = Heart Disease).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!