01-15-2025
Satyakshma
Fluorite | Level 6
Member since
12-01-2020
- 30 Posts
- 0 Likes Given
- 0 Solutions
- 1 Likes Received
-
Latest posts by Satyakshma
Subject Views Posted 1025 09-23-2024 09:13 AM 607 10-11-2022 03:05 AM 762 10-07-2022 03:23 AM 304 11-12-2021 02:03 AM 3908 10-28-2021 09:06 AM 3918 10-28-2021 08:48 AM 3985 10-27-2021 02:40 PM 4023 10-27-2021 01:27 PM 1516 09-17-2021 05:54 AM 1518 09-17-2021 05:52 AM -
Activity Feed for Satyakshma
- Posted Node split option in Interactive decision tree is not showing all variables on Statistical Procedures. 09-23-2024 09:13 AM
- Posted Export 30MB SAS dataset and then open excel directly on SAS Programming. 10-11-2022 03:05 AM
- Posted Convert character variable of length $36. To Numeric on SAS Programming. 10-07-2022 03:23 AM
- Posted Re: Run regression for all possible combinations of 3 variables on Statistical Procedures. 11-12-2021 02:03 AM
- Posted Re: Run regression for all possible combinations of 3 variables on Statistical Procedures. 10-28-2021 09:06 AM
- Got a Like for Run regression for all possible combinations of 3 variables. 10-28-2021 08:59 AM
- Posted Re: Run regression for all possible combinations of 3 variables on Statistical Procedures. 10-28-2021 08:48 AM
- Posted Re: Run regression for all possible combinations of 3 variables on Statistical Procedures. 10-27-2021 02:40 PM
- Posted Run regression for all possible combinations of 3 variables on Statistical Procedures. 10-27-2021 01:27 PM
- Posted Re: Create solver to get minimum sum square error using PROC FCMP on SAS Programming. 09-17-2021 05:54 AM
- Posted Re: Create solver to get minimum sum square error using PROC FCMP on SAS Programming. 09-17-2021 05:52 AM
- Posted Re: Create solver to get minimum sum square error using PROC FCMP on SAS Programming. 09-15-2021 11:37 AM
- Posted Re: Iterative excel solver in sas on SAS Programming. 09-06-2021 09:51 PM
- Posted Re: Iterative excel solver in sas on SAS Programming. 09-06-2021 09:39 PM
- Posted Iterative excel solver in sas on SAS Programming. 09-06-2021 01:50 PM
- Posted Create solver to get minimum sum square error using PROC FCMP on SAS Programming. 09-06-2021 11:10 AM
- Posted Re: Solver function to be created in SAS using Proc fcmp on SAS Procedures. 09-06-2021 11:06 AM
- Posted Solver function to be created in SAS using PROC FCMP on Mathematical Optimization, Discrete-Event Simulation, and OR. 09-01-2021 06:42 AM
- Posted Solver function to be created in SAS using Proc fcmp on SAS Procedures. 09-01-2021 06:37 AM
- Posted Re: Understanding the technical requirements for SAS/OR on SAS Enterprise Guide. 08-30-2021 10:59 AM
-
My Liked Posts
Subject Likes Posted 1 10-27-2021 01:27 PM
09-23-2024
09:13 AM
Hi All, I need to create a interactive decision tree in SAS eminer with raw dataset(no train and validation split). However I am only getting top 4-5 variables for first node split. Is there a way I can get atleast 10 variables for first split. Thanks
... View more
10-11-2022
03:05 AM
Hi All, I want to export a SAS dataset of sixe 30MB approx. The challenge is the client cannot access the location where the excel are saved. They need to open the excel as soon as the SAS dataset is exported and save to their local system. What SAS function or procedure can be used to export the large dataset and then open the excel directly. Kindly help with the issue. Thanks, Satyakshma Rawat
... View more
10-07-2022
03:23 AM
Hi, I have Account_ID of length $36. I am trying to convert this to numeric variable but it truncates the last digits or converts the last digit to 0000. Kindly help with the issue.
... View more
11-12-2021
02:03 AM
Thank you @Ksharp . This works for me 🙂
... View more
10-28-2021
09:06 AM
Thanks, I am trying to add this line of code- call execute(catt("output out =","reg_op",";")); As I need to generate the results of these regression (slope, intercept, r-square, adj-rsquare etc) in dataset. But I am getting error as 'Data work reg_op is already open for output'. Is there some other way I can get the output in dataset.
... View more
10-28-2021
08:48 AM
Hi, Thank you for your response. but have few questions in the code. You have used 'Graycode' function in the code. Is it different from using 'Allcomb' function to get combinations.
... View more
10-27-2021
02:40 PM
Thankyou for your response. But I have a question here, the selection =backward option will do variable selection or it will provide all combinations.
... View more
10-27-2021
01:27 PM
1 Like
Hi, I have a dataset with 3 independent variables (var1 - var3) and one dependent variable(var0). I need to run regression for all possible combinations of 3 variables. data have; input var0 var1 var2 var3; Datalines; 0.17 3.84 15.60 17.15 0.13 3.72 1.90 17.46 0.18 8.44 22.80 12.37 0.14 6.29 5.60 8.73 ; run; regression to be run for combinations var1 var2 var3 var1 var2 var2 var3 and so on.. Thanks.
... View more
09-17-2021
05:54 AM
@Rick_SAS @Ksharp @PGStats @FreelanceReinhard @Patrick Tourmaline If this can be done in data step then this will also work for me.
... View more
09-17-2021
05:52 AM
Hi Patrick, As per my understanding so far in SAS, I can generate random value using RAND( ) function. But my problem statement comes with one condition: this random value is to be used to calculate a "predicted values" as shown in Table 3 such that there is "minimum sum square difference" between these predicted value in Table 3 and actual value in Table 2. I am not able to create a logic around, how satisfy this condition in order to get final output. @Rick_SAS @Ksharp @PGStats @FreelanceReinhard It would be really helpful if someone can help me with the code as I am really in need to develop SAS code around this.
... View more
09-15-2021
11:37 AM
I can create a simple dataset using datastep but I am not able to create datastep logic to create index value which is used to create predicted value with a condition that sum square error should be minimum.
... View more
09-06-2021
09:51 PM
As the generation of random values to calculate the normal distribution is dependent on the constraint that delta value should be minimum. As I am new to SAS, I am facing difficulty in writing code to satisfy the constraint and generate results.
... View more
09-06-2021
09:39 PM
Hi Reeza, I am facing problem in generating random values itself. I am not able to identify the way to generate random values using which I can do normal distribution calculations.
... View more
09-06-2021
01:50 PM
Hello All I'm trying to replicate in SAS a procedure I use in Excel. This procedure is basically an iterative solver (through a macro) that puts the variable Delta (Sum square error of actual and predicted value) to minimum value by changing the values of the Index value(starting with null values) used to calculate predict value. The input data start like this: bucket score actual predicted delta index 1 -2.38219 0.011488 . . . 2 -0.64283 0.323792 . . . 3 -0.19096 0.5008 . . . 4 0.379314 0.693121 . . . - bucket, score and actual are inputs; - index values are generated by Excel; Used in calculating predicted which is further used to find the delta - predicted is given by NORM.S.DIST(score + index, TRUE) - Delta is minimum sum square error (actual, predicted) The solver objective function is Delta, it operates by changing index values and the constraint is predicted value should be such that minimum delta value. It runs for each cell. After solver macro, the desired output is: bucket score actual predicted delta index 1 -2.38219 0.011488 0.013501 0.000359105 0.170699 2 -0.64283 0.323792 0.318416 0.000359105 0.170699 3 -0.19096 0.5008 0.491916 0.000359105 0.170699 4 0.379314 0.693121 0.708845 0.000359105 0.170699 Is there a way to do this in SAS except for proc optmodel as I don't have license for SAS/OR? I have been trying and searching for a few days, without success. If anyone could help with the code for this, it would be very much helpful and appreciated. Kind Regards, Satyakshma Rawat
... View more
09-06-2021
11:10 AM
Hello Everyone, I have to calculate the predicted values for year 2015, 2016 and 2017 for Bucket1, Bucket2, Bucket3 and Bucket4 using a Z_score and an Index value. I already have Z_Score from other table, but I need to generate an Index value (which is a random value). The Index value to be generated should be such that that when we calculate predicted PD using it for each year. The sum square errors of Predicted PDs and Actual PDs should be minimum. I am able to do this in Excel using Run solver function, and I need to do this using PROC FCMP in BASE SAS in SAS EG as I don't have SAS/IML or SAS/OR COMPONENT. Please help me with this code as I am new to PROC FCMP. Attached is the Input table and desired output table: Table 1: Using Z Score from this Col1 Value 1 Z value 1 0.86% -2.38 2 26.02% -0.64 3 42.43% -0.19 4 64.78% 0.38 Table 2: Bucket-wise Actual values for each year Col1 2015 2016 2017 2018 1 1.15% 0.66% 0.51% 1.13% 2 32.38% 22.38% 18.04% 31.26% 3 50.08% 37.32% 38.41% 43.91% 4 69.31% 59.29% 57.13% 73.38% 5 99.72% 100.00% 100.00% 100.00% Table 3: Index values are random values generated, and used in calculating predicted values in bold Index value 0.100000 0.170699 -0.133416 -0.178382 0.135047 Col1 2015 2016 2017 2018 1 1.35% 0.59% 0.52% 1.23% 2 31.84% 21.88% 20.58% 30.58% 3 49.19% 37.28% 35.59% 47.77% 4 70.88% 59.71% 57.96% 69.65% Table 4: Min sum of squares (between actual values and predicted values) value and Index value. Sum of Squares Index 0.000 2015 0.000 0.17 2016 0.000 -0.13 2017 0.002 -0.18 2018 0.003 0.14 I have written the below code using proc fcmp for the above problem, but I am not able to create the right code for this: PROC FCMP OUTLIB=work.functions.ci; function predict(currentValue); return(CDF('NORMAL', currentValue + index)); endsub; function sum_square_error(value1,value2); diff = (value1-value2); return(diff*diff); endsub; function minimum(y,sse,index,value1,value2); return(solve("sum_square_error",.,y,min(sse)); endsub; QUIT; options cmplib=( work.functions); data test; set test; predicted = cred_index(Z_score); err = sum_square_error(actual,predicted); run; Please help with this problem.
... View more