print.naivedensityratio: Print a 'naivedensityratio' object

View source: R/print.R

print.naivedensityratioR Documentation

Print a naivedensityratio object

Description

Print a naivedensityratio object

Usage

## S3 method for class 'naivedensityratio'
print(x, digits = max(3L, getOption("digits") - 3L), ...)

Arguments

x

Object of class naivesubspacedensityratio.

digits

Number of digits to use when printing the output.

...

further arguments on how to format the number of digits.

Value

invisble The inputted naivedensityratio object.

See Also

print, naive

Examples

set.seed(123)
# Fit model
dr <- naive(numerator_small, denominator_small)
# Inspect model object
dr
# Obtain summary of model object
summary(dr)
# Plot model object
plot(dr)
# Plot density ratio for each variable individually
plot_univariate(dr)
# Plot density ratio for each pair of variables
plot_bivariate(dr)
# Predict density ratio and inspect first 6 predictions
head(predict(dr))
# Fit model with custom parameters
naive(numerator_small, denominator_small, m=2, kernel="epanechnikov")

densityratio documentation built on June 8, 2025, 11:17 a.m.