You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/lpcde/R/lpcde.R
+16-5Lines changed: 16 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -45,14 +45,15 @@
45
45
#' @param grid_spacing String, If equal to "quantile" will generate quantile-spaced grid evaluation points, otherwise will generate equally spaced points.
46
46
#' @param normalize Boolean, False (default) returns original estimator, True normalizes estimates to integrate to 1.
47
47
#' @param nonneg Boolean, False (default) returns original estimator, True returns maximum of estimate and 0.
48
+
#' @param cov_flag String, specifies covariance computation. Must be one of "full" (default), "diag" or "off".
48
49
#' @return
49
50
#' \item{Estimate}{ A matrix containing (1) \code{grid} (grid points),\cr
50
51
#' (2) \code{bw} (bandwidths),\cr
51
52
#' (3) \code{est} (point estimates with p-th and q-th order local polynomial),\cr
52
53
#' (4) \code{est_RBC} (point estimates with p_RBC-th and q_RBC-th order local polynomial),\cr
53
-
#' (5) \code{se} (standard error corresponding to \code{est}).
54
-
#' (6) \code{se_RBC} (standard error corresponding to \code{est_RBC}).}
55
-
#' \item{CovMat}{The variance-covariance matrix corresponding to \code{est}.}
54
+
#' (5) \code{se} (standard error corresponding to \code{est}. Set to NA if cov_flag="off").
55
+
#' (6) \code{se_RBC} (standard error corresponding to \code{est_RBC}). Set to NA if cov_flag="off"}
56
+
#' \item{CovMat}{The variance-covariance matrix corresponding to \code{est}. Will be 0 if cov_flag="off" or a diagonal matrix if cov_flag="diag".}
56
57
#' \item{opt}{A list containing options passed to the function.}
57
58
#' @details Bias correction is only used for the construction of confidence intervals/bands, but not for point estimation.
58
59
#' The point estimates, denoted by \code{est}, are constructed using local polynomial estimates of order \code{p} and \code{q},
0 commit comments