Functional logistic regression analysis.
This repo contains the R code used for the simulations in the manuscript "A robust functional principal component analysis for scalar-on-function regression". It also includes classical functional partial least squares, functional principal component analysis, and a robust functional partial least squares methods.
Berkay Akturk, Ufuk Beyaztas and Han Lin Shang
The main file is "run.R" and "run2". First, download all the .R files and install the packages given below.
library(fda.usc) # Statistical Analysis of Functional Data
library(fda) # functional data analysis
library(robustX) # Robust estimation and inference for regression and scale
library(matrixStats) # Functions that Apply to Rows and Columns of Matrices
library(pROC) # Display and analyze ROC curves
library(pcaPP) # Robust PCA methods
library(robustbase) # Basic Robust Statistics
library(RobStatTM) # Robust Statistics: Bianco and Yohai estimator for logistic regression
library(expm) # Matrix exponential, logarithm, square root, and related functions
library(wle) # Weighted Likelihood Estimation