Hello, I was given this question: (dataset: SASHELP.BWEIGHT) Create a dataset including first 2,000 observations only in SASHELP.BWEIGHT and report the p-value of testing if two variables MomSmoke and VISIT are independent. Note that you should determine if Chi-sq test is valid or not. Up to four decimal places, please. (Hint: use PROC FREQ) I understand how to calculate the p-value if the two variables are independent, I am just confused on making a new dataset including the first 2,000 observations of sashelp.bweight.
... View more