generate_missing_data: Simulate data and parameters including missing actors.

Description Usage Arguments Value Examples

View source: R/Simulate.R

Description

Simulate data and parameters including missing actors.

Usage

1
generate_missing_data(n, p, r = 1, type, plot = FALSE, dens = 2/p)

Arguments

n

number of samples

p

number of observed species

r

number of missing actors

type

type of conditional dependency structure (graph), either "erdos", "cluster", or "scale-free".

plot

should the simulated graph be plotted ? default to FALSE

dens

density parameter for cluster and erdos graphs. For erdos graphs, this corresponds to the edges probability of connectance

Value

Examples

1
2
3
4
5
6
n=100
p=10
r=1
type="scale-free"
data=generate_missing_data(n,p,r,type, plot=TRUE)
str(data)

Rmomal/nestor documentation built on Dec. 16, 2020, 7:54 p.m.