02-10-2023
Jedrek369
Fluorite | Level 6
Member since
08-26-2020
- 11 Posts
- 13 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by Jedrek369
Subject Views Posted 808 08-30-2022 08:49 AM 845 08-25-2022 04:08 AM 936 08-05-2022 10:10 AM 2311 07-28-2022 12:21 PM 568 09-18-2021 07:18 AM 920 08-25-2021 03:33 AM 1008 08-24-2021 12:24 PM 1989 07-22-2021 07:58 AM 2132 07-20-2021 11:55 AM 802 10-21-2020 02:35 AM -
Activity Feed for Jedrek369
- Posted Re: Perl RegEx - take the shortest possible phrase until a specific character on SAS Programming. 08-30-2022 08:49 AM
- Liked Re: Perl RegEx - take the shortest possible phrase until a specific character for FreelanceReinh. 08-30-2022 08:48 AM
- Posted Re: Perl RegEx - take the shortest possible phrase until a specific character on SAS Programming. 08-25-2022 04:08 AM
- Liked Re: Perl RegEx - take the shortest possible phrase until a specific character for FreelanceReinh. 08-25-2022 04:03 AM
- Posted Perl RegEx - take the shortest possible phrase until a specific character on SAS Programming. 08-05-2022 10:10 AM
- Liked Re: Converting list to dataset column for ballardw. 07-29-2022 02:45 AM
- Posted Converting list to dataset column on SAS Programming. 07-28-2022 12:21 PM
- Posted Mapp values of the first variable to values of the second variable using macro variables. on SAS Programming. 09-18-2021 07:18 AM
- Tagged Mapp values of the first variable to values of the second variable using macro variables. on SAS Programming. 09-18-2021 07:18 AM
- Liked PROC TEMPLATE Error Message - Unable to Write to Template Store! for art297. 09-13-2021 07:56 AM
- Liked Re: How to change colors on bars? for JohanFu. 09-13-2021 07:40 AM
- Liked Re: Proc Logistic. Why is predicted probability different than calculated from a regression equation for Reeza. 08-25-2021 03:34 AM
- Posted Re: Proc Logistic. Why is predicted probability different than calculated from a regression equation on SAS Programming. 08-25-2021 03:33 AM
- Posted Proc Logistic. Why is predicted probability different than calculated from a regression equation? on SAS Programming. 08-24-2021 12:24 PM
- Tagged Proc Logistic. Why is predicted probability different than calculated from a regression equation? on SAS Programming. 08-24-2021 12:24 PM
- Liked Re: Why is AUC calculated using proc logistic different from AUC calculated using proc surveylogisti for Rick_SAS. 08-20-2021 06:09 AM
- Posted Re: Why is AUC calculated using proc logistic different from AUC calculated using proc surveylogisti on SAS Programming. 07-22-2021 07:58 AM
- Liked Re: Why is AUC calculated using proc logistic different from AUC calculated using proc surveylogisti for Rick_SAS. 07-22-2021 06:44 AM
- Liked ODS excel & multiple sheets for lfang. 07-22-2021 06:42 AM
- Liked Re: ODS excel & multiple sheets for Reeza. 07-22-2021 06:42 AM
-
Posts I Liked
Subject Likes Author Latest Post 1 1 1 5 1
08-30-2022
08:49 AM
Thank you! Now it is clear.
... View more
08-25-2022
04:08 AM
Thank you! "/1514[^Q\$]*Q[^\$]*\$/i" pattern worked. Would you mind explaining why replacement of dots to "[^Q\$]" and "[^\$]" worked? Sorry for the late response. I had so many work assignments I did not find the time for the code.
... View more
08-05-2022
10:10 AM
Hello! I would like to derive "1514#0_2021Q3_2022Q1$" substring from the following string: 1514#0 Deep Dive$ 1514#0_2021Q3_2022Q1$ 1515#0 Deep Dive$ 1515#0_2021Q1_2022Q1$ XYZ$ Dictionary$ The following conditions need to be met: 1) the substring has at least one "Q" letter, 2) substrings in the list are ordered randomly. I have used the following pattern, but it fell short: /1514.*?Q.*?\$?/i Please see the code for your reference: %macro prxsubstr(pattern, string);
%let regex_id = %sysfunc(prxparse(&pattern.));
%let position = 0;
%let length = 0;
%syscall prxsubstr(regex_id, string, position, length);
%global substring;
%let substring = %substr(&string., &position., &length.);
%put &substring.;
%mend;
%let pattern = /1514.*?Q.*?\$?/i;
%let list = 1514#0 Deep Dive$ 1514#0_2021Q3_2022Q1$ 1515#0 Deep Dive$ 1515#0_2021Q1_2022Q1$ ARS_CRS KPI Results$ Dictionary$;
%prxsubstr(&pattern., &list.); Any help will be appreciated.
... View more
07-28-2022
12:21 PM
I have a list of values separated by space. %let list = A B C; I would like to create a single-column dataset. Col1 A B C Thanks in advance!
... View more
09-18-2021
07:18 AM
Hello, Is it possible to automate mapping unique values of the first variable to values of the second variables using macro variables? I don't want to write %let statement for every macro variable. I have the following table: X Y a 1 b 2 c 3 I want the following result: %put &a.;
LOG: 1
%put &b.;
LOG: 2
%put &c.;
LOG: 3
... View more
- Tags:
- macro-variable
08-25-2021
03:33 AM
Shoot. That's embarrassing. Thanks anyway.
... View more
08-24-2021
12:24 PM
As in a subject. data have;
set sashelp.cars;
isUSA = Origin="USA";
run;
proc logistic data=have;
model isUSA=EngineSize Cylinders Horsepower;
output out=pred p=p;
run;
data want;
keep p p_manual;
set pred;
p_manual = 1/(1+EXP(-1 * 0.3199 -3.091*EngineSize
+0.5735*Cylinders
+0.0334*Horsepower));
run; Why is p different than p_manual variable in the want dataset? Thanks.
... View more
- Tags:
- proc logistic
07-22-2021
07:58 AM
Thanks. However, for bigger datasets proc logistic without rocoptions(weighted) does not return the same concordant stats as proc surveylogistic. For other datasets the discrepancy is greater. data have; set sashelp.margarin; weight = _n_/20430; run; proc logistic data=Have /*rocoptions(weighted)*/;
model Choice=LogPrice LogInc FamSize;
weight weight;
ods select Association;
run;
proc surveylogistic data=Have;
model Choice=LogPrice LogInc FamSize;
weight weight;
ods select Association;
run; That's confusing because both procedures calculate the same score. Moreover, I have noticed that surveylogistic procedure will return different concordant stats if there is no weight statement. However the number of pairs is the same. data have; set sashelp.margarin; weight = _n_/20430; run; proc surveylogistic data=Have;
model Choice=LogPrice LogInc FamSize;
weight weight;
ods select Association;
run;
proc surveylogistic data=Have;
model Choice=LogPrice LogInc FamSize;
/* weight weight;*/
ods select Association;
run;
... View more
07-20-2021
11:55 AM
I have used proc logistic and surveylogistic to calculate the AUC. proc logistic data=input_t2e rocoptions(weighted);
model &target_col.(event="1")=&vars.;
weight weight;
roc;
ods output ROCassociation=_auc_l;
run;
proc surveylogistic data=input_t2e;
model &target_col.(event="1")=&vars.;
weight weight;
ods output Association=_auc_sl;
run; The procedures outputted different AUC. Why is that? As I understand both procedures return the same coefficient estimates (although with different standard errors). Logistic scores should be the same, hence AUC also should be equal. However this was not the case when using both procedures. Also, I'm thinking about calculating AUC manually and comparing it to both AUCs. How would you do that? Thanks for the help!
... View more
10-21-2020
02:35 AM
Thank you very much! Have a good day.
... View more
10-20-2020
04:16 PM
Hello, This is my original table: col a; b; c b; b; d d And I want to convert it to: col is_a is_b is_c is_d a; b; c 1 1 1 0 b; b; d 0 1 0 1 d 0 0 0 1 Any help would be much appreciated! Jedrek
... View more