BookmarkSubscribeRSS Feed
llllllll1
Calcite | Level 5

Hello!

When I'm trying to perform the PROC CAUSALMED recently, I receive these warnings:

WARNING: At least one element of the gradient for the outcome model is greater than 1e-3.
WARNING: The Hessian for the outcome model has been ridged with a maximum value of 524288. Standard errors might not be accurate.

 

Since the outcome variable is not rare, the log link was suggested in SAS help. And I've read the solutions on this website https://communities.sas.com/t5/Statistical-Procedures/PROC-CAUSALMED-warning-messages/m-p/811960#M40... , but as you can see, I've no reason to reduce those covariates, and there is no interaction option initially, so what else can I do to treat this problem, or whether the results are still reliable even warnings are still existed? code is as follows: 

proc casusalmed data=data all;
class X(ref=first) M(ref=last) Y(ref=first) C(ref=first);
model Y=X M /link=log;
mediator M=X;
covar c;
run;

 the treatment, mediator, and outcome are all binary variables.

2 REPLIES 2
SAS_Rob
SAS Employee

Most likely it is still an issue with either the predictors or the single covariate in the outcome model. It would be helpful to attach the following output from Proc FREQ to diagnose the issue.

 

proc freq data=all;

tables y*(m x c);

run;

 

llllllll1
Calcite | Level 5

Thank you so much for your response! I checked the frequency chart but couldn’t find any abnormal from it. Then I tried to reduce the number of covariates and found when the main covariate was rejected, warnings disappeared. However, the covariate has been proved to be associated with the outcome in multivariate logistic analysis. And I don’t think it’s a good way to get rid of that covariate.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

Register now

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 929 views
  • 0 likes
  • 2 in conversation