<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to make a combined dataset permanent, and how to solve for proportion populations in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-make-a-combined-dataset-permanent-and-how-to-solve-for/m-p/843130#M36559</link>
    <description>&lt;PRE&gt;&lt;CODE class=""&gt;Hello guys, i was working on these codes and I am struggling with creating a permanent dataset for two datasets&lt;BR /&gt;that I merged. Secondly, is the variance equality test a good way to answer the fifth question? Thanks..&lt;BR /&gt;I have included my code and my practice questions&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*/ QUESTION 1 */ ;


DATA Black;
INFILE "C:\Users\iyink\Downloads\black22fall.txt" DLM='09'x FIRSTOBS=2;
INPUT ID sex race age height weight bpsystol bpdiast tcresult iron heartatk diabetes DOB;
INFORMAT DOB date9. ; 
FORMAT DOB date9.;
RUN;




*/ QUESTION 2 */ ;

LIBNAME exam2 "C:\Users\iyink\Downloads";
RUN;

PROC PRINT DATA=perm2.white22fall;
RUN;

PROC SORT DATA=Black NODUPS; BY ID; RUN;
PROC SORT DATA=perm2.white22fall NODUPS; BY ID; RUN;



DATA MyCombined;
MERGE Black(IN=a) perm2.white22fall(IN=b);
BY ID;
IF a=1 OR b=1 THEN OUTPUT MyCombined;
RUN;

PROC PRINT DATA=MyCombined;
RUN;



*/ QUESTION 3 /*

yes we have outliers and extreme outliers for iron in this dataset
 those with mild outliers = 28 persons
those with extreme outliers = 2 persons;


PROC MEANS DATA=MyCombined N NMISS MIN P25 P50 P75 MAX MEAN STD MAXDEC=1;
VAR iron;
RUN;

PROC SGPLOT DATA=MyCombined;
HBOX iron;
RUN;

PROC SGPLOT DATA=MyCombined;
HBOX iron/EXTREME;
RUN;

PROC PRINT DATA=MyCombined;
WHERE iron &amp;lt; 76 - 1.5*(120-76)
   OR iron &amp;gt; 120 + 1.5*(120-76);
VAR ID iron;
RUN;

PROC PRINT DATA=MyCombined;
WHERE iron &amp;lt; 76 - 3*(120-76)
   OR iron &amp;gt; 120 + 3*(120-76);
VAR ID iron;
RUN;



*/ QUESTION 4 */;

PROC MEANS DATA=MyCombined MEAN CLM MAXDEC=2;
VAR tcresult;
RUN;

PROC UNIVARIATE DATA=MyCombined MU0=200;
VAR tcresult;
RUN;


ODS GRAPHICS ON;
PROC TTEST DATA=MyCombined HO=200 PLOTS(ONLY) = (SUMMARYPLOT);
VAR tcresult;
RUN;  ODS GRAPHICS OFF;


	*/ Ha: CLevel ^= 120
       H0: CLevel = 120 
       P-value from Student's test = &amp;lt;0.0001
       Decision:  Since, &amp;lt;.0001 &amp;lt; 0.05, so we reject H0.
       Conclusion:  Tcresult is significantly different from 200 
       95% CL of TCRESULT are (215.3, 219.9) which do not contain or cover 200, this also indicates that TCRESULT is significantly different from 200/;
					


*/ QUESTION 5*/;

PROC SORT DATA=MyCombined; 
BY sex; 
RUN;

PROC FREQ DATA=MyCombined;
BY sex;
TABLE heartatk/BINOMIAL (LEVEL=2);
RUN; 

PROC FREQ DATA=MyCombined;
TABLE sex*heartatk/CHISQ RISKDIFF;
RUN;

*/ Prevalence of Men with Hearkattack = 58/851 = 0.0682 = 6.82% (95% CL: 5.12, 8.51)
   Prevalence of Women with Heartattack = 31/956 = 0.0324 = 3.24% (2.12, 4.37)  */

Prevalence of HeartAttack in general population = 89/1807 = 0.05 

