GloSpheReg | R Documentation |
Global Fréchet regression for spherical data with respect to the geodesic distance.
GloSpheReg(xin = NULL, yin = NULL, xout = NULL)
xin |
A vector of length |
yin |
An |
xout |
A vector of length |
A list containing the following components:
xout |
Input |
yout |
A |
xin |
Input |
yin |
Input |
Petersen, A., & Müller, H.-G. (2019). "Fréchet regression for random objects with Euclidean predictors." The Annals of Statistics, 47(2), 691–719.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.