mc_N: Calculate local sample sizes.

Description Usage Arguments Value Examples

View source: R/convoSPAT_summplot.R

Description

mc_N calculates the number of observations (sample size) that fall within a certain fit radius for each mixture component location.

Usage

1
mc_N(coords, mc.locations, fit.radius)

Arguments

coords

A matrix of observation locations.

mc.locations

A matrix of the mixture component locations to use in the model fitting.

fit.radius

Scalar; defines the fitting radius for local likelihood estimation.

Value

A vector mc.N.fit, which summarizes the number of observation locations in coords that fall within the fit radius for each mixture component location.

Examples

1
2
3
4
5
## Not run: 
mc_N( coords = simdata$sim.locations, mc.locations = simdata$mc.locations,
fit.radius = 1 )

## End(Not run)

convoSPAT documentation built on Jan. 16, 2021, 5:31 p.m.

Related to mc_N in convoSPAT...