CheckData4WR: Check data format for Wasserstein regression

CheckData4WRR Documentation

Check data format for Wasserstein regression

Description

Check if there are problems with the form and structure of input data for WR.

Usage

CheckData4WR(X = NULL, Y, qSup)

Arguments

X, Y

The input data of predictors and responses for WR, if both are specified; Otherwise, if X is not specified and hence is NULL, Y is the input Y of WAR.

qSup

Support grid of quantile functions for distributional variables; see WR for details.

Value

A list of the follow elements if X is specified:

scalarRps

Logical; whether the responses in Y are scalars (TRUE) or distributions (FALSE).

anyScalarPdt

Logical; TRUE if there exists scalar predictors and FALSE otherwise.

anyDistnlPdt

Logical; TRUE if there exists distributional predictors and FALSE otherwise.

indScalarPdt

A vector holding the indices of elements in X corresponding to scalar predictors.

indDistnlPdt

A vector holding the indices of elements in X corresponding to distributional predictors.

n

Number of realizations.

q

Number of grid points in qSup.


yqgchen/WR documentation built on June 10, 2025, 6:04 p.m.