sample_mean: Sample mean estimation of the mean

Description Usage Arguments Value

Description

Sample mean estimation of the population mean using the given sequence of the vertices.

Usage

1
sample_mean(chain, trait.vec)

Arguments

chain

a sequence of node indices that represent the referral process.

trait.vec

is a vector of size number of nodes in the network with 0-1 values that for example indicate a specific trait.

Value

mean(trait.vec[chain], na.rm=TRUE)


khabbazian/rdssim documentation built on May 20, 2019, 9:22 a.m.