print.summary.kmm: Print a 'summary.kmm' object

View source: R/print.R

print.summary.kmmR Documentation

Print a summary.kmm object

Description

Print a summary.kmm object

Usage

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

Arguments

x

Object of class summary.kmm.

digits

Number of digits to use when printing the output.

...

further arguments on how to format the number of digits.

Value

invisble The inputted summary.kmm object.

See Also

print, summary.kmm, kmm

Examples

set.seed(123)
# Fit model
dr <- kmm(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
kmm(numerator_small, denominator_small,
    nsigma = 5, ncenters = 100, nfold = 10,
    constrained = TRUE)


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