
# ncmR

<!-- badges: start -->
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/ncmR)](https://cran.r-project.org/package=ncmR) 
[![CRAN monthly downloads](https://cranlogs.r-pkg.org/badges/ncmR?color=brightgreen)](https://cran.r-project.org/package=ncmR)
[![License](https://img.shields.io/badge/license-GPL%20%3E%3D%203-brightgreen.svg?style=flat)](https://www.gnu.org/licenses/gpl-3.0.html)
[![Dependence](https://img.shields.io/badge/dependencies-4/19-brightgreen?style=flat)](https://www.r-pkg.org/pkg/ncmR)
[![Last Commit](https://img.shields.io/github/last-commit/h-xuanjiu/ncmR)](https://github.com/h-xuanjiu/ncmR)
<!-- badges: end -->


## Overview

Provides tools for fitting the neutral community model (NCM) to assess the role of stochastic processes in community assembly. The package implements the framework of Sloan et al. (2006) <doi:10.1111/j.1462-2920.2005.00956.x>, enabling users to evaluate neutral dynamics in ecological and microbial communities.

## Installation

``` r
# Install stable version from CRAN
install.packages("ncmR")

# Install development version from GitHub
# install.packages("pak")
# pak::pak("h-xuanjiu/ncmR")

# install.packages("remotes")
remotes::install_github("h-xuanjiu/ncmR")
```

## Shiny App

```r
# Load package
library(ncmR)

# Start Shiny app in browser
run_app()
```
