BookmarkSubscribeRSS Feed
JonKetchup
Obsidian | Level 7

I am completing a cost analysis using a log transformation I.E. log(cost) = treatment. I am interested in testing for the marginal difference between treatments. I can easily find the marginal log(cost) for each treatment group. Three questions:

  1. If I exponentiate the marginal log(cost) for each treatment, is that a biased estimator of cost?
  2. Can I exponentiate the log(cost) for each treatment and find the difference to estimate the difference between treatments?
  3. If either 1 or 2 is biased, how do I use a smearing estimator?

I have the SAS code below. The top table is the SAS output followed by my work to exponentiate the log(cost) for each treatment and calculating the difference. Appreciate the help.

 

PROC glm DATA=cost_data;
class Treatment (REF='1');
MODEL log_cost = treatment;
ESTIMATE 'Treatment 1' INTERCEPT 1 treatment 1 0;
ESTIMATE 'Treatment 0' INTERCEPT 1 treatment 0 1;
RUN;QUIT;

Parameter Estimate Standard t Value Pr > |t|
    Error    
Treatment 1 11.315 0.01456 551.1 <.0001
Treatment 0 11.05746 0.03548 442.32 <.0001
         
exp(0) 82043.1      
exp(1) 63415.27      
         
Diff 18627.83      

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 0 replies
  • 256 views
  • 0 likes
  • 1 in conversation