Members

Blog Posts

Hack 5.5 Using Macros to Comment Out Sections of SAS Programs

Posted by Michael A. Raithel on July 10, 2017 at 8:21am 0 Comments

SAS Programming Professionals,

Check out this hack: …

Continue

Hack 5.4 Using A SAS Utility Macro that Creates CSV Files

Posted by Michael A. Raithel on June 26, 2017 at 8:31am 0 Comments

SAS Programming Professionals,

Check out this hack: …

Continue
 

Latest Activity

Jean-François Ducré-Robitaille replied to Natasha Ulanowski's discussion July 26 - Programming Problem in the group Friends of SAS Programming Problems
"Here is my solution, without any special format (I always forget proc format). It is perhaps less elegant, but the lookup table for the ranges could be in an external file and the program could still work. data spec_raw;  format gender $23.…"
5 hours ago
Bruce Densmore replied to Natasha Ulanowski's discussion July 26 - Programming Problem in the group Friends of SAS Programming Problems
"In a case like this, a range based data table lends itself to a SAS format ... actually three formats. The rest of the exercise involves reading the "raw" data and applying the appropriate format as needed.  In this case I…"
yesterday
Arthur Tabachneck replied to Natasha Ulanowski's discussion July 26 - Programming Problem in the group Friends of SAS Programming Problems
"I'd use proc format to solve this problem: proc format;  value f_young  low-<.7='low'  .7-3.5='normal'  3.5<-high='high'  other='undefined'  ;  value f_older  low-<.2='low'  .2-3.4='normal'  3.4<-high='high'  other='undefined'  ;  value…"
yesterday
Horst Wolter replied to Natasha Ulanowski's discussion July 26 - Programming Problem in the group Friends of SAS Programming Problems
"data raw; input PATIENTID SEX $ AGE LABVALUE;datalines;101 F 19 0.75102 F 35 0.68103 F 49 3.75104 F 50 0.17105 F 79 2.75106 F 63 3.82107 F 17 2.75108 F 82 3.88109 M 17 0.3110 M 36 0.89111 M 82 3.25;run; proc format; value agef low - 17 =…"
yesterday
Bruce Densmore replied to Natasha Ulanowski's discussion July 19 - Programming Problem in the group Friends of SAS Programming Problems
"Other people may think it more often than I expect ... and I very rarely admit it ... but for this exercise I have NO IDEA WHAT I SHOULD BE DOING!  Just because I think I am a SAS programmer DOES NOT mean that I have any useful statistical…"
yesterday
Profile IconMoazzam Khan and Romain Rigaut joined SAS Canada Community
yesterday
Natasha Ulanowski added a discussion to the group Friends of SAS Programming Problems
Thumbnail

July 26 - Programming Problem

Please post your solutions to this week's problem here. Thank you!See More
Monday
Aroop Ghosh replied to Natasha Ulanowski's discussion July 19 - Programming Problem in the group Friends of SAS Programming Problems
"Null Hypothesis H(0): No association when alpha=0.05Alt Hypothesis H(a): there is an associationlibname dat '~/dat/';/* Examine SAS data set lefties */proc contents data=dat.lefties;run;%let vars=%str(foot mouse scissors gender);%macro…"
Saturday
Aroop Ghosh posted a discussion

Dataset URL for the Weekly Programming Problems

