summary.ulsif {densityratio} | R Documentation |
Extract summary from ulsif
object, including two-sample significance
test for homogeneity of the numerator and denominator samples
Description
Extract summary from ulsif
object, including two-sample significance
test for homogeneity of the numerator and denominator samples
Usage
## S3 method for class 'ulsif'
summary(
object,
test = FALSE,
n_perm = 100,
parallel = FALSE,
cluster = NULL,
...
)
Arguments
object |
Object of class |
test |
logical indicating whether to statistically test for homogeneity of the numerator and denominator samples. |
n_perm |
Scalar indicating number of permutation samples |
parallel |
|
cluster |
|
... |
further arguments passed to or from other methods. |
Value
Summary of the fitted density ratio model
Examples
set.seed(123)
# Fit model
dr <- ulsif(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
ulsif(numerator_small, denominator_small, sigma = 2, lambda = 2)
[Package densityratio version 0.2.2 Index]