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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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