Hello,I would like to use SODA  for the Weekly Programming Problems and use the dataset directly without downloading them, but have been unable to determine the URL. Can somebody tell me please the URL to use for the datasets used for the Weekly Programming Problems?  For example the download link for the Lefties dataset for this week's problem is the following…See More
Saturday
Thuy Tran liked Matt Malczewski's group SAS-Related Employment Opportunities
Saturday
Arthur Tabachneck replied to Natasha Ulanowski's discussion July 19 - Programming Problem in the group Friends of SAS Programming Problems
"/*Comments: I didn't notice anything to be concerned about regardingthe data, variable types, labels, or cell frequencies. As such, Ionly looked at the chi-square tests. The only one of the three tests that showed a statistically…"
Jul 20
olayinka awoyemi replied to Natasha Ulanowski's discussion July 19 - Programming Problem in the group Friends of SAS Programming Problems
"PROC IMPORT OUT= WORK.Left DATAFILE= "C:\...\Lefties.csv" DBMS=CSV REPLACE; GETNAMES=YES; DATAROW=2; RUN; proc print data= left; run;/* SOLUTIONS 4 AND 5 ARE INCLUDED IN THE SOLUTION FOR EACH QUESTION */ /*1. solution:Ho: There is no…"
Jul 20
Rodger Zhang replied to Natasha Ulanowski's discussion July 19 - Programming Problem in the group Friends of SAS Programming Problems
"/* Requests: 1. Examine this SAS data set including the variable labels and attributes. Is there an association between writing hand and kicking foot preference? Carry out the appropriate hypothesis test and compare the resulting p-value to alpha =…"
Jul 20
John Lam replied to Natasha Ulanowski's discussion July 19 - Programming Problem in the group Friends of SAS Programming Problems
"Because I am in a mainframe environment, I cannot access the SAS dataset for  this challenge problem.  However, I am interested in seeing the results.  Some people are wondering why I am right-handed, but shoot left in hockey. In…"
Jul 20
Eshetu G. Atenafu replied to Natasha Ulanowski's discussion July 19 - Programming Problem in the group Friends of SAS Programming Problems
"Here is my response to the programming Problem libname SASCOMM 'Z:\Eshetu\SAS HELP\SASCANADA'; data lefties; set SASCOMM.lefties; run;proc contents data=lefties; run;/* . They collected data on  the hand preference for writing,…"
Jul 19
Jean-François Ducré-Robitaille replied to Natasha Ulanowski's discussion July 19 - Programming Problem in the group Friends of SAS Programming Problems
"Here is my program, including the comment about cells with a small frequency libname fos "C:\sas\fos"; /* Cell count for some values of some variables is small (only  15 people use their left hand with a mouse. This could be…"
Jul 19
Natasha Ulanowski added a discussion to the group Friends of SAS Programming Problems
Thumbnail

July 19 - Programming Problem

Please post your solutions to this week's problem here. The data set needed for the problem is attached. Thank you!See More
Jul 18
Jean-François Ducré-Robitaille replied to Natasha Ulanowski's discussion July 12 - Programming Problem in the group Friends of SAS Programming Problems
"Here is my code. I use the retain to keep track of the variables on the two datasets and only print one error message per name. data both; merge goal (in=a) reward (in=b); by name; retain degreef locationf; if first.name then…"
Jul 18
Profile IconYasmin Moledina, Pam Lahey, Chris Neuman and 1 more joined SAS Canada Community
Jul 18
Tom Kari replied to Natasha Ulanowski's discussion July 12 - Programming Problem in the group Friends of SAS Programming Problems
"data Both; length FirstDegree $20 FirstLocation $20; retain FirstDegree FirstLocation; merge Goal(in=InG) Reward(in=InR); by Name; if first.name then do; FirstDegree = Degree; FirstLocation = Location; end; else if Degree ^= FirstDegree &…"
Jul 17

Forum

Dataset URL for the Weekly Programming Problems

Started by Aroop Ghosh in Featured Discussions on Saturday. 0 Replies

Hello,I would like to use SODA  for the Weekly Programming Problems and use the dataset directly without downloading them, but have been unable to determine the URL. Can somebody tell me please the URL to use for the datasets used for the Weekly…Continue

Logsitic Regression Interaction Term

Started by Sam Davie in Featured Discussions. Last reply by SZ YAO Apr 18. 1 Reply

Hello,I am working on an analysis where I would like to know whether an intervention acts differently across levels of income (5 levels total). I'd like to do this for females only, and adjust for age. In the end, I'd like to obtain an odds ratio…Continue

Available SAS software

Started by Rex Deus in Featured Discussions. Last reply by Arthur Tabachneck Mar 21. 1 Reply

SAS Admin question,I run "proc setinit" and don't see SAS EG as available software, yet SAS EG is fully usable and running fine, am I missing something here?Continue

Do Loop?

Started by Sam Davie in Featured Discussions. Last reply by Arthur Tabachneck Nov 16, 2016. 1 Reply

Hi,I have a large dataset containing information about patients of a medical clinic, which doctor they are registered with (Registering Doctor), and which they saw on that particular visit (Attending Doctor). For each patient, I'd like to calculate…Continue

 
 
 

Photos

Loading…
  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2017   Created by Steve Mahoney.   Powered by

Badges  |  Report an Issue  |  Terms of Service