Ha: Proportion of Heartatk(=1) for man ^= Proportion of Heartatk(=1) for woman
H0: Proportion of Heartatk(=1) for man = Proportion of Heartatk(=1) for woman
P-value = 0.0005 
The difference between the two proportions is 3.57%, with 95% CL ( %,  %) and p-value=0.0005 &amp;lt; 0.05 THUS, Reject H0
Pvalue &amp;lt; 0.05 and 95% CL does not cover 0, so the difference is significantly diffferent from 0. We rject H0. Men and women do not have similar 
proprtions.
Conclusion 
;

ODS GRAPHICS ON;
PROC TTEST DATA=MyCombined PLOTS(ONLY) = (SUMMARYPLOT);
CLASS sex;
VAR heartatk;
RUN;
ODS GRAHICS OFF;

*/ EQUALITY OF VARIANCES TEST METHOD
H0: variances are the same
Ha: variances are different
P-value = &amp;lt;0.0001 &amp;lt; 0.05
Reject H0.
The equal variances are not equal

2-sample T TEST using the equal variance method
H0: Heartattack in man = Heartattack in woman
Ha: Heartattack in woman ^= Heartattack in woman
P-value = 0.0005 &amp;lt; 0.05 
Reject H0.
Man and Wowan do not have similar Heartattack 

95% CL of Heartattack for man: (0.0512, 0.0851) and 95% CL of Heartattack for woman: (0.0212, 0.0437).


&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Download black22fall.txt (tab delimited data file) and white22fall.sas7bdat.&amp;nbsp; The same variables were collected from two sub populations independently.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;(10) Use a DATA step to read in &lt;U&gt;black22fall.txt&lt;/U&gt; that is a tab delimited data file.&amp;nbsp; Make this a temporary dataset and name it &lt;STRONG&gt;&lt;EM&gt;black&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;(10) Use a DATA step to combine the &lt;STRONG&gt;&lt;EM&gt;black&lt;/EM&gt;&lt;/STRONG&gt; dataset from B.1 and &lt;U&gt;white22fall.sas7bdat&lt;/U&gt;.&amp;nbsp; Make this a permanent dataset and name it &lt;STRONG&gt;&lt;EM&gt;MyCombined&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;When I ran question 2. MyCombined came back to me as a temporary dataset and not a permanent one&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Use &lt;STRONG&gt;&lt;EM&gt;MyCombined&lt;/EM&gt;&lt;/STRONG&gt; data to answer the following questions:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;(10) Is there any outlier or extreme outlier for the variable &lt;U&gt;iron&lt;/U&gt;?&amp;nbsp; Calculate/show the boundaries for outliers and extreme outliers, and identify these people with mild and extreme outlying values in the output, respectively.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;(10) The desirable cholesterol level is less than 200 mg/dL.&amp;nbsp; Is this study population’s cholesterol (tcresult) different from 200? &amp;nbsp;Write down the null and alternative hypotheses, p-value, decision (reject or fail to reject the null), and conclusion.&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;(10) What is the prevalence of heart attack (heartatk = 1) for men and for women?&amp;nbsp; Report the prevalence and &amp;nbsp;95% confidence interval.&amp;nbsp; Do men and women have different prevalence?&amp;nbsp; Write down the null and alternative hypotheses, p-value, decision (reject or fail to reject the null), and conclusion.&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;BR /&gt;I used the variance equality test to answer the number5 question. I feel like I am supposed to use another procedure to solve this. What do you guys think?

&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 08 Nov 2022 14:07:54 GMT</pubDate>
    <dc:creator>iyinope</dc:creator>
    <dc:date>2022-11-08T14:07:54Z</dc:date>
    <item>
      <title>How to make a combined dataset permanent, and how to solve for proportion populations</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-make-a-combined-dataset-permanent-and-how-to-solve-for/m-p/843130#M36559</link>
      <description>&lt;PRE&gt;&lt;CODE class=""&gt;Hello guys, i was working on these codes and I am struggling with creating a permanent dataset for two datasets&lt;BR /&gt;that I merged. Secondly, is the variance equality test a good way to answer the fifth question? Thanks..&lt;BR /&gt;I have included my code and my practice questions&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*/ QUESTION 1 */ ;


