Using The SAS VS Code Extension to Check Prime Distribution
Recent Library Articles
Recently in the SAS Community Library: @RyanKing showcases features in the SAS Visual Studio Code extension, including data exploration using SAS, SQL and Python in one SAS notebook file.
Hello! I have got a question about fitting Cox regression model to obs with different measurements with the same ID. I’m new to SAS so I don’t know exactly how to fix this problem. I have got a dataset of 471 obs. 53 out of them have got new measurements but the id of obs are the same. I tried to use this code proc phreg data = imottkm; class x1; model tgvhd*imt(0)= x115; random x1/noclprint; hazardratio 'Relapse' x115/cl=both; run; but the results are a bit weird for me. How could I make this thing work? Is there any way to use random statement in Cox model?
... View more
Hi guys,
suppose to have the following dataset DB. Is there a way to get DB1? In other words where there are repeated (identical) dates the Index should be 1. NB: all IDs have only one record (row) where Index = 1.
Thank you in advance
data DB;
input ID :$20. Admission :date09. Discharge :date09. Index;
format Admission date9. Discharge date9.;
cards;
0001 13JAN2017 25JAN2017 0
0001 13JAN2017 25JAN2017 1
0001 22FEB2018 03MAR2018 0
0001 30JAN2019 04MAR2019 0
0002 01DEC2018 14DEC2018 1
0002 01DEC2018 14DEC2018 0
0003 09JAN2016 25JAN2016 1
0003 29JAN2018 12FEB2018 0;
run;
data DB1;
input ID :$20. Admission :date09. Discharge :date09. Index;
format Admission date9. Discharge date9.;
cards;
0001 13JAN2017 25JAN2017 1
0001 13JAN2017 25JAN2017 1
0001 22FEB2018 03MAR2018 0
0001 30JAN2019 04MAR2019 0
0002 01DEC2018 14DEC2018 1
0002 01DEC2018 14DEC2018 1
0003 09JAN2016 25JAN2016 1
0003 29JAN2018 12FEB2018 0;
run;
... View more
An update is available for SAS Viya 3.5.
Published 24Jun2024
Issue(s) addressed:
SAS Note 70798: The HTML Commons component in SAS® Viya® 3.5 is affected by the Apache Velocity vulnerability described in CVE-2020-13936
For a complete list of SAS Viya updates available, visit the SAS Viya Updates Page.
... View more
Hello, I am trying to calculate the difference between the data observed in 2023 and 2024 by month. I have a total of 84 observations and need to calculate the difference between all 12 months. Below is a sample of how the data is formatted. data Have;
input id 23Jan 23Feb 23Mar 24Jan 24Feb 24Mar;
datalines;
1 0.54 0.54 0.52 0.62 0.61 0.60
2 0.48 0.45 0.48 0.71 0.68 0.67
3 0.59 0.61 0.59 0.57 0.54 0.58
4 0.61 0.62 0.59 0.62 0.61 0.54
; I want a dataset that contains the difference for each month for all 84 observations. Data Want;
ID JanDiff FebDiff MarDiff
1
2
3
4 I know I can write out all 12 calculations but is their a more efficient coding strategy to calculate the differences? Thanks in advance
... View more
Hi folks,
We have a SAS 9.4 M6 installed on a Linux server. Our users connect to MetadataServer through Active Directory. After, the user is validated on MetadataServer, they are associated to a group. Each group has a host user that is used to connect to workspace.
Having this login scenario, there is any problem to use SAS Studio? My understanding its the users needs to provide they Active Directory credentials on login page to logon on, and then, when they connect to workspace server to process, the host user for their group will be used. My understanding is correct?
Regards,
... View more