04-11-2023
ursula
Pyrite | Level 9
Member since
10-20-2012
- 117 Posts
- 53 Likes Given
- 3 Solutions
- 9 Likes Received
-
Latest posts by ursula
Subject Views Posted 1470 04-10-2023 04:17 PM 1702 09-17-2022 03:31 PM 1712 09-17-2022 02:44 PM 1722 09-17-2022 02:22 PM 1810 09-17-2022 12:43 AM 804 07-31-2021 10:17 PM 888 07-30-2021 06:33 PM 1157 12-26-2019 01:08 PM 1158 12-26-2019 01:07 PM 1274 12-20-2019 07:11 PM -
Activity Feed for ursula
- Got a Like for Re: problem export to csv file. 03-18-2024 04:20 PM
- Got a Like for problem export to csv file. 03-18-2024 04:19 PM
- Liked Re: Exponential code for s_lassen. 04-11-2023 05:33 PM
- Liked Re: Exponential code for ballardw. 04-10-2023 06:46 PM
- Liked Re: Exponential code for Reeza. 04-10-2023 06:46 PM
- Posted Exponential code on SAS Programming. 04-10-2023 04:17 PM
- Posted Re: Equation in SAS on SAS Programming. 09-17-2022 03:31 PM
- Liked Re: Equation in SAS for Kurt_Bremser. 09-17-2022 03:31 PM
- Posted Re: Equation in SAS on SAS Programming. 09-17-2022 02:44 PM
- Liked Re: Equation in SAS for FreelanceReinh. 09-17-2022 02:44 PM
- Posted Re: Equation in SAS on SAS Programming. 09-17-2022 02:22 PM
- Posted Equation in SAS on SAS Programming. 09-17-2022 12:43 AM
- Liked Re: output file in pdf format with title for ChrisNZ. 07-31-2021 10:18 PM
- Posted Re: output file in pdf format with title on SAS Programming. 07-31-2021 10:17 PM
- Posted output file in pdf format with title on SAS Programming. 07-30-2021 06:33 PM
- Posted Re: Format catalog on SAS Programming. 12-26-2019 01:08 PM
- Posted Re: Format catalog on SAS Programming. 12-26-2019 01:07 PM
- Liked Re: Format catalog for SASKiwi. 12-26-2019 01:05 PM
- Liked Re: Format catalog for ballardw. 12-26-2019 01:05 PM
- Posted Format catalog on SAS Programming. 12-20-2019 07:11 PM
-
Posts I Liked
Subject Likes Author Latest Post 2 1 1 2 3 -
My Liked Posts
Subject Likes Posted 1 07-25-2019 12:55 PM 1 07-23-2019 02:40 PM 1 01-12-2016 03:36 PM 3 11-26-2014 01:33 PM 3 08-26-2015 04:27 PM
04-10-2023
04:17 PM
Hi,
Anyone can help me of how to code the below equation into SAS:
another one is (1e-6), how to code it in SAS?
Thanks in advance.
... View more
09-17-2022
02:44 PM
sorry , I have a tiny quick question about the code from you.
data want;
set have;
if n(SCr, age)=2 then do;
if sex='F' then eGFR=142*min(SCr/0.7,1)**-0.241*max(SCr/0.7,1)**-1.2*0.9938**age*1.012;
else if sex='M' then eGFR=142*min(SCr/0.9,1)**-0.302*max(SCr/0.9,1)**-1.2*0.9938**age;
end;
run;
what does the "n" ( if n(SCr, age) = 2 then do:) mean?
Thanks,
... View more
09-17-2022
02:22 PM
Thank you so much for your help!
I really appreciate for the prompt response!
Have a great weekend!
... View more
09-17-2022
12:43 AM
Hi,
is anybody able to help me of how to write the following equation in SAS?
eGFR cr = 142 x min(S cr /κ, 1) α x max(S cr /κ, 1) -1.200 x 0.9938 Age x 1.012 [if female]
where:
S cr = standardized serum creatinine in mg/dL
κ = 0.7 (females) or 0.9 (males)
α = -0.241 (female) or -0.302 (male)
min(S cr /κ, 1) is the minimum of S cr /κ or 1.0
max(S cr /κ, 1) is the maximum of S cr /κ or 1.0
Age (years)
Thanks in advance!
... View more
07-31-2021
10:17 PM
Thank you so much for your help!
it's exactly of what I expected.
... View more
07-30-2021
06:33 PM
Hi there,
I need help to output file in pdf format with a Title that correspondence to the ID.
I have 2 tables:
table 1:
ID
VISIT
LAB
10
1
YES
10
2
NO
10
3
NO
20
2
YES
20
3
YES
20
5
NO
20
6
NO
table 2:
ID
GENDER
10
FEMALE
20
MALE
I want the pdf output as following (page 1, page2 etc..)
PAGE 1 look like this:
GENDER: FEMALE
ID
VISIT
LAB
10
1
YES
10
2
NO
10
3
NO
PAGE2:
GENDER: MALE
ID
VISIT
LAB
20
2
YES
20
3
YES
20
5
NO
20
6
NO
How to code(link) the 2 tables into one output?
Thank you in advance, really appreciate your time.
... View more
12-20-2019
07:11 PM
HI,
I received a SAS file and a format catalog.
the problem is, I'm not able to open the file, this is the error message:
ERROR: File FORMATS.CATALOG was created for a different operating system.
my computer running a 64 bit, I believe the format was created with 32 bit.
I do not have a computer that can run 32 bit.
is it a way to open the format catalog so I can manually copy and paste the part that I need in to the data step?
any help will be very appreciated.
thank you in advance!
... View more
07-25-2019
01:23 PM
I think you are right, it's not just a space from the original file. it must be something in there?
but I like the code you sent.
Thank you.
... View more
07-25-2019
12:55 PM
1 Like
after look into the original file, I realized that there is one "text: field have "space" in the value, for example:
this original file: (this is not a real data, the actual data have more variables including date field).
ID
visit
value1
Name
value3
value4
100
1
Asia
Lita wong
Honda
credit
200
1
USA
Irene
Tesla
cash
the "Name'"="Lita Wong" have a space in between. so when I export it to csv file, the the 'Name' shift to next row.
I did not realize it shifted to the next row, I thought it was missing ID and visit after export to csv file.
the output of csv looks like this:
ID
visit
value1
Name
value3
value4
100
1
Asia
Lita
wong
Honda
credit
200
1
USA
Irene
Tesla
cash
so after I deleted the space, from Lita Wong to Litawong, the csv file looked like this:
ID
visit
value1
Name
value3
value4
100
1
Asia
Litawong
Honda
credit
200
1
USA
Irene
Tesla
cash
this is what i expected, and then I saved it to excel file.
... View more
07-23-2019
05:41 PM
Thank you all for the nice comment and useful information.
I really appreciate for your time.
I have figured it, by cleaning the raw file, every thing is going well!
... View more
07-23-2019
03:41 PM
I have tried it, but the output did not hold the format. especially for date, it showed numbers instead of mm/dd/yy.
... View more
07-23-2019
03:17 PM
if I export to excel file, all are going well. The only issue is, the output excel file cannot hold the format that I run in the code.
for example; 1 = yes, 2 = no.
in the output excel file, it will show as 1, and 2, but I need it shows 'Yes' ans "No".
the reason I'm using output csv is, the output file will show "Yes" and "No", and then I convert it to excel file.
... View more