Code Monkey home page Code Monkey logo

spatmca's Introduction

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:

install.packages("SpatMCA")

Install the current development version from GitHub:

remotes::install_github("SpaceTimeViz/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:

    brew update
    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:

library(SpatMCA)
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:
  Wang W, Huang H (2023). _SpatMCA: Regularized Spatial Maximum Covariance Analysis_.
  R package version 1.0.2.6, <https://CRAN.R-project.org/package=SpatMCA>.
  1. A BibTeX entry for LaTeX users is
  @Manual{,
    title = {SpatMCA: Regularized Spatial Maximum Covariance Analysis},
    author = {Wen-Ting Wang and Hsin-Cheng Huang},
    year = {2023},
    note = {R package version 1.0.2.6},
    url = {https://CRAN.R-project.org/package=SpatMCA}},
  }

spatmca's People

Contributors

egpivo avatar olivroy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.