DATA Black;
INFILE "C:\Users\iyink\Downloads\black22fall.txt" DLM='09'x FIRSTOBS=2;
INPUT ID sex race age height weight bpsystol bpdiast tcresult iron heartatk diabetes DOB;
INFORMAT DOB date9. ; 
FORMAT DOB date9.;
RUN;




*/ QUESTION 2 */ ;

LIBNAME exam2 "C:\Users\iyink\Downloads";
RUN;

PROC PRINT DATA=perm2.white22fall;
RUN;

PROC SORT DATA=Black NODUPS; BY ID; RUN;
PROC SORT DATA=perm2.white22fall NODUPS; BY ID; RUN;



DATA MyCombined;
MERGE Black(IN=a) perm2.white22fall(IN=b);
BY ID;
IF a=1 OR b=1 THEN OUTPUT MyCombined;
RUN;

PROC PRINT DATA=MyCombined;
RUN;



*/ QUESTION 3 /*

yes we have outliers and extreme outliers for iron in this dataset
 those with mild outliers = 28 persons
those with extreme outliers = 2 persons;


PROC MEANS DATA=MyCombined N NMISS MIN P25 P50 P75 MAX MEAN STD MAXDEC=1;
VAR iron;
RUN;

PROC SGPLOT DATA=MyCombined;
HBOX iron;
RUN;

PROC SGPLOT DATA=MyCombined;
HBOX iron/EXTREME;
RUN;

PROC PRINT DATA=MyCombined;
WHERE iron &amp;lt; 76 - 1.5*(120-76)
   OR iron &amp;gt; 120 + 1.5*(120-76);
VAR ID iron;
RUN;

PROC PRINT DATA=MyCombined;
WHERE iron &amp;lt; 76 - 3*(120-76)
   OR iron &amp;gt; 120 + 3*(120-76);
VAR ID iron;
RUN;



*/ QUESTION 4 */;

PROC MEANS DATA=MyCombined MEAN CLM MAXDEC=2;
VAR tcresult;
RUN;

PROC UNIVARIATE DATA=MyCombined MU0=200;
VAR tcresult;
RUN;


ODS GRAPHICS ON;
PROC TTEST DATA=MyCombined HO=200 PLOTS(ONLY) = (SUMMARYPLOT);
VAR tcresult;
RUN;  ODS GRAPHICS OFF;


	*/ Ha: CLevel ^= 120
       H0: CLevel = 120 
       P-value from Student's test = &amp;lt;0.0001
       Decision:  Since, &amp;lt;.0001 &amp;lt; 0.05, so we reject H0.
       Conclusion:  Tcresult is significantly different from 200 
       95% CL of TCRESULT are (215.3, 219.9) which do not contain or cover 200, this also indicates that TCRESULT is significantly different from 200/;
					


*/ QUESTION 5*/;

PROC SORT DATA=MyCombined; 
BY sex; 
RUN;

PROC FREQ DATA=MyCombined;
BY sex;
TABLE heartatk/BINOMIAL (LEVEL=2);
RUN; 

PROC FREQ DATA=MyCombined;
TABLE sex*heartatk/CHISQ RISKDIFF;
RUN;

*/ Prevalence of Men with Hearkattack = 58/851 = 0.0682 = 6.82% (95% CL: 5.12, 8.51)
   Prevalence of Women with Heartattack = 31/956 = 0.0324 = 3.24% (2.12, 4.37)  */

Prevalence of HeartAttack in general population = 89/1807 = 0.05 

Ha: Proportion of Heartatk(=1) for man ^= Proportion of Heartatk(=1) for woman
H0: Proportion of Heartatk(=1) for man = Proportion of Heartatk(=1) for woman
P-value = 0.0005 
The difference between the two proportions is 3.57%, with 95% CL ( %,  %) and p-value=0.0005 &amp;lt; 0.05 THUS, Reject H0
Pvalue &amp;lt; 0.05 and 95% CL does not cover 0, so the difference is significantly diffferent from 0. We rject H0. Men and women do not have similar 
proprtions.
Conclusion 
;

