generate.eive.data {eive}R Documentation

Generates simulated errors-in-variables regression data

Description

Generates simulated errors-in-variables regression data

Usage

generate.eive.data(n, e.sd, delta.sd, seed = 12345, useotherx = FALSE)

Arguments

n

Number of observations

e.sd

Standard deviation of error term of regression

delta.sd

Standard deviation of error in exploratory variable

seed

Seed for random number generator. 12345 by default

useotherx

Logical. If TRUE, an additional independent variable is added.

Value

A matrix of variables.

Slots

xdelta

Errorenous X variable

otherx

Other X variable

y

Response variable


[Package eive version 3.1.3 Index]