function likeli=h0test(para, time, delta)

a   =para(1);
 

lamda =para(2);
gamma =para(3);

 
pi=1./(1+exp(a));
likeli=sum((1-delta).*log(pi+(1-pi).*exp(-(lamda.*time).^gamma))...
    +(delta).*(log(1-pi)+log(lamda.*gamma)+(gamma-1).*log(lamda.*time)-(lamda.*time).^gamma));

  likeli=(-1)*likeli +(a<0)*1e10+(lamda<0)*1e10+(gamma<0)*1e10;