View source: R/lpcde_methods.R
| print.lpcde | R Documentation |
The print method for local polynomial conditional density objects.
## S3 method for class 'lpcde'
print(x, ...)
x |
Class "lpcde" object, obtained from calling |
... |
Additional options. |
Display output |
summary of inputs to |
Matias D. Cattaneo (maintainer). matias.d.cattaneo@gmail.com.
Rajita Chandak. rajita.chandak@gmail.com.
Michael Jansson. michael.jansson.berkeley@gmail.com.
Xinwei Ma. xinweima.pku@gmail.com.
lpcde for local polynomial conditional density estimation.
Supported methods: coef.lpcde, confint.lpcde,
plot.lpcde, print.lpcde,
summary.lpcde, vcov.lpcde
n <- 100
x_data <- as.matrix(rnorm(n, mean = 0, sd = 1))
y_data <- as.matrix(rnorm(n, mean = 0, sd = 1))
y_grid <- stats::quantile(y_data, seq(from = 0.1, to = 0.9, by = 0.1))
# density estimation
model1 <- lpcde::lpcde(x_data = x_data, y_data = y_data, y_grid = y_grid, x = 0, bw = 0.5)
print(model1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.