-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
93 lines (66 loc) · 3.04 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# ```fsdaR```
<!-- badges: start -->
[![CRAN version](https://www.r-pkg.org/badges/version/fsdaR)](https://cran.r-project.org/package=fsdaR)
[![R-CMD-check](https://github.com/UniprJRC/fsdaR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/UniprJRC/fsdaR/actions/workflows/R-CMD-check.yaml)
[![downloads](https://cranlogs.r-pkg.org/badges/fsdaR)](https://cran.r-project.org/package=fsdaR)
[![downloads](https://cranlogs.r-pkg.org/badges/grand-total/fsdaR)](https://cran.r-project.org/package=fsdaR)
[![license](https://img.shields.io/badge/license-GPL--3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.en.html)
<!-- badges: end -->
This package provides interface to the 'MATLAB' toolbox 'Flexible Statistical Data Analysis
(FSDA)' which is comprehensive and computationally efficient
software package for robust statistics in regression, multivariate
and categorical data analysis. The current R version implements tools
for regression: (forward search, S- and MM-estimation, least trimmed
squares (LTS) and least median of squares (LMS)), for multivariate analysis
(forward search, S- and MM-estimation), for cluster analysis and cluster-wise regression.
The distinctive feature of our package is the possibility of
monitoring the statistics of interest as a function of breakdown point,
efficiency or subset size, depending on the estimator. This is
accompanied by a rich set of graphical features, such as dynamic
brushing, linking, particularly useful for exploratory data analysis.
## Installation
The `fsdaR` package is on CRAN (The Comprehensive R Archive Network) and the latest release can be easily installed using the command
```
install.packages("fsdaR")
```
__NOTE (WINDOWS):__ To avoid some spurious errors due to the new MCR installation on Windows (V9.10), add the following to the system path
````
<RUNTIME_ROOT>\bin\win64
````
which most probably boils down to:
````
C:\Program Files\MATLAB\MATLAB Runtime\v910\bin\win64
````
## Building from source
To install the latest stable development version from GitHub, you can pull this repository and install it using
```
## install.packages("remotes")
remotes::install_github("UniprJRC/fsdaR")
```
Of course, if you have already installed `remotes`, you can skip the first line (I have commented it out).
On Windows, follow the __NOTE__ given above.
## Example
This is a basic example which shows you if the package is properly installed:
```{r example1}
library(fsdaR)
n <- 200
v <- 3
set.seed(123456)
X <- matrix(rnorm(n*v), nrow=n)
Xcont <- X
Xcont[1:5, ] <- Xcont[1:5,] + 3
out <- fsmult(Xcont, trace=TRUE) # no plots (plot defaults to FALSE)
names(out)
out <- fsmult(Xcont, trace=TRUE, plot=TRUE) # identical to plots=1
```