Local constant covariance estimation
lc_cov_1d(ids, time, resid, W, t1, t2)
a vector indicating subject/group ids
integer vector of observed time points, the minimum time unit is 1
vector of residual values used for covariance calculation
weight vector, it contains both kernel and bandwidth information in general local polynomial estimation setting up
time point 1
time point 2