GloSpheReg {frechet} | R Documentation |
Global Fréchet Regression for Spherical Data
Description
Global Fréchet regression for spherical data with respect to the geodesic distance.
Usage
GloSpheReg(xin = NULL, yin = NULL, xout = NULL)
Arguments
xin |
A vector of length |
yin |
An |
xout |
A vector of length |
Value
A list containing the following components:
xout |
Input |
yout |
A |
xin |
Input |
yin |
Input |
References
Petersen, A., & Müller, H.-G. (2019). "Fréchet regression for random objects with Euclidean predictors." The Annals of Statistics, 47(2), 691–719.
Examples
n <- 101
xin <- seq(-1,1,length.out = n)
theta_true <- rep(pi/2,n)
phi_true <- (xin + 1) * pi / 4
ytrue <- apply( cbind( 1, phi_true, theta_true ), 1, pol2car )
yin <- t( ytrue )
xout <- xin
res <- GloSpheReg(xin=xin, yin=yin, xout=xout)
[Package frechet version 0.3.0 Index]