generate.eive.data {eive} R Documentation

## Generates data for errors-in-variables model

### Description

This function generates data using a linear regression model with size of n. Then one of the independent variables is contaminated by adding measurement errors. Another independent variable can be included in model.

### 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 measurement error. seed Random number seed. By default, it is 12345. useotherx Boolean variable. If it is TRUE, another variable will be created with no errors. By default, it is FALSE.

### Value

Returns a matrix of contaminated variable, other variable (if exists) and independent variable in its columns.

### Author(s)

Mehmet Hakan Satman <mhsatman@istanbul.edu.tr> Erkin Diyarbakirlioglu <ediyarbakirlioglu@gmail.com>

[Package eive version 2.3 Index]