pseudo.pred.norm: Generate a pseudo predator parametrically from multivariate...

View source: R/All_MUFASA_Code.R

pseudo.pred.normR Documentation

Generate a pseudo predator parametrically from multivariate normal distributions.

Description

Generate a pseudo predator parametrically from multivariate normal distributions.

Usage

pseudo.pred.norm(mu.mat, sigma.pool, diet)

Arguments

mu.mat

matrix where each row represents the mean transformed FA signature of each prey type

sigma.pool

pooled variance-covariance matrix of the transformed fatty acid signatures of prey types

diet

the "true" or "desired" diet of the pseudo predator with prey species in the same order as the rows of mu.mat. A compositional vector of proportions that sums to one with length equal to the number of prey species.

Details

Similar to pseudo.pred but instead generates the pseudo-predators parametrically by assuming ilr transformed FA signatures have a multivariate normal distribution.

Value

A simulated predator FA signature. See pseudo.pred for an example illustrating how to generate a sample of pseudo predators.


QFASA documentation built on Nov. 17, 2023, 1:08 a.m.