BookmarkSubscribeRSS Feed
Vitthal
Calcite | Level 5
I have been trying to run a GLM on my data. My data seems to be a good fit for log normal distribution. However, there is no default distribution of log normal in proc genmod. Please suggest how can I do so.
4 REPLIES 4
Ksharp
Super User
Try FMM procedure, @Rick_SAS 's blog mention it, or LOG(Y) firstly and model it by normal distribution.
Check Rick's blog:
https://blogs.sas.com/content/iml/2015/09/16/plot-distrib-exp.html
Vitthal
Calcite | Level 5

How would I calculate the relativities basis the estimates? It shouldnt be exp(Estimates) 

Ksharp
Super User
Sorry. I have no clue. Maybe @StatDave @Rick_SAS could give you a hint.

Did you check PROC FMM ?
Rick_SAS
SAS Super FREQ

KSharp linked to an article that shows two different models. I assume you want the first model, which is Y = exp(a + b*X) + eps, where eps ~ N(0,sigma) iid.

 

title "Generalized Linear Model of Y with log link";
proc genmod data=MyData;
   model y = x / dist=normal link=log;
run;

If that is not what you want, please provide more information.

Your most recent question is

> How would I calculate the relativities basis the estimates? It shouldnt be exp(Estimates) 

I don't understand the question. If the model is Y = exp(a + b*X) + eps, then the procedure gives you the parameter estimates. They do not need to be transformed. If you prefer an equivalent multiplicative model, you can use the predictor exp(a)*exp(b*x).

 

The article shows how to transform the predicted values by applying the inverse link function.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1164 views
  • 0 likes
  • 3 in conversation