Learn R Programming

convoSPAT (version 1.2.7)

mc_N: Calculate local sample sizes.

Description

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

Usage

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

Run this code
# NOT RUN {
mc_N( coords = simdata$sim.locations, mc.locations = simdata$mc.locations,
fit.radius = 1 )
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab