Module 9: Using Basic Statistical Procedures Flashcards

1
Q

What does PROC UNIVARIATE do?

A

It produces statistics and graphs describing the distribution of a single varaible

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

Write the general syntax for PROC UNIVARIATE.

A

proc univariate;
var varlist;
plot-request varlist/ (options);
run;

plot-requestion = graph wanted to use

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

List some plot-requests PROC UNIVARIATE can use.

A

CDFPLOT: cumulative distribution funciton plot
HISTOGRAM: histogram
QQPLOT: quantile-quantile plot

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

List the distribution options in PROC UNIVARIATE.

A

Normal, beta, exponential, gamma, lognormal, normal, weibull

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

Given the following code, explain each line.

1) proc means data = one noprint;
2) var gamedate;
3) output out = ckdate (where=(stat in (‘MIN’, ‘MAX’)));
run;

A

1) takes data from dataset one, but does not print results
2) Tells SAS to only look at gamedate
3) Puts the output to a dataset called ckdate with the condition that the observations in ckdate need to have the min and max value of gamedate

Note: need to use proc print to display the new dataset ckdate

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

What does PROC CORR do?

A

It computes correlations to varaiables

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

Write the general syntax to PROC CORR.

A

proc corr;
var var-list;
with var-list;
run;

Note: the with statement is optional

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

What is the difference between the var and with statements in PROC CORR?

A

Var statement lists variables across the table of correlations
With statement lists variables down the side of the table

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

T/F: If no with statement, then the variables in the var statement will appear both across and down.

A

True

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

Fill in the blank.

The default correlations are ____ product-moment correlation coefficients.

A

Pearson

Note: can request Spearman rank with SPEARMAN option

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

When doing a PROC TTEST, what is the null hypothesis to choose from variances?

A

H0: two variances equal, use pooled/equal variances
H1: two variances unequal

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

Given the following code, explain each line.

proc ttest;
1) by year;
2) class league;
3) var runs;
run;

A

1) specifies seperate analysis by year
2) specifies league as a caegorical varaible
3) Specifies the variable of interest(s). A t-test will be conducted on the runs variable, comparing its means across different levles of the league

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