<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4430252790237742416</id><updated>2011-11-27T16:54:04.679-08:00</updated><category term='if conditional'/><category term='sas examples'/><category term='reading data into SAS'/><category term='solutions'/><category term='sas programming'/><category term='sas help'/><category term='sas'/><category term='formatted inpput'/><category term='concatenating'/><category term='data'/><title type='text'>SAS Programming</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sas-help.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sas-help.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>emreb-n</name><uri>http://www.blogger.com/profile/16182497472046057532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4430252790237742416.post-5867829143929884313</id><published>2008-04-22T12:34:00.000-07:00</published><updated>2009-07-24T08:19:12.447-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sas'/><category scheme='http://www.blogger.com/atom/ns#' term='concatenating'/><title type='text'>concatenating data sets</title><content type='html'>data thrdcls ;&lt;br /&gt;input name$ age sex grade$;&lt;br /&gt;datalines;&lt;br /&gt;ali 21 0 2.78 &lt;br /&gt;hasan 22 0 3.21&lt;br /&gt;yasemin 21 1 3.52&lt;br /&gt;run;&lt;br /&gt;data thrdcls (rename=(tmp=grade) drop=grade);&lt;br /&gt;set thrdcls;&lt;br /&gt;tmp=input(grade,5.2);&lt;br /&gt;run;&lt;br /&gt;data frthcls;&lt;br /&gt;input name$ age sex grade;&lt;br /&gt;datalines;&lt;br /&gt;mustafa 21 0 3.15&lt;br /&gt;fatam 22 1 2.95&lt;br /&gt;emre 21 0 2.25&lt;br /&gt;selin 22 1 2.70&lt;br /&gt;run;&lt;br /&gt;data std;&lt;br /&gt;set thrdcls frthcls;&lt;br /&gt;run;&lt;br /&gt;proc print; run;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4430252790237742416-5867829143929884313?l=sas-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sas-help.blogspot.com/feeds/5867829143929884313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4430252790237742416&amp;postID=5867829143929884313' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/5867829143929884313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/5867829143929884313'/><link rel='alternate' type='text/html' href='http://sas-help.blogspot.com/2008/04/concatenating-data-sets.html' title='concatenating data sets'/><author><name>emreb-n</name><uri>http://www.blogger.com/profile/16182497472046057532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4430252790237742416.post-3953068995975359697</id><published>2008-04-22T11:36:00.000-07:00</published><updated>2009-07-24T08:20:20.023-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='if conditional'/><category scheme='http://www.blogger.com/atom/ns#' term='sas'/><title type='text'>conditional processing ( if )</title><content type='html'>&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;example(general if statement)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;data family ;&lt;br /&gt;infile datalines dlm=',' missover;&lt;br /&gt;input fname:$20. rship age sex occup income dollar5.;&lt;br /&gt;format income dollar5.;&lt;br /&gt;datalines;&lt;br /&gt;kaya,1,50,0,1,$1500&lt;br /&gt;kaya,2,45,1,2&lt;br /&gt;kaya,3,30,0,1,$2000&lt;br /&gt;sahin,1,60,0,2&lt;br /&gt;sahin,2,50,1,1,$1750&lt;br /&gt;sahin,3,15,1,0,&lt;br /&gt;run;&lt;br /&gt;proc print data=family; run;&lt;br /&gt;data incomeytl;&lt;br /&gt;set family ;&lt;br /&gt;incomeytl=income*1.2;&lt;br /&gt;run;&lt;br /&gt;proc print data=incomeytl; run;&lt;br /&gt;data job;&lt;br /&gt;set family;&lt;br /&gt;if occup eq 1 then status='working';&lt;br /&gt;else status='not working';&lt;br /&gt;run;&lt;br /&gt;proc print data=job; run;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;example(length statement)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;data job;&lt;br /&gt;set family;&lt;br /&gt;length status $ 20;&lt;br /&gt;if occup eq 1 then status='working';&lt;br /&gt;else if occup=2 or occup=0 then status='not working';&lt;br /&gt;run;&lt;br /&gt;proc print data=job; run;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;example(do and end)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;data job_status;&lt;br /&gt;set family;&lt;br /&gt;length status $ 20;&lt;br /&gt;if occup eq 1 then status='working';&lt;br /&gt;else do&lt;br /&gt;status='not working';&lt;br /&gt;income=0;&lt;br /&gt;end;&lt;br /&gt;run;&lt;br /&gt;proc print data=job_status; run;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;example (multiple if else statement)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;data job_status;&lt;br /&gt;set family;&lt;br /&gt;length status $ 20;&lt;br /&gt;if occup eq 1 then status='working';&lt;br /&gt;else if occup=2 then do&lt;br /&gt;status='not working';&lt;br /&gt;income=0;&lt;br /&gt;end;&lt;br /&gt;else if occup= 0 then do&lt;br /&gt;status ='student';&lt;br /&gt;income=0;&lt;br /&gt;end;&lt;br /&gt;run;&lt;br /&gt;proc print data=job_status; run;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;example (more than one output dataset)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;data working not_working student;&lt;br /&gt;set family;&lt;br /&gt;if occup=0 then output student;&lt;br /&gt;else if occup=1 then output working;&lt;br /&gt;else if occup=2   output not_working;&lt;br /&gt;run;&lt;br /&gt;proc print data=not_working; run;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4430252790237742416-3953068995975359697?l=sas-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sas-help.blogspot.com/feeds/3953068995975359697/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4430252790237742416&amp;postID=3953068995975359697' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/3953068995975359697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/3953068995975359697'/><link rel='alternate' type='text/html' href='http://sas-help.blogspot.com/2008/04/conditional-processing-if.html' title='conditional processing ( if )'/><author><name>emreb-n</name><uri>http://www.blogger.com/profile/16182497472046057532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4430252790237742416.post-8951480917640074854</id><published>2008-04-20T13:55:00.000-07:00</published><updated>2008-04-20T14:15:55.436-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='formatted inpput'/><category scheme='http://www.blogger.com/atom/ns#' term='sas help'/><title type='text'>reading data that requires spedcial intructions(Formatted input)</title><content type='html'>SAS can read numeric data that is in special formats such as binary, packed decimals, date/time.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;example: formatted input&lt;/span&gt;&lt;br /&gt;data std;&lt;br /&gt;input name$ 1-15 age 17-18 class 20 sex 22 grade comma5.2;&lt;br /&gt;datalines;&lt;br /&gt;ali sahin       21 4 0 3,11&lt;br /&gt;hüseyin karatas 20 2 1 2,90&lt;br /&gt;;&lt;br /&gt;run;&lt;br /&gt;proc print;&lt;br /&gt;run;&lt;br /&gt;&lt;br /&gt;note that in thi example numbers for grade variable has character ','  ( with blank ti has 5 place and the value with 2 decimals so comma5.2&lt;br /&gt;if we have 31,12 we have to write comma6.2&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;example: formatted input&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;data std;&lt;br /&gt;input name$ 1-15 age 17-18 class 20 sex 22 grade 24-27 birthdate ddmmyy11.;&lt;br /&gt;datalines;&lt;br /&gt;ali sahin               21 4 0 3.11 21/02/1986&lt;br /&gt;hüseyin karatas 20 2 1 2.90 13/06/1987&lt;br /&gt;;&lt;br /&gt;run;&lt;br /&gt;proc print;&lt;br /&gt;run;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4430252790237742416-8951480917640074854?l=sas-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sas-help.blogspot.com/feeds/8951480917640074854/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4430252790237742416&amp;postID=8951480917640074854' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/8951480917640074854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/8951480917640074854'/><link rel='alternate' type='text/html' href='http://sas-help.blogspot.com/2008/04/reading-data-that-requires-spedcial.html' title='reading data that requires spedcial intructions(Formatted input)'/><author><name>emreb-n</name><uri>http://www.blogger.com/profile/16182497472046057532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4430252790237742416.post-2539843841303306861</id><published>2008-04-20T13:46:00.000-07:00</published><updated>2008-04-20T13:55:12.435-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sas help'/><category scheme='http://www.blogger.com/atom/ns#' term='reading data into SAS'/><title type='text'>reading data that is aligned in columns(column input) inline</title><content type='html'>in column input in input statement list the variable names and specify column positions that identify the location of the corresponding data fields. you can use column input when your raw data is in fixed columns an does not require the use of informats to be read.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;example: column input&lt;/span&gt;&lt;br /&gt;data std;&lt;br /&gt;input name$ 1-15 age 17-18 class 20 sex 22 grade 24-27;&lt;br /&gt;datalines;&lt;br /&gt;ali sahin       21 4 0 3.1&lt;br /&gt;hüseyin karatas 20 2 1 2.90&lt;br /&gt;;&lt;br /&gt;run;&lt;br /&gt;proc print;&lt;br /&gt;run;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4430252790237742416-2539843841303306861?l=sas-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sas-help.blogspot.com/feeds/2539843841303306861/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4430252790237742416&amp;postID=2539843841303306861' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/2539843841303306861'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/2539843841303306861'/><link rel='alternate' type='text/html' href='http://sas-help.blogspot.com/2008/04/reading-data-that-is-aligned-in.html' title='reading data that is aligned in columns(column input) inline'/><author><name>emreb-n</name><uri>http://www.blogger.com/profile/16182497472046057532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4430252790237742416.post-3348692314355371638</id><published>2008-04-20T13:41:00.000-07:00</published><updated>2008-04-20T13:46:43.990-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sas examples'/><category scheme='http://www.blogger.com/atom/ns#' term='sas programming'/><category scheme='http://www.blogger.com/atom/ns#' term='sas help'/><title type='text'>reading unaligned data(list input) inline</title><content type='html'>&lt;span style="font-weight: bold;"&gt;example: comma delimited data&lt;/span&gt;&lt;br /&gt;data std;&lt;br /&gt;infile datalines dlm=',' ;&lt;br /&gt;input name$ age class sex grade;&lt;br /&gt;datalines;&lt;br /&gt;sahin,21,4,0,3.1&lt;br /&gt;dasd,20,2,1,2.90&lt;br /&gt;;&lt;br /&gt;run;&lt;br /&gt;proc print;&lt;br /&gt;run;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4430252790237742416-3348692314355371638?l=sas-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sas-help.blogspot.com/feeds/3348692314355371638/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4430252790237742416&amp;postID=3348692314355371638' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/3348692314355371638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/3348692314355371638'/><link rel='alternate' type='text/html' href='http://sas-help.blogspot.com/2008/04/reading-unaligned-datalist-input-inline.html' title='reading unaligned data(list input) inline'/><author><name>emreb-n</name><uri>http://www.blogger.com/profile/16182497472046057532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4430252790237742416.post-6679258692962554267</id><published>2007-10-18T14:01:00.000-07:00</published><updated>2007-10-18T14:15:19.433-07:00</updated><title type='text'>Creating and Using Dummy Variables</title><content type='html'>A dummy variable is a numerical variable used in regression analysis to represent subgroups of the sample in your study. Dummy variable is used to distinguish different treatment groups. They are useful  because  they enable  us to use a single regression equation to represent multiple groups. This means we don't need to write out separate equation models for each subgroup. If we have "n" subgroups we will have (n-1) dummy &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_0"&gt;variables&lt;/span&gt;.&lt;br /&gt;EX:&lt;br /&gt;consider this simple data file having 9 subjects in 3 groups with a score iv dv.&lt;br /&gt;&lt;br /&gt;sas program :&lt;br /&gt;&lt;br /&gt;data dummy;&lt;br /&gt;input sub iv dv;&lt;br /&gt;cards;&lt;br /&gt;1 1 48&lt;br /&gt;2 1 49&lt;br /&gt;3 1 50&lt;br /&gt;4 2 17&lt;br /&gt;5 2 20&lt;br /&gt;6 2 23&lt;br /&gt;7 3 28&lt;br /&gt;8 3 30&lt;br /&gt;9 3 32&lt;br /&gt;;&lt;br /&gt;run;&lt;br /&gt;data dummy2;&lt;br /&gt;set dummy;&lt;br /&gt;if (iv=1) then iv1=1; else iv1=0;&lt;br /&gt;if (iv=2) then iv2=1; else iv2=0;&lt;br /&gt;if (iv=3) then iv3=1; else iv3=0;&lt;br /&gt;run;&lt;br /&gt;proc reg data=dummy2;&lt;br /&gt;model dv=iv1 iv2;&lt;br /&gt;run;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4430252790237742416-6679258692962554267?l=sas-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sas-help.blogspot.com/feeds/6679258692962554267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4430252790237742416&amp;postID=6679258692962554267' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/6679258692962554267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/6679258692962554267'/><link rel='alternate' type='text/html' href='http://sas-help.blogspot.com/2007/10/creating-and-using-dummy-variables.html' title='Creating and Using Dummy Variables'/><author><name>emreb-n</name><uri>http://www.blogger.com/profile/16182497472046057532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4430252790237742416.post-7627923677236684720</id><published>2007-10-18T13:52:00.000-07:00</published><updated>2007-10-18T13:57:55.698-07:00</updated><title type='text'>simple anova example</title><content type='html'>EX: the response time in milliseconds was determined for 3 different types of circuits.&lt;br /&gt;&lt;br /&gt;sas program:&lt;br /&gt;&lt;br /&gt;data time;&lt;br /&gt;input circuit $ Time @@;&lt;br /&gt;cards;&lt;br /&gt;A 9   A 12 A 10 A 9  A 15&lt;br /&gt;B 20 B 21 B 23 B 17 B 30&lt;br /&gt;C 6   C 5   C 8    C 16 C 7&lt;br /&gt;;&lt;br /&gt;run;&lt;br /&gt;proc anova data=time;&lt;br /&gt;class circuit ;&lt;br /&gt;model time= circuit;&lt;br /&gt;means circuit / duncan scheffe alpha= 0.01 tukey lines;&lt;br /&gt;run;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4430252790237742416-7627923677236684720?l=sas-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sas-help.blogspot.com/feeds/7627923677236684720/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4430252790237742416&amp;postID=7627923677236684720' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/7627923677236684720'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/7627923677236684720'/><link rel='alternate' type='text/html' href='http://sas-help.blogspot.com/2007/10/simple-anova-example.html' title='simple anova example'/><author><name>emreb-n</name><uri>http://www.blogger.com/profile/16182497472046057532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4430252790237742416.post-7857883570083594717</id><published>2007-10-18T13:41:00.000-07:00</published><updated>2007-10-18T13:51:50.974-07:00</updated><title type='text'>Analysis of variance</title><content type='html'>&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;Proc&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;Anova&lt;/span&gt; General Form&lt;br /&gt;&lt;br /&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;proc&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;anova&lt;/span&gt; data=&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;dataset&lt;/span&gt;;&lt;br /&gt;by variables;&lt;br /&gt;class variables;&lt;br /&gt;model dependent variable=independent variables;&lt;br /&gt;means effects &lt;options&gt;;&lt;br /&gt;&lt;br /&gt;the class statement is used to designate which variables are factors in the model. it can have numeric values or character values.&lt;br /&gt;the model statement has the form dependent  variable=factorial.&lt;br /&gt;the means statement requests multiple comparisons. list each variable for which you want multiple comparisons after means.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4430252790237742416-7857883570083594717?l=sas-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sas-help.blogspot.com/feeds/7857883570083594717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4430252790237742416&amp;postID=7857883570083594717' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/7857883570083594717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/7857883570083594717'/><link rel='alternate' type='text/html' href='http://sas-help.blogspot.com/2007/10/analysis-of-variance.html' title='Analysis of variance'/><author><name>emreb-n</name><uri>http://www.blogger.com/profile/16182497472046057532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4430252790237742416.post-969872003906961264</id><published>2007-10-04T09:36:00.000-07:00</published><updated>2007-10-06T16:57:30.407-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='data'/><category scheme='http://www.blogger.com/atom/ns#' term='sas examples'/><category scheme='http://www.blogger.com/atom/ns#' term='solutions'/><title type='text'>examples</title><content type='html'>&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;example1&lt;/span&gt;:&lt;/span&gt;&lt;br /&gt;&lt;b style="font-weight: bold;"&gt; &lt;/b&gt;&lt;span style="font-weight: bold;"&gt;The data set “&lt;a href="http://merlot.stat.uconn.edu/%7Elynn/342-web/fitness.dat"&gt;fitness.dat&lt;/a&gt;” is required in this problem. Consider the simple straight-line regression of maxpluse (Y) on runpulse (X).&lt;/span&gt;    &lt;p style="font-weight: bold;" class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;Physical Fitness Data&lt;br /&gt;These measurements were made on 31 men involved in a physical&lt;br /&gt;fitness course at NC State University. The variables are&lt;br /&gt;AGE (years)&lt;br /&gt;WEIGHT (KG)&lt;br /&gt;OXY (Oxygen uptake rate, ML per KG body weight per minute)&lt;br /&gt;RUNTIME (time to run 1.5 miles, minutes)&lt;br /&gt;RSTPULSE (heart rate while resting)&lt;br /&gt;RUNPULSE (heart rate while running)&lt;br /&gt;MAXPULSE (maximum heart rate while running)&lt;/p&gt;    &lt;ol style="margin-top: 0cm; font-weight: bold;" start="1" type="a"&gt;&lt;li class="MsoNormal" style="text-align: justify;"&gt;Determine the ANOVA table&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify;"&gt;Test the significance of the straight line using an      F test.&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify;"&gt;Compute the estimated regression line.&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify;"&gt;Plot the data and overlay the estimated regression      line.&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify;"&gt;Comment on how well the line fits the data. (HINT:      Comment on everything that you see on your output.)&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify;"&gt;Perform a multiple regression analysis and comment      on the output. (Y=maxpulse; X1=age, X2=weight, X3=oxy, X4=runtime,      X5=rstpluse, X6=runpulse)&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;answer:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;filename data 'c:\abc\fitness.dat';&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;data dataset;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;infile data;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;input age weight oxy runtime rstpulse runpulse maxpulse;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;run;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;proc print data=dataset;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;run;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;proc anova data=dataset;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;class runpulse;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;model maxpulse=runpulse;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;means runpulse;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;run;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;proc reg data=dataset;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;model maxpulse=runpulse;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;run;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;proc reg data=dataset;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;model maxpulse=age weight oxy  runtime rstpulse runpulse;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;run;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;proc reg data=dataset;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;model maxpulse=runpulse;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;plot predicted.*runpulse='p' maxpulse*runpulse='*' / overlay;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;run;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;example 2: &lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;DATA D1;    &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;INPUT  STATUS    $           SEX       $           NUMBER;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; DATALINES; I  BB  34 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;I  BG  26 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;I  GG  15 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;S  BB  14 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;S  BG  22 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;S  GG  36 ;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; PROC FREQ  DATA=D1;    &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;TABLES  STATUS*SEX  /  ALL;    &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;WEIGHT  NUMBER;    &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;TITLE1 'JOHN DOE'; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;RUN;&lt;br /&gt;&lt;br /&gt;t&lt;/span&gt;he result of this program SAS gives some tables. SAS program constructs a table which counts the number of observations with respect to status and sex in the data.&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic;"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4430252790237742416-969872003906961264?l=sas-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sas-help.blogspot.com/feeds/969872003906961264/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4430252790237742416&amp;postID=969872003906961264' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/969872003906961264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/969872003906961264'/><link rel='alternate' type='text/html' href='http://sas-help.blogspot.com/2007/10/examples.html' title='examples'/><author><name>emreb-n</name><uri>http://www.blogger.com/profile/16182497472046057532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4430252790237742416.post-7434524854737671183</id><published>2007-10-04T09:29:00.000-07:00</published><updated>2009-07-21T12:25:36.801-07:00</updated><title type='text'>advanced examples</title><content type='html'>&lt;span style="font-weight: bold;"&gt;example: &lt;/span&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-weight: bold;"&gt;In a class of 88 students, the exam score of “Mechanics (X1)”, “Vector Analysis (X2)”, “Algebra (X3)”, “Calculus(X4)” and “Statistics (X5)” are given in the file exam.dat.&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;ol style="margin-top: 0cm; font-weight: bold;" start="1" type="a"&gt;&lt;li class="MsoNormal" style="text-align: justify;"&gt;Calculate the coefficient of correlation matrix of      all variables.&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify;"&gt;Calculate the descriptive statistics of “Mechanics”      and “Statistics” by using PROC UNIVARATE with options “normal” and “plot”&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify;"&gt;Answer the following parts:&lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal" style="margin-left: 90pt; text-align: justify; text-indent: -36pt; font-weight: bold;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;i)&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;                    &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Is the average of Algebra results different than the average of Vector Analysis?&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 90pt; text-align: justify; text-indent: -36pt; font-weight: bold;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;ii)&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;                   &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Does any difference between the&lt;span style=""&gt;  &lt;/span&gt;averages of Calculus and Statistics exist?&lt;/p&gt;&lt;br /&gt;&lt;p class="MsoNormal" style="margin-left: 90pt; text-align: justify; text-indent: -36pt; font-weight: bold;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-left: 90pt; text-align: justify; text-indent: -36pt; font-weight: bold;"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 18pt; text-align: justify; font-weight: bold;"&gt;(HINT: Think of t-test for two samples’ mean.)&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4430252790237742416-7434524854737671183?l=sas-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sas-help.blogspot.com/feeds/7434524854737671183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4430252790237742416&amp;postID=7434524854737671183' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/7434524854737671183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/7434524854737671183'/><link rel='alternate' type='text/html' href='http://sas-help.blogspot.com/2007/10/advanced-examples.html' title='advanced examples'/><author><name>emreb-n</name><uri>http://www.blogger.com/profile/16182497472046057532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4430252790237742416.post-8415508935618183287</id><published>2007-10-04T09:22:00.000-07:00</published><updated>2007-10-05T15:10:32.904-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sas'/><title type='text'>Testing Differences Between Two Means</title><content type='html'>For a paired t-test use Proc means or proc univariate. The paired t-test looks at the differences between two measures that dependent or correlated and tests whether or not the mean difference equals zero. To use either procedure for a paired t-test , create a new variable that is the difference between the two measures and test whether the difference is equal to 0.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4430252790237742416-8415508935618183287?l=sas-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sas-help.blogspot.com/feeds/8415508935618183287/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4430252790237742416&amp;postID=8415508935618183287' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/8415508935618183287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/8415508935618183287'/><link rel='alternate' type='text/html' href='http://sas-help.blogspot.com/2007/10/testig-differences-between-two-means.html' title='Testing Differences Between Two Means'/><author><name>emreb-n</name><uri>http://www.blogger.com/profile/16182497472046057532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4430252790237742416.post-5476660675262473068</id><published>2007-10-04T09:13:00.000-07:00</published><updated>2007-10-05T15:11:34.180-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sas'/><title type='text'>proc t-test procedure</title><content type='html'>&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;proc&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;ttest&lt;/span&gt; procedure tests whether two means are equal. It reports p values for the case where the two variances are equal which is called the two sample t-test or the unequal variances t-test and for the case where the two variances are equal ,the pooled t-test. For the two sample t-test it computes the approximate degrees of freedom. &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;Proc&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;ttest&lt;/span&gt; also reports of testing whether the two variances are equal for deciding  which test is appropriate.&lt;br /&gt;The Class statement identifies the variable that divides the data set into two groups. The CLASS variable must have only two values(can be either numeric or character)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;Proc&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;ttest&lt;/span&gt; general form&lt;/span&gt;:&lt;br /&gt;....&lt;br /&gt;...&lt;br /&gt;....&lt;br /&gt;...&lt;br /&gt;run;&lt;br /&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;proc&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;ttest&lt;/span&gt; data=&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;dataset&lt;/span&gt;;&lt;br /&gt;by variables;&lt;br /&gt;class variable;&lt;br /&gt;var &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;variales&lt;/span&gt;;&lt;br /&gt;run;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4430252790237742416-5476660675262473068?l=sas-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sas-help.blogspot.com/feeds/5476660675262473068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4430252790237742416&amp;postID=5476660675262473068' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/5476660675262473068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/5476660675262473068'/><link rel='alternate' type='text/html' href='http://sas-help.blogspot.com/2007/10/proc-t-test-procedure.html' title='proc t-test procedure'/><author><name>emreb-n</name><uri>http://www.blogger.com/profile/16182497472046057532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4430252790237742416.post-6831499929075336018</id><published>2007-10-04T08:10:00.000-07:00</published><updated>2007-10-04T10:39:02.259-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='data'/><category scheme='http://www.blogger.com/atom/ns#' term='sas examples'/><category scheme='http://www.blogger.com/atom/ns#' term='solutions'/><title type='text'>one simple example</title><content type='html'>EXAMPLE:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Plant wages: Weekly wages($) of 60 wage earners in a plant during the week of Jan 5 were  as follows:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt; 609   601   592 604  569  625  655  582  583 610 582 589 586 625 610 598  608 600 595 598  589 621 605 650 610 602 627 600 599 576 591 621 603 597 605 565 627 579 601 610 578 615 575 646 587 572 618 645 575 609 631 631 653 615 607 635 586 637 609 585&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Use sas to produce descriptive statistics. comment on the distribution of the given data set.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;answer:&lt;br /&gt;the program must be&lt;br /&gt;                                                                                                                                                       &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;data&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; plant_wages;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;INPUT&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; id &lt;/span&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;1&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;-&lt;/span&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;2&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;  &lt;/span&gt;wages &lt;/span&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;4&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;-&lt;/span&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;6&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;cards&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: rgb(255, 255, 192) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;1&lt;span style=""&gt;  &lt;/span&gt;609&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;2&lt;span style=""&gt;  &lt;/span&gt;601&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;3&lt;span style=""&gt;  &lt;/span&gt;592&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;4&lt;span style=""&gt;  &lt;/span&gt;604&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;5&lt;span style=""&gt;  &lt;/span&gt;569&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;6&lt;span style=""&gt;  &lt;/span&gt;625&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;7&lt;span style=""&gt;  &lt;/span&gt;655&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;8&lt;span style=""&gt;  &lt;/span&gt;582&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;9&lt;span style=""&gt;  &lt;/span&gt;583&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;10 610&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;11 582&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;12 589&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;13 586&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;14 625&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;15 610&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;16 598&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;17 608&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;18 600&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;19 595&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;20 598&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;21 589&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;22 621&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;23 605&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;24 650&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;25 610&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;26 602&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;27 627&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;28 600&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;29 599&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;30 576&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;31 591&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;32 621&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;33 603&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;34 597&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;35 605&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;36 565&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;37 627&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;38 579&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;39 601&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;40 610&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;41 578&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;42 615&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;43 575&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;44 646&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;45 587&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;46 572&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;47 618&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;48 645&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;49 575&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;50 609&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;51 631&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;52 631&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;53 653&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;54 615&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;55 607&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;56 635&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;57 586&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;58 637&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;59 609&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;60 585&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;proc&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;sort&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;by&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; wages;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;run&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;proc&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;means&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;var&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; wages;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;run&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;proc&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;univariate&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;normal&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; &lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;plot&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;var&lt;/span&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt; wages;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;run&lt;/span&gt;&lt;/b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="background: white none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="MsoNormal" style=""&gt;  &lt;/p&gt;          &lt;p class="MsoNormal" style=""&gt;comment:&lt;span style="font-size: 8pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;             &lt;/span&gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;u&gt;&lt;span style=""&gt;The distribution of these data set is normal.&lt;o:p&gt;&lt;br /&gt;&lt;span style="text-decoration: none;"&gt;&lt;/span&gt;&lt;/o:p&gt;Ho: data is normally dist.&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;H1: data is not normally dist.&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;Prob&lt;w&gt;&lt;/w&gt;&lt;br /&gt;In the box plot median and mean number are approx same.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4430252790237742416-6831499929075336018?l=sas-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sas-help.blogspot.com/feeds/6831499929075336018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4430252790237742416&amp;postID=6831499929075336018' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/6831499929075336018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/6831499929075336018'/><link rel='alternate' type='text/html' href='http://sas-help.blogspot.com/2007/10/one-simple-example.html' title='one simple example'/><author><name>emreb-n</name><uri>http://www.blogger.com/profile/16182497472046057532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4430252790237742416.post-6603535768739623020</id><published>2007-10-04T07:59:00.000-07:00</published><updated>2007-10-05T15:13:28.813-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sas'/><title type='text'>proc univariate statement</title><content type='html'>&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;proc&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;univariate&lt;/span&gt; generates the descriptive statistics. (skewness, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;kurtosis&lt;/span&gt;, t-test, sign test, rank test, median, mode etc...)&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;the plot option:&lt;/span&gt; will generate a stem leaf plot box plot and a normal probability plot if we are dealing with large data sets a &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_3"&gt;horizontal&lt;/span&gt; bar chart may be produced instead of stem and leaf plot.&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;the normal option&lt;/span&gt;: generates a statistic to test for &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_4"&gt;normality&lt;/span&gt; and its p-value. here our hypothesis tests are&lt;br /&gt;Ho: the data set is distributed normally&lt;br /&gt;H1: the data set is not distributed normally&lt;br /&gt;by looking p-value we can/not reject hypothesis.&lt;br /&gt;if p value&lt; style="font-weight: bold;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;proc&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;univariate&lt;/span&gt; general form :&lt;br /&gt;....&lt;br /&gt;....&lt;br /&gt;...&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;run&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;proc&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;univariate&lt;/span&gt; data&lt;/span&gt;=&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;dataset&lt;/span&gt; &lt;options&gt;;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;by&lt;/span&gt; variable ;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;var&lt;/span&gt; variable;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;run&lt;/span&gt;;&lt;/options&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4430252790237742416-6603535768739623020?l=sas-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sas-help.blogspot.com/feeds/6603535768739623020/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4430252790237742416&amp;postID=6603535768739623020' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/6603535768739623020'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/6603535768739623020'/><link rel='alternate' type='text/html' href='http://sas-help.blogspot.com/2007/10/proc-univariate-statement.html' title='proc univariate statement'/><author><name>emreb-n</name><uri>http://www.blogger.com/profile/16182497472046057532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4430252790237742416.post-1809406394051668177</id><published>2007-10-04T07:43:00.000-07:00</published><updated>2007-10-04T10:35:50.804-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sas'/><title type='text'>proc means statement</title><content type='html'>proc means is a procedure to use when you are only interested in the basic descriptive statistics.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;proc means general statement:&lt;br /&gt;&lt;/span&gt;...&lt;br /&gt;...&lt;br /&gt;..&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;run&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;proc means data&lt;/span&gt;=dataset &lt;options&gt;;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;by &lt;/span&gt;variables;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;var&lt;/span&gt; variables;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;run&lt;/span&gt;;&lt;br /&gt;we have some options there. when we write only proc means SAS system gives us  sample size, minimum maximum values,average and standard deviation.&lt;br /&gt;some useful options:&lt;br /&gt;range: the range&lt;br /&gt;sum:the sum&lt;br /&gt;var:the variance&lt;br /&gt;stderr:the standard error of the mean&lt;br /&gt;prt: p value for this test different from "0"&lt;br /&gt;clm: two sided 95% confidence interval&lt;br /&gt;&lt;br /&gt;example:&lt;br /&gt;                                 &lt;p class="MsoNormal" style=""&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: navy;" lang="EN-US"&gt;DATA&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;" lang="EN-US"&gt; WAGES;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;" lang="EN-US"&gt;INPUT&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;" lang="EN-US"&gt; SUBJECT WAGE;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;" lang="EN-US"&gt;DATALINES&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;" lang="EN-US"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;1&lt;span style=""&gt;  &lt;/span&gt;609&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;2&lt;span style=""&gt;  &lt;/span&gt;601&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;3&lt;span style=""&gt;  &lt;/span&gt;592&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;4&lt;span style=""&gt;  &lt;/span&gt;604&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;5&lt;span style=""&gt;  &lt;/span&gt;569&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;6&lt;span style=""&gt;  &lt;/span&gt;625&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;7&lt;span style=""&gt;  &lt;/span&gt;655&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;8&lt;span style=""&gt;  &lt;/span&gt;582&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;9&lt;span style=""&gt;  &lt;/span&gt;583&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;10 610&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: navy;" lang="EN-US"&gt;PROC&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;" lang="EN-US"&gt; &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: navy;" lang="EN-US"&gt;MEANS&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;" lang="EN-US"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;" lang="EN-US"&gt;DATA&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;" lang="EN-US"&gt;=WAGES clm&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;" lang="EN-US"&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;" lang="EN-US"&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;" lang="EN-US"&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;" lang="EN-US"&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: teal;" lang="EN-US"&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;" lang="EN-US"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;" lang="EN-US"&gt;VAR&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;" lang="EN-US"&gt; WAGE;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: navy;" lang="EN-US"&gt;RUN&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;" lang="EN-US"&gt;;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;" lang="EN-US"&gt;this program gives us 10 workers' mean wage ,standard deviation min and max&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: black;" lang="EN-US"&gt;if we add clm it gives 2 sided confidence interval for the mean.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4430252790237742416-1809406394051668177?l=sas-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sas-help.blogspot.com/feeds/1809406394051668177/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4430252790237742416&amp;postID=1809406394051668177' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/1809406394051668177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/1809406394051668177'/><link rel='alternate' type='text/html' href='http://sas-help.blogspot.com/2007/10/proc-means-statement.html' title='proc means statement'/><author><name>emreb-n</name><uri>http://www.blogger.com/profile/16182497472046057532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4430252790237742416.post-3797117264748210466</id><published>2007-10-03T08:36:00.000-07:00</published><updated>2007-10-05T15:07:01.873-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sas'/><title type='text'>proc print statement</title><content type='html'>this procedure tells SAS to print out certain variables in the data set.&lt;br /&gt;proc print general form:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;data&lt;/span&gt; dataset;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;input&lt;/span&gt; variales;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;datalines&lt;/span&gt;;&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;run&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;proc print data&lt;/span&gt;=dataset;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;by &lt;/span&gt;variables;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;var&lt;/span&gt; variables;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;run&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;the keyword &lt;span style="color: rgb(255, 0, 0);"&gt;var &lt;span style="color: rgb(0, 0, 0);"&gt;is short for variable list. You list the variables you want to print after var in the order you want them printed.&lt;br /&gt;&lt;br /&gt;note: when you write input statement if your variable data are not number you write "$"after variable for example&lt;br /&gt;data dataname;&lt;br /&gt;input name $ age city $ ---&gt; name and city variables are not number&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4430252790237742416-3797117264748210466?l=sas-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sas-help.blogspot.com/feeds/3797117264748210466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4430252790237742416&amp;postID=3797117264748210466' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/3797117264748210466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/3797117264748210466'/><link rel='alternate' type='text/html' href='http://sas-help.blogspot.com/2007/10/proc-print-statement.html' title='proc print statement'/><author><name>emreb-n</name><uri>http://www.blogger.com/profile/16182497472046057532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4430252790237742416.post-5571259904191356759</id><published>2007-10-03T08:31:00.000-07:00</published><updated>2007-10-04T10:35:50.804-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sas'/><title type='text'>general sas structure</title><content type='html'>&lt;span style="font-weight: bold;"&gt;general form of simple data step&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;data&lt;/span&gt; dataset;  ---&gt; the data statement names the data set.&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;input&lt;/span&gt; variales;----&gt; input is the keyword that defines the names of variables in the data set.&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;datalines&lt;/span&gt;;-----&gt;this statement signals the begining of variables&lt;br /&gt;the lines of data&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;...&lt;br /&gt;;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;run&lt;/span&gt;;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4430252790237742416-5571259904191356759?l=sas-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sas-help.blogspot.com/feeds/5571259904191356759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4430252790237742416&amp;postID=5571259904191356759' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/5571259904191356759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/5571259904191356759'/><link rel='alternate' type='text/html' href='http://sas-help.blogspot.com/2007/10/general-sas-structure.html' title='general sas structure'/><author><name>emreb-n</name><uri>http://www.blogger.com/profile/16182497472046057532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4430252790237742416.post-3424616096337561346</id><published>2007-10-03T07:46:00.000-07:00</published><updated>2007-10-05T15:12:11.257-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sas'/><title type='text'>sas introduction</title><content type='html'>When &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;SAS&lt;/span&gt; program is started it has 4 main windows open:&lt;br /&gt;1-the program editor&lt;br /&gt;2-the log window&lt;br /&gt;3-the output window&lt;br /&gt;4-the explorer window&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_C1ydfxxEpgk/RwO06ejeYII/AAAAAAAAAAY/Rg87Oug6gTM/s1600-h/ads%C4%B1z.bmp"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://1.bp.blogspot.com/_C1ydfxxEpgk/RwO06ejeYII/AAAAAAAAAAY/Rg87Oug6gTM/s320/ads%C4%B1z.bmp" alt="" id="BLOGGER_PHOTO_ID_5117132518350282882" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;we write all codes to editor window.&lt;br /&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;SAS&lt;/span&gt; is organized into two steps. there are two types of steps DATA steps, which put data in a form that the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;SAS&lt;/span&gt; program can use an &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;PROC&lt;/span&gt; steps which use procedures to do &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;sth&lt;/span&gt;. to the data, such as sorting it, analyzing it or &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_5"&gt;printing&lt;/span&gt; it.&lt;br /&gt;A semicolon (;) is required to denote the end of a statement. spacing does not matter.You can put as many spaces between word/ keywords of the statements as you like.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4430252790237742416-3424616096337561346?l=sas-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sas-help.blogspot.com/feeds/3424616096337561346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4430252790237742416&amp;postID=3424616096337561346' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/3424616096337561346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/3424616096337561346'/><link rel='alternate' type='text/html' href='http://sas-help.blogspot.com/2007/10/sas-introduction.html' title='sas introduction'/><author><name>emreb-n</name><uri>http://www.blogger.com/profile/16182497472046057532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_C1ydfxxEpgk/RwO06ejeYII/AAAAAAAAAAY/Rg87Oug6gTM/s72-c/ads%C4%B1z.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4430252790237742416.post-539793122749728476</id><published>2007-10-03T07:39:00.000-07:00</published><updated>2007-10-05T15:04:24.298-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sas'/><title type='text'>what is sas?</title><content type='html'>The SAS system is a combination of programs  originally designed to perform statistical analysis of data. Comparing to the other programs SAS system provides very many statistical and nonstatistical functions. usage of SAS is very simple comparing to the others.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4430252790237742416-539793122749728476?l=sas-help.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sas-help.blogspot.com/feeds/539793122749728476/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4430252790237742416&amp;postID=539793122749728476' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/539793122749728476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4430252790237742416/posts/default/539793122749728476'/><link rel='alternate' type='text/html' href='http://sas-help.blogspot.com/2007/10/what-is-sas.html' title='what is sas?'/><author><name>emreb-n</name><uri>http://www.blogger.com/profile/16182497472046057532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
