modify Getlikelihood, sampled var uses all observed intervals
support -1 test, only insert sampled var to temptr