项目作者: egpivo

项目描述 :
Regularized Spatial Maximum Covariance Analysis
高级语言: C++
项目地址: git://github.com/egpivo/SpatMCA.git
创建时间: 2017-01-21T13:08:29Z
项目社区:https://github.com/egpivo/SpatMCA

开源协议:

下载


SpatMCA: Regularized Spatial Maximum Covariance Analysis

License
CRAN_Status_Badge
R build status
Coverage Status
Downloads (monthly)
Downloads (total)
Environmetrics

Description

SpatMCA is an R package designed for regularized maximum covariance analysis. It serves as a powerful tool for:

  • Identifying smooth and localized coupling patterns to understand how one spatial process affects another.
  • Handling both regularly and irregularly spaced data, spanning 1D, 2D, and 3D datasets.
  • Implementing the alternating direction method of multipliers (ADMM) algorithm.

Installation

You can install the SpatMCA package using one of the following methods:

Install from CRAN:

  1. install.packages("SpatMCA")

Install the current development version from GitHub:

  1. remotes::install_github("egpivo/SpatMCA")

Please Note:

  • Windows Users: Ensure that you have Rtools installed before proceeding with the installation.

  • Mac Users: You need Xcode Command Line Tools and should install the library gfortran. Follow these steps in the terminal:

    1. brew update
    2. brew install gcc

    For a detailed solution, refer to this link, or download and install the library gfortran to resolve the “ld: library not found for -lgfortran“ error.

Usage

To perform regularized maximum covariance analysis using SpatMCA, follow these steps:

  1. library(SpatMCA)
  2. spatmca(x1, x2, Y1, Y2, K = 1, num_cores = 1)

Parameters:

  • x1, x2: Location matrices.
  • Y1, Y2: Data matrices.
  • K: Number of patterns.
  • num_cores: Number of CPU cores.

    Output:

    Provides information about the identified patterns

Authors

Maintainer

Wen-Ting Wang (GitHub)

Reference

Wang, W.-T. and Huang, H.-C. (2018). Regularized spatial maximum covariance analysis, Environmetrics, 29, https://doi.org/10.1002/env.2481

License

GPL (>= 2)

Citation

  1. To cite package ‘SpatMCA’ in publications use:
    1. Wang W, Huang H (2023). _SpatMCA: Regularized Spatial Maximum Covariance Analysis_.
    2. R package version 1.0.2.6, <https://github.com/egpivo/SpatMCA>.
  2. A BibTeX entry for LaTeX users is
    1. @Manual{,
    2. title = {SpatMCA: Regularized Spatial Maximum Covariance Analysis},
    3. author = {Wen-Ting Wang and Hsin-Cheng Huang},
    4. year = {2023},
    5. note = {R package version 1.0.2.6},
    6. url = {https://github.com/egpivo/SpatMCA},
    7. }