[Limdep Nlogit List] Comparing WTP values

Mikołaj Czajkowski miq at wne.uw.edu.pl
Mon Mar 8 02:53:52 EST 2010


On 2010-03-07 11:53, Bakti Hasan Basri wrote:
> Hi,
> I need a help for ideas  to do a test of comparing wtp values. The method uses the convolution approach and it was proposed by Poe et al. (Poe, Severance-Lossin and Welsh, 1994). Your kindness is much appreciated.
>
> Poe, G., E. Severance-Lossin, and M. Welsh. “Measuring the Difference (X-Y) of
> Simulated Distributions: A Convolutions Approach.” Am. J. of Agr. Econ. 76(4 1994):
> 904-15.
> .
>    


Dear Bakti Hasan Basri,

Here is what I used for this:

procedure=conv-test$
calculate;
len1=row(CONV1); ? get length of CONV1 and CONV2
len2=row(CONV2);
n0sum=0$ ? set up a scalar for counting negative outcomes
matrix; V2ones=init(len2,1,1)$ ? create 1s vector of the CONV2 length
DO FOR ; labCONV1 ; cont=1,len1$
matrix; DCONV=CONV1(cont,1)*V2ones-CONV2$
create; VDCONV=DCONV$
create; SUMtmp=VDCONV<=0$
calc; n0sum=n0sum+sum(SUMtmp)$
ENDDO ; labCONV1 $
calc; list; n0sum/(len1*len2)$ ? gives p-value that CONV1> CONV2

? delete; SUMtmp,VDCONV$
? matrix; delete; DCONV$

endproc; conv-test$

execute conv-test$



Best regards,

Mikolaj Czajkowski


More information about the Limdep mailing list