05-25-2017
DShah
Fluorite | Level 6
Member since
04-29-2016
- 18 Posts
- 3 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by DShah
Subject Views Posted 1308 05-25-2017 08:39 AM 1355 05-24-2017 03:36 PM 1368 05-24-2017 03:16 PM 2037 01-30-2017 12:22 PM 2050 01-30-2017 11:15 AM 1935 01-27-2017 11:43 PM 1957 01-27-2017 08:25 PM 1974 01-27-2017 07:16 PM 64004 01-27-2017 04:18 PM 64011 01-27-2017 04:07 PM -
Activity Feed for DShah
- Posted Re: Add mean and %RSD at bottom of dataset on SAS Programming. 05-25-2017 08:39 AM
- Liked Re: Add mean and %RSD at bottom of dataset for mkeintz. 05-25-2017 08:39 AM
- Posted Re: Add mean and %RSD at bottom of dataset on SAS Programming. 05-24-2017 03:36 PM
- Posted Add mean and %RSD at bottom of dataset on SAS Programming. 05-24-2017 03:16 PM
- Posted Re: slope determination on Statistical Procedures. 01-30-2017 12:22 PM
- Posted slope determination on Statistical Procedures. 01-30-2017 11:15 AM
- Posted Re: determine slope on SAS Procedures. 01-27-2017 11:43 PM
- Posted Re: determine slope on SAS Procedures. 01-27-2017 08:25 PM
- Posted determine slope on SAS Procedures. 01-27-2017 07:16 PM
- Posted Re: Error: BY variables are not properly sorted on SAS Procedures. 01-27-2017 04:18 PM
- Posted Re: Error: BY variables are not properly sorted on SAS Procedures. 01-27-2017 04:07 PM
- Posted Re: Error: BY variables are not properly sorted on SAS Procedures. 01-27-2017 04:05 PM
- Liked Re: Error: BY variables are not properly sorted for ChrisHemedinger. 01-27-2017 04:05 PM
- Posted Error: BY variables are not properly sorted on SAS Procedures. 01-27-2017 03:20 PM
- Liked Re: Calculate Cumulative release for Rick_SAS. 05-09-2016 08:40 AM
- Posted Re: Calculate Cumulative release on ODS and Base Reporting. 05-02-2016 01:47 PM
- Posted Re: Calculate Cumulative release on ODS and Base Reporting. 05-02-2016 10:51 AM
- Posted Calculate Cumulative release on SAS/IML Software and Matrix Computations. 05-02-2016 09:57 AM
-
Posts I Liked
Subject Likes Author Latest Post 1 3 1
05-24-2017
03:36 PM
Hi Mkeintz Thank you for your reply. % RSD is %CV (coefficient of Variance). Please find have and want datasets below. I want average and %CV calculated in the columns below those numbers: Have: Code Slope50 Slope100 Slope150 Ratio50 Ratio100 1 386.99 915.65 2519.9 42.3 275.2 2 321.53 828.51 2753.8 38.8 332.4 3 311.81 946.18 2479.2 33.0 262.0 4 124.73 818.38 2528.7 15.2 309.0 5 275.85 925.42 2412.3 29.8 260.7 6 302.94 876.57 1301.0 34.6 148.4 want: Code Slope50 Slope100 Slope150 Ratio50 Ratio100 1 386.99 915.65 2519.9 42.3 275.2 2 321.53 828.51 2753.8 38.8 332.4 3 311.81 946.18 2479.2 33.0 262.0 4 124.73 818.38 2528.7 15.2 309.0 5 275.85 925.42 2412.3 29.8 260.7 6 302.94 876.57 1301.0 34.6 148.4 Average Average Average Average Average %CV %CV %CV %CV %CV
... View more
05-24-2017
03:16 PM
Hi I have a dataset with 6 columns. I wanted to add average and % RSD for all columns under the last value. is there a procedure to achieve this in SAS 9.4? Thanks in advance
... View more
01-30-2017
12:22 PM
Hi Art Thank you for your reply. Is there a way to add the Slope and R2 values in the table? Thank you!
... View more
01-30-2017
11:15 AM
Hi I have a dataset in SAS. I want to calculate slope and r2 for the data in the last two columns respectively. can you please help me in writing a procedure. Thank you in advance.
... View more
01-27-2017
11:43 PM
i have very limited application for this software. I will be very grateful if you will write a code for me. Thank you in advance
... View more
01-27-2017
08:25 PM
Thank you for your reply. I do not know how to write a code. please find data as in attached CSV file:
... View more
01-27-2017
07:16 PM
Hi I have a dataset (refer attached image). I have imported this data in SAS and want a procedure to determine a slope value (T vs Cn) for 3 samples. As shown in the imagefile. Can you please help me in achieving this. Thank you in advance.
... View more
01-27-2017
04:18 PM
I was able to fix those errors. Thank you all for your help. I am so happy to see such helpful community. Thank you once again.
... View more
01-27-2017
04:07 PM
Thank you for your reply. i was able to remove some of the sort errors by changing the way it imports (RANGE="Test$_xlnm#Print_Area";) from excel. i have few errors left as follows: 4269 proc sgplot data=work.combine1 4270 (where=(sqrtTime >= 0 and _freq_ = 6)); ERROR: File WORK.COMBINE1.DATA does not exist. 4271 title "TLGT Vs RLD"; 4272 series x=SqrtTime y=AverageQR; ERROR: No data set open to look up variables. ERROR: No data set open to look up variables. 4273 series x=SqrtTime y=AverageQT; ERROR: No data set open to look up variables. ERROR: No data set open to look up variables. 4274 run; NOTE: The SAS System stopped processing this step because of errors. NOTE: PROCEDURE SGPLOT used (Total process time): real time 0.00 seconds cpu time 0.00 seconds 4275 title;
... View more
01-27-2017
04:05 PM
thank you for your reply. the person has left who worked on this program.
... View more
01-27-2017
03:20 PM
Hi I am running a procedure and results in to some errors (refer to following log). I dont have much knowledge about this program. Will one of the community member be able to help me. Let me know if you need furhter details. Thank you in advance.
3321 PROC IMPORT OUT= WORK.TEST1 3322 DATAFILE= "C:\Users\devendrashah\Desktop\for SAS.xlsm" 3323 DBMS=EXCEL REPLACE; 3324 RANGE="Test$"; 3325 GETNAMES=YES; 3326 MIXED=NO; 3327 SCANTEXT=YES; 3328 USEDATE=YES; 3329 SCANTIME=YES; 3330 RUN;
NOTE: WORK.TEST1 data set was successfully created. NOTE: The data set WORK.TEST1 has 53 observations and 6 variables. NOTE: PROCEDURE IMPORT used (Total process time): real time 0.20 seconds cpu time 0.04 seconds
3331 PROC IMPORT OUT= WORK.ref1 3332 DATAFILE= "C:\Users\devendrashah\Desktop\for SAS.xlsm" 3333 DBMS=EXCEL REPLACE; 3334 RANGE="ref$"; 3335 GETNAMES=YES; 3336 MIXED=NO; 3337 SCANTEXT=YES; 3338 USEDATE=YES; 3339 SCANTIME=YES; 3340 RUN;
NOTE: WORK.REF1 data set was successfully created. NOTE: The data set WORK.REF1 has 54 observations and 6 variables. NOTE: PROCEDURE IMPORT used (Total process time): real time 0.26 seconds cpu time 0.17 seconds
3341 data test; 3342 set test1 (keep=T Sample Cn V S A); 3343 group=scan(Sample,1); 3344 sqrtTime=sqrt(T); 3345 CnV=Cn*V; 3346 run;
NOTE: Missing values were generated as a result of performing an operation on missing values. Each place is given by: (Number of times) at (Line):(Column). 23 at 3344:12 23 at 3345:9 NOTE: There were 53 observations read from the data set WORK.TEST1. NOTE: The data set WORK.TEST has 53 observations and 9 variables. NOTE: DATA statement used (Total process time): real time 0.03 seconds cpu time 0.01 seconds
3347 3348 * Deriving the dependent variable Q for the regression in each Sample; 3349 data test; 3350 set test; 3351 by group; 3352 lagCn=lag(Cn); 3353 retain G1; 3354 if first.group then do; 3355 G1=S; 3356 sumCiS=0; 3357 Q=(CnV+SumCiS)/A; 3358 end; 3359 else do; 3360 SumCiS+(lagCn*G1); 3361 Q=(CnV+SumCiS)/A; 3362 end; 3363 run;
ERROR: BY variables are not properly sorted on data set WORK.TEST. T=5 Sample=TLGT-6-5 Cn=8.04 V=7 S=0.5 A=1.76625 group=TLGT sqrtTime=2.2360679775 CnV=56.28 FIRST.group=0 LAST.group=0 lagCn=. G1=0.5 sumCiS=82.28 Q=. _ERROR_=1 _N_=30 NOTE: The SAS System stopped processing this step because of errors. NOTE: There were 31 observations read from the data set WORK.TEST. WARNING: The data set WORK.TEST may be incomplete. When this step was stopped there were 29 observations and 13 variables. WARNING: Data set WORK.TEST was not replaced because this step was stopped. NOTE: DATA statement used (Total process time): real time 0.01 seconds cpu time 0.01 seconds
3364 data ref; 3365 set ref1 (keep=T Sample Cn V S A); 3366 group=scan(Sample,1); 3367 sqrtTime=sqrt(T); 3368 CnV=Cn*V; 3369 run;
NOTE: Missing values were generated as a result of performing an operation on missing values. Each place is given by: (Number of times) at (Line):(Column). 24 at 3367:12 24 at 3368:9 NOTE: There were 54 observations read from the data set WORK.REF1. NOTE: The data set WORK.REF has 54 observations and 9 variables. NOTE: DATA statement used (Total process time): real time 0.03 seconds cpu time 0.01 seconds
3370 * Deriving the dependent variable Q for the regression in each Sample; 3371 data ref; 3372 set ref; 3373 by group; 3374 lagCn=lag(Cn); 3375 retain G1; 3376 if first.group then do; 3377 G1=S; 3378 sumCiS=0; 3379 Q=(CnV+SumCiS)/A; 3380 end; 3381 else do; 3382 SumCiS+(lagCn*G1); 3383 Q=(CnV+SumCiS)/A; 3384 end; 3385 run;
ERROR: BY variables are not properly sorted on data set WORK.REF. T=5 Sample=RLD-6-5 Cn=7.35 V=7 S=0.5 A=1.76625 group=RLD sqrtTime=2.2360679775 CnV=51.45 FIRST.group=0 LAST.group=0 lagCn=. G1=0.5 sumCiS=66.845 Q=. _ERROR_=1 _N_=30 NOTE: The SAS System stopped processing this step because of errors. NOTE: There were 31 observations read from the data set WORK.REF. WARNING: The data set WORK.REF may be incomplete. When this step was stopped there were 29 observations and 13 variables. WARNING: Data set WORK.REF was not replaced because this step was stopped. NOTE: DATA statement used (Total process time): real time 0.03 seconds cpu time 0.03 seconds
3386 data work.combine; 3387 set work.test work.ref; 3388 by Sample; 3389 run;
ERROR: BY variables are not properly sorted on data set WORK.REF. T=5 Sample=RLD-6-5 Cn=7.35 V=7 S=0.5 A=1.76625 group=RLD sqrtTime=2.2360679775 CnV=51.45 FIRST.Sample=1 LAST.Sample=1 _ERROR_=1 _N_=30 NOTE: The SAS System stopped processing this step because of errors. NOTE: There were 1 observations read from the data set WORK.TEST. NOTE: There were 31 observations read from the data set WORK.REF. WARNING: The data set WORK.COMBINE may be incomplete. When this step was stopped there were 29 observations and 9 variables. NOTE: DATA statement used (Total process time): real time 0.01 seconds cpu time 0.00 seconds
3390 proc print data=work.Combine; 3391 title 'Data Set TLGT Vs RLD'; 3392 run;
NOTE: There were 29 observations read from the data set WORK.COMBINE. NOTE: PROCEDURE PRINT used (Total process time): real time 0.01 seconds cpu time 0.01 seconds
3393 proc sort data=work.test; by sqrtTime; 3394 run;
NOTE: There were 53 observations read from the data set WORK.TEST. NOTE: The data set WORK.TEST has 53 observations and 9 variables. NOTE: PROCEDURE SORT used (Total process time): real time 0.01 seconds cpu time 0.01 seconds
3395 proc means data=work.test noprint; 3396 by sqrtTime; 3397 var Q; ERROR: Variable Q not found. 3398 output out=summaryT mean=AverageQT; 3399 run;
NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set WORK.SUMMARYT may be incomplete. When this step was stopped there were 0 observations and 0 variables. NOTE: PROCEDURE MEANS used (Total process time): real time 0.01 seconds cpu time 0.00 seconds
3400 proc sort data=work.ref; by sqrtTime; 3401 run;
NOTE: There were 54 observations read from the data set WORK.REF. NOTE: The data set WORK.REF has 54 observations and 9 variables. NOTE: PROCEDURE SORT used (Total process time): real time 0.01 seconds cpu time 0.00 seconds
3402 proc means data=work.ref noprint; 3403 by sqrtTime; 3404 var Q; ERROR: Variable Q not found. 3405 output out=summaryR mean=AverageQR; 3406 run;
NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set WORK.SUMMARYR may be incomplete. When this step was stopped there were 0 observations and 0 variables. NOTE: PROCEDURE MEANS used (Total process time): real time 0.01 seconds cpu time 0.00 seconds
3407
3408 data twosets; 3409 set summaryT; 3410 set SummaryR; 3411 run;
NOTE: There were 0 observations read from the data set WORK.SUMMARYT. NOTE: The data set WORK.TWOSETS has 0 observations and 0 variables. NOTE: DATA statement used (Total process time): real time 0.01 seconds cpu time 0.01 seconds
3412 3413 proc print data=twosets; 3414 title 'Average Cumulative release of TLGT and RLD'; 3415 run;
NOTE: No variables in data set WORK.TWOSETS. NOTE: PROCEDURE PRINT used (Total process time): real time 0.00 seconds cpu time 0.00 seconds
3415! ; 3416 3417 proc sgplot data=work.combine1 3418 (where=(sqrtTime >= 0 and _freq_ = 6)); ERROR: File WORK.COMBINE1.DATA does not exist. 3419 title "TLGT Vs RLD"; 3420 series x=SqrtTime y=AverageQR; ERROR: No data set open to look up variables. ERROR: No data set open to look up variables. 3421 series x=SqrtTime y=AverageQT; ERROR: No data set open to look up variables. ERROR: No data set open to look up variables. 3422 run;
NOTE: The SAS System stopped processing this step because of errors. NOTE: PROCEDURE SGPLOT used (Total process time): real time 0.01 seconds cpu time 0.01 seconds
3423 title;
... View more
05-02-2016
01:47 PM
Hi PGstats The FDA is asking us to provide the data in form of .XPT format. Probably they will perform the calculations once they receive. I wanted to make sure that we perform those calculations at our end and ensure that the data at both ends will be the same. Thanks
... View more
05-02-2016
10:51 AM
Hi Rick, Thank you for your support. I do not have Ci calculated through SAS. I wanted to provide you more details as follows: I wanted to achieve custom calculation for the attached data. I have this calculation in excel, but in order to submit to FDA, I need it in SAS. I am using SAS 9.4 TS level 1M2. The workbook has 3 spreadsheets as follows: Test Reference Output On the test and reference spreadsheets, I wanted the SAS program to calculate the yellow highlighted fields. On the output sheet, I have data taken from the test and reference spreadsheets and further calculated results and plotted charts. The output sheet also has calculation formula for Q and other fields shown above. I wanted to achieve the output sheet as a SAS report. Can you please help me by providing a detailed code. I really appreciate your help in this manner. let me know if you have any questions. Thanks
... View more
05-02-2016
09:57 AM
I wanted to calculate value of Q (Please find formula in the attacheed). I have values of Cn, V, S and A in a dataset. Can somepne from community help me in achieving this. Also, I am new to SAS and has no experience with it. I really appreciate a stepwise procedure. Thanks
... View more