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.
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.