test - dm 'log;clear;output;clear;'; o options ps=50 ls=75...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
options ps=50 ls=75 pageno=1; o * Problem 1; data prostate1 ; infile 'K:\6360\Tests\Inclass\prostate1.txt' expandtabs firstobs=2; input lcavol lweight age svi $ gleason psa ; run ; r PROC IMPORT OUT= prostate2 DATAFILE= "K:\6360\Tests\Inclass\prostate2.xls" DBMS=EXCEL2000 REPLACE; GETNAMES=YES; RUN; R data prostate; set prostate1 prostate2; lpsa = log(psa); drop psa; label lpsa = 'log of prostate specific antigen'; run; r * Problem 2; proc format; value $svi 'N'='No' 'Y'='Yes'; run; r proc means data=prostate mean median var min max; class svi gleason; var lpsa; format svi $svi.; run; r * Problem 3; proc univariate data=prostate cibasic alpha=0.1 mu0=2.28; var lpsa; run; r * Problem 4; proc freq data=prostate; tables svi*gleason / fisher; format svi $svi.; run; r * Problem 5; goptions reset=all; title 'Histogram of lpsa'; proc univariate data=prostate; var lpsa; histogram / normal(fill mu=est sigma=est) cfill=red grid lgrid=35; run; r proc standard data=prostate out=out_set1 mean=0 std=1;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/06/2011 for the course STAT 4360 taught by Professor Park during the Spring '11 term at UGA.

Page1 / 2

test - dm 'log;clear;output;clear;'; o options ps=50 ls=75...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online