.sim.data {genomic.autocorr}R Documentation

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)

Author(s)

Chris Wallace


[Package genomic.autocorr version 1.0-1 Index]