powered by
It computes the semi-variogram for longitudinal data.
variogram(y, times, id)
A list with two components, i.e., svar, a two-column matrix with the time lags and the variogram values, and sigma2 the total variance.
svar
sigma2
a numeric vector of longitudinal responses.
a numeric vector of times at which the longitudinal responses were collected.
a numeric vector of a factor of subject id numbers.
Dimitris Rizopoulos d.rizopoulos@erasmusmc.nl
ind <- aids$patient == 2 yy <- aids$CD4[ind] tt <- aids$obstime[ind] ids <- aids$patient[ind] variogram(yy, tt, ids)
Run the code above in your browser using DataLab