CVlm function

Leave one-subject cross-validation score for local linear fit

Leave one-subject cross-validation score for local linear fit

CVlm(Xvec, Yvec, bw, ID, Wt)

Arguments

  • Xvec, Yvec: numeric vectors of data values, Xvec and Yvec must have the same length.
  • bw: a bandwidth of the Epanechnikov kernel
  • ID: subject ID of the data value
  • Wt: a weight vector, may be subject-specific. a weight vector or a constant. For longitudinal data, Wt=1/N corresponds to measurement uniform weight and Wt=1/(nni) corresponds subject uniform weight.
  • Maintainer: Xin Tian
  • License: GPL (>= 2)
  • Last published: 2018-02-12