Dear All
I have a dataset containing different WTPs coeff and sd (I provide an example of the data here below). I need to calculate two random draws with the specific mean and sd (mean: WTP_B_NMF , WTP_B_MF and sd:sd_B_NMF, sd_B_MF ) from each single version. Then calculate the difference of the 10000 (number of draws) new values and retrieve its mean and sd.
Is there anyone that can help on this?
thanks
Federica
I have a dataset containing different WTPs coeff and sd (I provide an example of the data here below). I need to calculate two random draws with the specific mean and sd (mean: WTP_B_NMF , WTP_B_MF and sd:sd_B_NMF, sd_B_MF ) from each single version. Then calculate the difference of the 10000 (number of draws) new values and retrieve its mean and sd.
Is there anyone that can help on this?
thanks
Federica
Code:
* Example generated by -dataex-. For more info, type help dataex clear input long(country product version) float(WTP_B_NMF sd_B_NMF WTP_B_MF sd_B_MF) 1 3 1 .289713 .043104 -.084623 .045278 1 3 2 .486897 .041785 -.036676 .043752 1 2 1 .065856 .031855 -.10064 .033648 1 2 2 -.025039 .029118 -.285143 .034542 1 1 2 .024029 .029038 -.323775 .042935 end label values country country label def country 1 "Germany", modify label values product product2 label def product2 1 "Cookies", modify label def product2 2 "Spaghetti", modify label def product2 3 "Yogurt", modify label values version version2 label def version2 1 "HU", modify label def version2 2 "LI", modify
Comment