ODS GRAPHICS ON;
PROC TTEST DATA=MyCombined PLOTS(ONLY) = (SUMMARYPLOT);
CLASS sex;
VAR heartatk;
RUN;
ODS GRAHICS OFF;

*/ EQUALITY OF VARIANCES TEST METHOD
H0: variances are the same
Ha: variances are different
P-value = &amp;lt;0.0001 &amp;lt; 0.05
Reject H0.
The equal variances are not equal

2-sample T TEST using the equal variance method
H0: Heartattack in man = Heartattack in woman
Ha: Heartattack in woman ^= Heartattack in woman
P-value = 0.0005 &amp;lt; 0.05 
Reject H0.
Man and Wowan do not have similar Heartattack 

95% CL of Heartattack for man: (0.0512, 0.0851) and 95% CL of Heartattack for woman: (0.0212, 0.0437).


&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Download black22fall.txt (tab delimited data file) and white22fall.sas7bdat.&amp;nbsp; The same variables were collected from two sub populations independently.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;(10) Use a DATA step to read in &lt;U&gt;black22fall.txt&lt;/U&gt; that is a tab delimited data file.&amp;nbsp; Make this a temporary dataset and name it &lt;STRONG&gt;&lt;EM&gt;black&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;(10) Use a DATA step to combine the &lt;STRONG&gt;&lt;EM&gt;black&lt;/EM&gt;&lt;/STRONG&gt; dataset from B.1 and &lt;U&gt;white22fall.sas7bdat&lt;/U&gt;.&amp;nbsp; Make this a permanent dataset and name it &lt;STRONG&gt;&lt;EM&gt;MyCombined&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;When I ran question 2. MyCombined came back to me as a temporary dataset and not a permanent one&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Use &lt;STRONG&gt;&lt;EM&gt;MyCombined&lt;/EM&gt;&lt;/STRONG&gt; data to answer the following questions:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;(10) Is there any outlier or extreme outlier for the variable &lt;U&gt;iron&lt;/U&gt;?&amp;nbsp; Calculate/show the boundaries for outliers and extreme outliers, and identify these people with mild and extreme outlying values in the output, respectively.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;(10) The desirable cholesterol level is less than 200 mg/dL.&amp;nbsp; Is this study population’s cholesterol (tcresult) different from 200? &amp;nbsp;Write down the null and alternative hypotheses, p-value, decision (reject or fail to reject the null), and conclusion.&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;(10) What is the prevalence of heart attack (heartatk = 1) for men and for women?&amp;nbsp; Report the prevalence and &amp;nbsp;95% confidence interval.&amp;nbsp; Do men and women have different prevalence?&amp;nbsp; Write down the null and alternative hypotheses, p-value, decision (reject or fail to reject the null), and conclusion.&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;BR /&gt;I used the variance equality test to answer the number5 question. I feel like I am supposed to use another procedure to solve this. What do you guys think?

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Nov 2022 14:07:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-make-a-combined-dataset-permanent-and-how-to-solve-for/m-p/843130#M36559</guid>
      <dc:creator>iyinope</dc:creator>
      <dc:date>2022-11-08T14:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a combined dataset permanent, and how to solve for proportion populations</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-make-a-combined-dataset-permanent-and-how-to-solve-for/m-p/843151#M36560</link>
      <description>&lt;P&gt;Permanent data set means to create a Library, Libname statement should have been covered in your class, and place the result there. That means to use the data set you use the libname.dataset on any DATA= options or Set statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without seeing the data I am not sure that a MERGE would be the proper way to combine the datasets. That may result in common named variables having the values from only one data set. It may be that SET or Proc Append to stack the data is more appropriate.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 15:40:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-make-a-combined-dataset-permanent-and-how-to-solve-for/m-p/843151#M36560</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-11-08T15:40:31Z</dc:date>
    </item>
  </channel>
</rss>

