(1)Feb 10 '14 10:12 AM
Hello,
I am trying to calculate hospital sizes adjustment. Here is how the hospital size adjustment is calculated: "Since the largest hospital in the group had 80 times more patient days than the smallest, the size adjustment multiplier was designed to compress the spread to a factor of 2. The size multiplier is 1.0 for the smallest hospital, 2.0 for the largest hospital, and proportionately in between for all hospitals."
Here is the expression I am entering into design view of Access query, with poor results:
Hos_Size_Adj: DMAX (PD)=2, DMIN (PD)=1
I'm not really sure how to put in the expression all of the values for hospital size proportionally in between MAX value (2.0) and MIN value (1.0)
(2)Feb 10 '14 02:43 PM
I am trying to write an expression with several IF-Then statements and getting several errors:
What is the syntax error in my expression?
Below is the code in SAS that works:
[z{Moderator's comment}]
@Johnnitt: I'm not sure if you double posted the question or re-thought the question after the first post; however, the two threads are related now given the posts. [/z{Moderator's comment}]
Hello,
I am trying to calculate hospital sizes adjustment. Here is how the hospital size adjustment is calculated: "Since the largest hospital in the group had 80 times more patient days than the smallest, the size adjustment multiplier was designed to compress the spread to a factor of 2. The size multiplier is 1.0 for the smallest hospital, 2.0 for the largest hospital, and proportionately in between for all hospitals."
Here is the expression I am entering into design view of Access query, with poor results:
Hos_Size_Adj: DMAX (PD)=2, DMIN (PD)=1
I'm not really sure how to put in the expression all of the values for hospital size proportionally in between MAX value (2.0) and MIN value (1.0)
(2)Feb 10 '14 02:43 PM
I am trying to write an expression with several IF-Then statements and getting several errors:
Code:
Size_Factor_Index: IIF ([sumPD] = 0, [Size_Factor_Index]= 1) IIF([sumPD] = 133781, [Size_Factor_Index] =2) IIF ([Size_Factor_Index] = [sumPD]/133781 +1)
Below is the code in SAS that works:
Code:
IF sumPD = 0 then value = 1; else If sumPD = 133781 then value =2; else value = sumPD/133781 +1; run;
[z{Moderator's comment}]
@Johnnitt: I'm not sure if you double posted the question or re-thought the question after the first post; however, the two threads are related now given the posts. [/z{Moderator's comment}]
Comment