simProbitY: Binary Data Simulation

Description Usage Arguments Value Examples

View source: R/simProbitY.R

Description

This function simulates multivariate binary data from a latent factor model updated 2212019.

Usage

1
2
simProbitY(n, p, mu.alpha = 0, sd.alpha = 1, mu.beta = 1,
  sd.beta = 1)

Arguments

n

- number of sites.

p

- number of species

mu.alpha

- mean for alpha parameter: default is 0

sd.alpha

- sd for alpha parameter: default is 1

mu.beta

- mean for beta parameter: default is 0

sd.beta

- sd for beta parameter: default is 1

Value

mat - matrix representation of presence / absence

vec - vectorized representation of presence / absence

alpha.true - true values of alpha

beta.true - true values of alpha

theta.true - true values of alpha

z.true - true values of alpha

Examples

1
simProbitY(10,10)

andyhoegh/UncertainOrd documentation built on Aug. 9, 2019, 4:33 p.m.