LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (March 2012, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 22 Mar 2012 22:18:12 +0000
Reply-To:   "High, Robin R" <rhigh@UNMC.EDU>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "High, Robin R" <rhigh@UNMC.EDU>
Subject:   Re: Back-transforming a truncated poisson parameters in NLMixed
Comments:   To: Andrew Cox <wacox@MIZZOU.EDU>
In-Reply-To:   <201203222016.q2MHPVS5022749@waikiki.cc.uga.edu>
Content-Type:   text/plain; charset="us-ascii"

Exponentiate the equations in the estimate statements:

estimate '2010' exp(b0 + b_ACFL*0.33 + b_INBU*0.33 + b_forest*0.33 + b_field*0.33 + b_year*2010);

Robin High UNMC

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Andrew Cox Sent: Thursday, March 22, 2012 3:16 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Back-transforming a truncated poisson parameters in NLMixed

Hi, I stole some code from the SAS website to model some data that fit a truncated poisson distribution (no zero values). Here is the code I used, which (I hope) models intensity as a function of several variables and includes a random effect for the location each sample was taken from.

proc nlmixed data=nlmixeddata; parms b0=0 b_ACFL=0 b_INBU=0 b_Forest=0 b_field=0 b_year=0 s2u=0.5; lambda=exp(b0 + b_acfl*acfl + b_inbu*inbu + b_forest*forest + b_field*field + b_year*year + u); ll=-lambda+intensity*log(lambda)-lgamma(intensity+1)-log(1-exp(-lambda)); model intensity ~ general(ll); random u ~ normal(0,exp(2*s2u)) subject=location; estimate '1991' b0 + b_ACFL*0.33 + b_INBU*0.33 + b_forest*0.33 + b_field*0.33 + b_year*1991; estimate '2010' b0 + b_ACFL*0.33 + b_INBU*0.33 + b_forest*0.33 + b_field*0.33 + b_year*2010; run;

What I don't understand is how to back-transform the output from the estimate statements so it is in the same scale that the original intensity variable is.

Any help is much appreciated.

Andrew Cox University of Missouri


Back to: Top of message | Previous page | Main SAS-L page