03-12-2025
jojo
Obsidian | Level 7
Member since
06-29-2012
- 69 Posts
- 0 Likes Given
- 1 Solutions
- 0 Likes Received
-
Latest posts by jojo
Subject Views Posted 775 03-12-2025 04:35 PM 950 03-10-2025 09:06 AM 956 03-10-2025 08:25 AM 999 03-10-2025 01:53 AM 1050 03-09-2025 01:39 PM 229 03-09-2025 01:22 PM 344 03-05-2025 02:19 AM 401 02-21-2025 01:39 AM 700 01-18-2024 06:02 PM 992 01-10-2024 10:57 AM -
Activity Feed for jojo
- Posted Re: Extreme value of OR and HR and CI with FIRTH option in proc logistic and proc phreg on Statistical Procedures. 03-12-2025 04:35 PM
- Posted Re: Extreme value of OR and HR and CI with FIRTH option in proc logistic and proc phreg on Statistical Procedures. 03-10-2025 09:06 AM
- Posted Re: Extreme value of OR and HR and CI with FIRTH option in proc logistic and proc phreg on Statistical Procedures. 03-10-2025 08:25 AM
- Posted Re: Extreme value of OR and HR and CI with FIRTH option in proc logistic and proc phreg on Statistical Procedures. 03-10-2025 01:53 AM
- Posted Extreme value of OR and HR and CI with FIRTH option in proc logistic and proc phreg on Statistical Procedures. 03-09-2025 01:39 PM
- Posted Re: how to get pooled median and q1 and q3 using Proc mianalyze on Statistical Procedures. 03-09-2025 01:22 PM
- Tagged Re: quasi-complete separation in proc logistic: question about Firth method on Statistical Procedures. 03-07-2025 11:03 PM
- Tagged Re: quasi-complete separation in proc logistic: question about Firth method on Statistical Procedures. 03-07-2025 11:03 PM
- Posted how to get pooled median and q1 and q3 using Proc mianalyze on Statistical Procedures. 03-05-2025 02:19 AM
- Posted Proc MI on Statistical Procedures. 02-21-2025 01:39 AM
- Posted two reference lines in proc sqplot on SAS Programming. 01-18-2024 06:02 PM
- Posted Re: Add the data value on spaghetti plot on Graphics Programming. 01-10-2024 10:57 AM
- Posted Add the data value on spaghetti plot on Graphics Programming. 01-09-2024 08:08 PM
- Posted Re: assign baseline value based on different time points/groups on SAS Data Management. 12-14-2023 12:41 AM
- Posted Re: Call a macro variable in a title statement in a macro on SAS Programming. 11-08-2023 07:38 PM
- Posted Call a macro variable in a title statement in a macro on SAS Programming. 11-08-2023 06:04 PM
- Posted Re: assign baseline value based on different time points/groups on SAS Data Management. 09-27-2023 01:24 PM
- Posted Re: assign baseline value based on different time points/groups on SAS Data Management. 09-27-2023 12:16 PM
- Posted assign baseline value based on different time points/groups on SAS Data Management. 09-27-2023 10:27 AM
- Posted Re: Proc genmod warning relative Hessian convergence criterion on Statistical Procedures. 08-19-2018 05:26 PM
03-12-2025
04:35 PM
Thanks all for your input and comments. I would use FIRTH method as I will need to run hundreds of models and combine the results.
... View more
03-10-2025
09:06 AM
and OR and HR is for treatment group which only have two values. UNITS is for continuous independent variable.
... View more
03-10-2025
08:25 AM
I need to use proc mianalyze to get the pooled estimate based on the standard error from 200 imputed datasets and then calculate the OR/HR.
... View more
03-10-2025
01:53 AM
Thanks Eric. I didn't use OddsRatio or HazardRatio statement, I calculated the OR and HR using the estimates from the model. Below is the code used.
Proc logistic data=xx;
class treatment(ref="PBO")/param=ref;
model aval(event="1") =treatment base/link=logic firth;
run;
proc phreg data=xx;
class treatment(ref="PBO");
model aval*cnsr(1) = treatment base/firth;
run;
... View more
03-09-2025
01:39 PM
I used FIRTH option in proc logistic and proc phreg as there is a zero event in one of the two groups and more than 60% events in another group. I got extreme values of OR and HR (greater than 100) and very wide CI and p-value <0.0001. Can I interpret the results as the same as for regular proc logistic and proc phreg? Any input/opinion based on your experience and knowledge would be appreciated.
... View more
03-09-2025
01:22 PM
Thanks! So I need to use proc quantreg to get the standard error to each quantile and then use proc mianalyze to get the pooled q1 and q3.
... View more
03-05-2025
02:19 AM
after proc means procedure by imputation based on 50 imputed dataset, I need to get the pooled results for means, median, q1, q3 from proc mianalyze. Is the following code correct? e.g. use the same standard error for mean, q1, q3.
proc mianalyze data= ccc;
by treatment;
modeleffects mean_val q1_val q3_avl;
stderr std_val std_val std_val;
run;
... View more
02-21-2025
01:39 AM
anyone used proc MI for longitudinal data in long format before?
data da;
input id$ visitn trt val;
data lines;
001 1 A 32
001 2 A 29
001 3 A 25
001 4 A 30
001 5 A 22
002 1 A .
002 2 A 20
002 3 A .
002 4 A 18
002 5 A 28
003 1 A 15
003 2 A 10
003 3 A .
003 4 A 18
003 5 A 18
004 1 B 15
004 2 B 17
004 3 B 20
004 4 B 18
004 5 B .
005 1 B 16
005 2 B 14
005 3 B 20
005 4 B .
005 5 B .
006 1 B 19
006 2 B 17
006 3 B 20
006 4 B .
006 5 B 18
;
run;
proc mi data=da nimpute=50 out=da1;
mcmc chain=multiple;
var visitn val;
by id;
run;
... View more
01-18-2024
06:02 PM
I tried to use thee following code to add two reference lines in thee plot, why the label for second line doesn't show in the plot?
proc sgplot data=indata;
series x=visit y=result/group=usubjid datalabelattrs=(size=12pt) markers markerattrs=(size=12pt symbol=trianglefilled)
lineattrs=(thickness=3 pattern=solid) name="series_name";
keylegend "series_name" / valueattrs=(size=14);
refline 0 / axis=y lineattrs=(thickness=3 pattern=dash) label=("Upper Level of Healthy");
refline LLOQn / axis=y lineattrs=(thickness=3 pattern=dash) label=("LLOQ") labelloc=inside;
xaxis label="Visit" labelattrs=(size=16pt) VALUEATTRS=(Size=12
Weight=Bold);
yaxis label="sample data" labelattrs=(size=16pt) VALUEATTRS=( Size=12
Weight=Bold);
run;
... View more
01-09-2024
08:08 PM
I am working on spaghetti plot using proc sgplot, just wonder if there is a way to add the data value on each data point.
... View more
12-14-2023
12:41 AM
I updated the data below. The order of grp is not the same as the order of DAY, and I need to assign the baseline value based on the order of day. I tried to add DAY in by statement, but it doesn't work.
DATA dt; INPUT ID $ grp $ DAY result ; CARDS; 001 s2 1 4.1 001 s2 5 5.0 001 s1 6 3.5 001 s1 7 6.2 001 s3 8 2.5 001 s3 9 1.9 002 s2 1 4.3 002 s2 5 5.1 002 s1 6 3.5 002 s1 7 3.9 002 s3 8 2.5 002 s3 9 1.9
;
RUN;
... View more
11-08-2023
07:38 PM
Thanks! Should have checked for that.
... View more
11-08-2023
06:04 PM
dummy question about how to call a macro variable in a title statement.
%macro m(name=, data=);
ods listing close;
ods rtf file=".../l_&name..rtf";
title '&name listing'; *** how can I call the "name" variable in title statement?
proc print data=&data noobs;
var usubjid visit result ;
run;
ods rtf close;
ods listing;
%mend;
%m(bmi, demo);
... View more
09-27-2023
01:24 PM
Thanks very much. It works for my data.
... View more