Fluorite | Level 6

## Does anyone know how to do these?

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Obsidian | Level 7

## Re: Does anyone know how to do these?

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;

3 REPLIES 3
Obsidian | Level 7

## Re: Does anyone know how to do these?

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;

Fluorite | Level 6

## Re: Does anyone know how to do these?

Thank you so much for the example codes and a textbook I really appreciate it!!!
Tourmaline | Level 20