Learn R Programming

densityratio (version 0.2.1)

permute: Single permutation

Description

Single permutation

Single permutation statistic of ulsif object

Single permutation statistic of kliep object

Single permutation statistic of kmm object

Single permutation statistic of lhss object

Single permutation statistic of spectral object

Single permutation statistic of naivedensityratio object

Usage

permute(object, ...)

# S3 method for ulsif permute(object, stacked, nnu, nde, ...)

# S3 method for kliep permute(object, stacked, nnu, nde, min_pred = sqrt(.Machine$double.eps), ...)

# S3 method for kmm permute(object, stacked, nnu, nde, ...)

# S3 method for lhss permute(object, stacked, nnu, nde, ...)

# S3 method for spectral permute(object, stacked, nnu, nde, ...)

# S3 method for naivedensityratio permute(object, stacked, nnu, nde, min_pred, max_pred, ...)

Value

permutation statistic for a single permutation of the data

permutation statistic for a single permutation of the data

permutation statistic for a single permutation of the data

permutation statistic for a single permutation of the data

permutation statistic for a single permutation of the data

permutation statistic for a single permutation of the data

permutation statistic for a single permutation of the data

Arguments

object

naivedensityratio object

...

Additional arguments to pass through to specific permute functions.

stacked

matrix with stacked numerator and denominator samples

nnu

Scalar with numerator sample size

nde

Scalar with denominator sample size

min_pred

Minimum value of the predicted density ratio

max_pred

Maximum value of the predicted density ratio