internalfunctions: internal function to simulate data for examples

Description Usage Arguments Value Author(s)

Description

internal function to simulate data for examples

Usage

1
.sim.data(n = 500, m = 10, beta = 0.2)

Arguments

n

number of independent observations

m

group size - number of times each independent observation is repeated

beta

Y1 ~ N( beta * X, 1)

Value

data.table with Chr (always 1, possibly needed for bootstrap), x (explanatory variable), y1 (response variable related to x), y0 (response variable unrelated to x) name (unique name for each independent observation)

Author(s)

Chris Wallace


chr1swallace/genomic.autocorr documentation built on May 13, 2019, 6:19 p.m.