Compute the Local Polynomial Regression smoother matrix of degree p. Special cases: p=0 is Nadaraya-Watson, p=1 is Local Linear Regression.
Examples
tt <- seq(0, 1, length.out = 50)
S <- S.LPR(tt, h = 0.1, p = 2) # Local quadratic regression
Compute the Local Polynomial Regression smoother matrix of degree p. Special cases: p=0 is Nadaraya-Watson, p=1 is Local Linear Regression.
tt <- seq(0, 1, length.out = 50)
S <- S.LPR(tt, h = 0.1, p = 2) # Local quadratic regression