predictSiteGroup: Posterior probability of group membership

View source: R/predict.R

predictSiteGroupR Documentation

Posterior probability of group membership

Description

Uses results of lda to predict which group the site belongs to based on the data for the site/sample. Tested! Works! nsite * ngroup

Usage

predictSiteGroup(data, center, invcov, group)

Arguments

data

a matrix of site predictor variables

center

a matrix of group means for the site calibration data

invcov

a pooled inverse coveraince matrix for the site calibration data

group

a vector of grouping indicators for the calibration data

Value

a list: 1) a matrix of posterior probabilities of group membership 2) the minimum distance of each site from the group centroids (used to determine whether the site is an outlier)


jasonelaw/RIVPACS documentation built on Sept. 27, 2022, 6:34 p.m.