label Questions - RunSubmit.com most recent 30 from http://www.runsubmit.com 2010-07-29T19:55:15Z http://www.runsubmit.com/feeds/tag/label http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://www.runsubmit.com/questions/185/theta-symbol-in-a-sas-label Theta Symbol in a SAS Label? SAS-L 2010-01-04T19:58:58Z 2010-01-05T02:55:45Z <p>How do I make the label for a variable display a Greek character. </p> <p>So I need:</p> <pre><code>label Theta = &lt;somehex_expression?&gt;; </code></pre> <p>I'm trying to label the variable named Theta with the upper case Greek theta symbol. thoughts?</p> http://www.runsubmit.com/questions/157/code-or-process-to-assign-value-labels-to-specific-numerical-values-in-a-dataset Code or process to assign value labels to specific numerical values in a dataset Dagan 2009-12-02T22:12:52Z 2009-12-16T16:45:40Z <p>I am still struggling a bit with how SAS handles value labels for specific numbers in a variable.</p> <p>How do you code value labels within a variable/column for a SAS dataset?</p> <p>An example is LevelofCare variable: 5=education 6=medication assist 10=outpatient 20=intensive outpatient 30=residential</p> <p>In Stata I would do such: label define LOCSE 5 "Education" 6 "Methadone" 10 "Outpatient" 20 "Intensive Outpatient" 30 "Residential" 40 "Detox" label values LevelofCare LOCSE</p> <p>The result is I would then have value labels assigned to that Stata dataset permanently.</p> <p>Is there such a process or command in SAS?</p> <p>I have tried and know you can do a proc format statement like:</p> <p>proc format;</p> <pre><code>value $CareLevellb '0'='Assess only' '00'='Assess only' '05'='Education' '10'='Outpatient' '20'='Intensive outpatient' '25'='Day tx' '30'='Residential'; attrib LevelCare label="Level of care received"; format LevelCare $CareLevellb.; RUN; </code></pre> <p>But I believe this is only temporary. What am I doing incorrectly? I did try variations running the above say under a data command such as </p> <p>DATA Rfpdata.Test2008; SET Rfpdata.Tb2008_nodup proc format; ..............</p> <p>Any suggestions? Will/how does SAS incorporate variable value labels in a permanent dataset once you run a program.</p> <p>Thank-you ahead of time.</p> http://www.runsubmit.com/questions/98/coding-the-value-codes-and-labels-along-with-data-type-for-variables Coding the value codes and labels along with data type for variables Dagan 2009-11-03T00:24:29Z 2009-11-04T16:50:16Z <p>Is there a good specific resource to show examples of coding to create the following?</p> <ol> <li><p>The description of the variable/column within the table, example for TERM_TYPE, would be Disposition at discharge.</p></li> <li><p>The value labels for the variable/column for TERM_TYPE such as 1= Appointment not kept within 14 days of enrollment 2=Client terminates treatment without clinical agreement, 3 = Treatment is complete, etc.</p></li> <li><p>Even if the variable TERM_TYPE is a number, 1, 2, 3, .... it is treated as a categorical/nominal variable.</p></li> </ol> <p>Thanks for your help in transitioning between statistical coding/programming.</p> <p>Dagan</p>