Hello,
I am very confused on how to do this with sashelp.bweight. Could someone show me, also is there a textbook or video you would recommend for beginners that could help with this?
Good evening,
Here is a bit of code to get you started. You first want to use proc contents to examine your dataset and see what your variables are like. From there, the first set of figures are a three way cross tabulation with proc freq, and the next a proc univariate output. Each set of outputs in the pdf will have a title on the top that will give a description of the code used to create the output. Here is a good resource on some basic statistical procedures as well as more info on how to use the "by" "class" and "var" statements. Hope this gets you started!!
cheers,
data work.test;
set sashelp.bweight;
run;
proc contents data=sashelp.bweight;
run;
proc freq data=sashelp.bweight;
tables black*married*visit;
run;
proc univariate data=sashelp.bweight;
var weight;
class boy;
run;
Good evening,
Here is a bit of code to get you started. You first want to use proc contents to examine your dataset and see what your variables are like. From there, the first set of figures are a three way cross tabulation with proc freq, and the next a proc univariate output. Each set of outputs in the pdf will have a title on the top that will give a description of the code used to create the output. Here is a good resource on some basic statistical procedures as well as more info on how to use the "by" "class" and "var" statements. Hope this gets you started!!
cheers,
data work.test;
set sashelp.bweight;
run;
proc contents data=sashelp.bweight;
run;
proc freq data=sashelp.bweight;
tables black*married*visit;
run;
proc univariate data=sashelp.bweight;
var weight;
class boy;
run;
@rhaley1821 Your helpful answer would be even more helpful if the code was formatted.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.