Hi everyone!
I am doing a research on willingness to pay for food safety attributes for vegetables and because of that I want to calculate standard error for willingness to pay using bootstrapping method in SAS. Does anyone knows how can I calculate standard error for willingness to pay?
thank you!
Calling @Rick_SAS
You need to say more about how you compute "willingness to pay" (WTP). The general idea is that you estimate WTP on the original data, then generate thousands of random subsamples of the data and estimate WTP on each subsample. The result is the "bootstrap distribution" of WTP estimates (one for each subsample). The standard deviation of that distribution is the standard error you are looking for.
An overview of bootstrapping in SAS is given in the article "The essential guide to bootstrapping in SAS",
which provides links to dozens of tips and techniques for efficient bootstrapping in SAS.
Hi dear sir!
Firstly, I estimated the a conditional logit model using proc MDC in SAS then I computed the willingness to pay using this formula WTP=B(attributes)/-Bprice. Now I want to know how I can calculate the standard error or confidence level for estimated willingness to pay using bootstrapping method in SAS.
If you still have questions after reading The Essential Guide to Bootstrapping in SAS, then please post your code and some sample data.
Hi dear sir!
As you said before I attached a sample of my data with this message and the codes which I have used to run the conditional logit are as following:
proc MDC data=work.leafy;*/basic model/*;
title 'Basic Model';
model answer= none appearance_wholesome ps_organic tm_super mygap_cert price /type= clogit nchoice=3;
id questions;
output out=probdata pred=p;
run;
After I estimated the coefficients for each variable I calculated Willingness to pay using this formula WTP=B(variable)/-Bprice
Now I want to know how I can calculate the standard error for WTP using bootstrapping method.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.