SAS Functions Flashcards

1
Q

PROC FREQ

A

o Frequencies of the variable – how many observations in that group (percentage)
o If select 2 variables to look at can see the cross tabulation – frequency table
o CHI SQUARE
• Has option to include that generates chi-square values
• Ex:
o AGREMENT
• Has option to include /agree for agreement (Kappa)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

PROC UNIVARIATE

A

o Use to explore dataset
o Look at each variable separeately and see the distribuition, summary stats, tests for location , quantiles, extreme observations, plots, can see skewness of data and select to see histogram

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

PROC TTEST

A

o Summary statistics (N, mean, standard deviation, standard error, min, max)
o Confidence estimates for the mean and the standard deviations
o T-test results for Pooled (equal variances) and Satterthwaite (when unequal variances)
o Folded F to see Equality of Variances
o One sample t-test/matched pairs has same except equality of variances
o Ex: see if pain rating is different in those who got epidural vs those who didn’t get epidural

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

PROC ANOVA

A

o Shows number of observations, anova table, R square, F-value (variation between groups/variation within groups… want 1)
o Doesn’t show which groups are different, just if one of the groups are differnet
o Then have to do multiple comparisons and can do Tukey to check which groups are differnet
o Ex: check if pain rating index of childbirth depends on which age group you are in.
o Ex: check if pain rating index depends on the type of pain killer method used

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

PROC CONTENTS

A

o Shows what is in dataset – variable, type, length

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

PROC CORR

A

o Shows simple statistics and then Pearson correlation coefficients. Can specify to see Spearman if data not linear
o Can also look at cross correlation matrix

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

PROC PLOT

A

Scatterplot

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

PROC REG

A

o Use parameter estimates to explain variation in data
o Example: alcohol consumption on life expectancy
o Shows analysis of variance, parameter estiamtes, and fit statistics

How well did you know this?
1
Not at all
2
3
4
5
Perfectly