| Type: | Package |
| Title: | The Sparse Online Principal Component Estimation Algorithm |
| Version: | 0.1.0 |
| Description: | The sparse online principal component can not only process the online data set, but also obtain a sparse solution of the online data set. The philosophy of the package is described in Guo G. (2022) <doi:10.1007/s00180-022-01270-z>. |
| License: | MIT + file LICENSE |
| Encoding: | UTF-8 |
| LazyData: | true |
| RoxygenNote: | 7.2.3 |
| Imports: | elasticnet, magrittr, stats |
| Suggests: | testthat (≥ 3.0.0) |
| Config/testthat/edition: | 3 |
| Maintainer: | Guangbao Guo <ggb11111111@163.com> |
| NeedsCompilation: | no |
| Author: | Guangbao Guo [aut, cre], Chunjie Wei [aut], Guoqi Qian [aut] |
| Depends: | R (≥ 4.1.0) |
| Repository: | CRAN |
| Packaged: | 2023-05-07 04:25:08 UTC; Administrator |
| Date/Publication: | 2023-05-07 04:50:02 UTC |
Pipe operator
Description
See magrittr::%>% for details.
Usage
lhs %>% rhs
Arguments
lhs |
A value or the magrittr placeholder. |
rhs |
A function call using the magrittr semantics. |
Value
The result of calling 'rhs(lhs)'.
Heart failure
Description
Heart failure
Usage
data("Heart")
Format
A data frame with 299 observations on the following 13 variables.
agea numeric vector
anaemiaa numeric vector
creatinine_phosphokinasea numeric vector
diabetesa numeric vector
ejection_fractiona numeric vector
high_blood_pressurea numeric vector
plateletsa numeric vector
serum_creatininea numeric vector
serum_sodiuma numeric vector
sexa numeric vector
smokinga numeric vector
timea numeric vector
DEATH_EVENTa numeric vector
Details
This dataset contains the medical records of 299 patients who had heart failure, collected during their follow-up period, where each patient profile has 13 clinical features.
Source
The Heart failure data set comes from the UCI database.
References
Davide Chicco, Giuseppe Jurman. (2020). Machine learning can predict survival of patients with heart failure from serum creatinine and ejection fraction alone. BMC Medical Informatics and Decision Making.
Examples
data(Heart)
## maybe str(Heart) ; plot(Heart) ...
Hugging
Description
The EMG Physical Action-Hugging data set.
Usage
data("Hugging")
Format
A data frame with 9752 observations on the following 8 variables.
Aa numeric vector
Ba numeric vector
Ca numeric vector
Da numeric vector
Ea numeric vector
Fa numeric vector
Ga numeric vector
Ha numeric vector
Details
The data set is a body movement data set, including 10 normal and 10 aggressive body movements. The data frame with 9752 observations on the following 8 variables.
Source
The Hugging data set comes from the UCI database.
References
Demir et al. (2019). Surface emg signals and deep transfer learning-based physical action classification. Neural Computing and Applications.
Examples
data(Hugging)
## maybe str(Hugging) ; plot(Hugging) ...
The incremental principal component can handle online data sets with highly correlated.
Description
The incremental principal component can handle online data sets with highly correlated.
Usage
IPC(data, m, eta)
Arguments
data |
is a highly correlated online data set |
m |
is the number of principal component |
eta |
is the proportion of online data to total data |
Value
Ai,Di
Examples
IPC(data=PSA,m=3,eta=0.8)
The online principal component method refers to the IPC method with the best performance among the IPC, the PPC and the SAPC methods.
Description
The online principal component method refers to the IPC method with the best performance among the IPC, the PPC and the SAPC methods.
Usage
OPC(data, m, eta)
Arguments
data |
is a highly correlated online data set |
m |
is the number of principal component |
eta |
is the proportion of online data to total data |
Value
Ao,Do
Examples
OPC(data=PSA,m=3,eta=0.8)
The traditional principal component method. This method can estimate the eigen space of the data set.
Description
The traditional principal component method. This method can estimate the eigen space of the data set.
Usage
PC(data, m = m)
Arguments
data |
is a highly correlated data set |
m |
is the number of principal component |
Value
Ahat, Dhat
Examples
PC(data=PSA,m=3)
The perturbation principal component can handle online data sets with highly correlated.
Description
The perturbation principal component can handle online data sets with highly correlated.
Usage
PPC(data, m, eta)
Arguments
data |
is a highly correlated online data set |
m |
is the number of principal component |
eta |
is the proportion of online data to total data |
Value
Ap,Dp
Examples
PPC(data=PSA,m=3,eta=0.8)
Prostate Specific Antigen
Description
The prostate specific antigen (PSA) data set.
Usage
data("PSA")
Format
lcavola numeric vector
lweighta numeric vector
agea numeric vector
lbpha numeric vector
svia numeric vector
lcpa numeric vector
gleasona numeric vector
pgg45a numeric vector
lpsaa numeric vector
Details
The data set comes from the prostate specific antigen (PSA) data of 96 patients collected by Stanford University Medical Center. These patients all underwent radical prostatectomy.
Source
The Stanford University Medical Center.
References
NA
Examples
data(PSA)
## maybe str(PSA) ; plot(PSA) ...
The stochastic approximation principal component can handle online data sets with highly correlated.
Description
The stochastic approximation principal component can handle online data sets with highly correlated.
Usage
SAPC(data, m, eta)
Arguments
data |
is a highly correlated online data set |
m |
is the number of principal component |
eta |
is the proportion of online data to total data |
Value
Asa,Dsa
Examples
SAPC(data=PSA,m=3,eta=0.8)
The sparse online principal component can not only process online data sets, but also obtain a sparse solution of online data sets.
Description
The sparse online principal component can not only process online data sets, but also obtain a sparse solution of online data sets.
Usage
SOPC(data, m, gamma, eta)
Arguments
data |
is a highly correlated online data set |
m |
is the number of principal component |
gamma |
is a sparse parameter |
eta |
is the proportion of online data to total data |
Value
Aso,Dso
Examples
require(elasticnet)
SOPC(PSA,3,0.03,0.6)
The sparse principal component can obtain sparse solutions of the eigenmatrix to better explain the relationship between principal components and original variables.
Description
The sparse principal component can obtain sparse solutions of the eigenmatrix to better explain the relationship between principal components and original variables.
Usage
SPC(data, m, gamma)
Arguments
data |
is a highly correlated data set |
m |
is the number of principal component |
gamma |
is a sparse parameter |
Value
As,Ds
Examples
require(elasticnet)
SPC(data=PSA,m=3,gamma=0.03)