Biostatistics Lab
STAT 2023L
Fall 2011
Instructor:
Office:
E-mail:
Class website:
Richard Wanjohi
SCEN 332
[email protected]
http:/comp.uark.edu/~rwanjohi/BioStats/bs.html
Lab Times
The labs will be h
Graphics
Numerical Measures
Descriptive Statistics
Biostatistics Lab
Fall 2011
Richard Wanjohi
Descriptive Statistics
Graphics
Numerical Measures
Graphs
Procedures in SAS
Graphs
These includes:
Bar Gr
if then statement
Data me3;
set me;
if Gender = f then sex =
Female;
else sex = Male;
run;
if then statement
Data me3;
set me;
if class = 4 then Level = Senoir ;
else if class = 3 then Level = Juni
Import data
Using the import wizard.
Will import comfortably: .xls, .csv, .txt,
(Can also import other formats using External
File Interface facility in the import wizard)
Click on file > import d
Reading data into SAS
You can manually type in your data OR
Copy and paste your data on the raw data
section.
SAS can read data from an external file in these
formats: .txt, .prn, .dat, .csv, .xls,
today
Character vs numeric variables
Length of variables
Labels
Comments
Title(s)
Character variables
data three;
input Name $ Age weight;
datalines;
John 21 120
Mike 19
160
Lisa 16 155
Ray 23 489
Leb
Biostatistics Lab
Fall 2011
Richard Wanjohi
Biostatistics
Science of collecting
analyzing
and interpreting data
Paper and Pencil
Use statistical
software
using statistical theory and methods to
add
Homework 8
File data8 in our web contains data of randomized double-blind, controlled study conducted in 1989 to
determine the safety and efficacy of a particular compound in treatment of scleroderma,
Homework 7
Use data2 on our web to
1) Generate a two-way table for diastolic blood pressure for the 6 groups of gender by marital
status. Which group is healthier?
2) Generate summary statistics and c
Homework 6 ( Due week of 11/7/2011)
File Data4 in our class web contains systolic and diastolic blood pressure readings for men and women
who either lead an athletic or sedentary lifestyle.
a) Use pro
Homework 5 (due week of 10/31)
1) Data6 on our web is an excel file that contains data collected from a water well by the Utah
Division of Water Quality. The water quality is monitored by measuring pa
Homework 4 (Due week of 10/3/2011)
Data4 Data5 on our web are 2 excel files containing data of 40 individuals under study in a clinical
research. Note that the data was collected from the same 40 indi
Homework 3 (due week of 9/19)
Data3 in our class website is a dataset in an excel file. It contains 8 variables and 49 observations. It is a
class roster of a Biostatistics class showing results of 5
Homework 2 (Due next lab meeting: week of 9/12/2011)
data2 in our class website is a dataset in an excel file. It contains 7 variables and 20 observations.
a) Save the data as a text file (Tab delimit
Homework 1
Write SAS program to read and print each of the following data sets.
1)
Species ID
2367
2445
2342
4789
1326
1456
2301
Class
Mammalian
Reptilia
Mammalian
Bird
Amphibian
Fish
Mammalian
Animal