Learn R Programming

genomic.autocorr (version 1.0-1)

.sim.data: internal function to simulate data for examples

Description

internal function to simulate data for examples

Usage

.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)