BookmarkSubscribeRSS Feed
steph_t
Calcite | Level 5

I am currently using SAS studio and am wondering whether it is possible to back-transform means and standard errors (and obtain LS means table) after a sqrt transformation.

 

I know you can use the proc glimmix to do this with log transformed data but is there any way to do this for data transformed differently?

 

I have used the following code for log backtransformation

 

Proc glimmix data=file1;
class ANIMAL TREAT;
model NH= TREAT/ link=LOGN;
run;

proc glimmix data=file100;
CLASS ANIMAL TREAT;
MODEL NH= TREAT;
lsmeans treat / cl ilink;
ods select lsmeans;
run;

 

Thanks!

3 REPLIES 3
art297
Opal | Level 21

I'm not well (i.e., not-at-all) versed in glmmix, but can't you just use the power(.5) setting with the link option?

 

Art, CEO, AnalystFinder.com

 

steph_t
Calcite | Level 5

No the ilink function is only for the natural log transformation

art297
Opal | Level 21

I found the following from an older post that suggests otherwise:

 

"On SAS-L, I replied, and since folks don't always read both, I tried to recover it from the archive:

 

This looks like an opportunity to use PROC GLIMMIX, and use of the LINK option. For depth LINK=LOG, and for mass LINK=POWER(0.5). Then in the LSMEANS statement, use the ILINK option, and the final values will include the estimates and their standard errors on both the transformed and original scale. The documentation reports that the standard errors on the inverse lined scale are computed by the delta method."

 

 

see: https://communities.sas.com/t5/SAS-Statistical-Procedures/How-to-back-transform-LSMEAN-standard-erro...

 

Art, CEO, AnalystFinder.com

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 3 replies
  • 3016 views
  • 0 likes
  • 2 in conversation