generate.eive.data {eive} | R Documentation |
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.
generate.eive.data(n, e.sd, delta.sd, seed = 12345, useotherx = FALSE)
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. |
Returns a matrix of contaminated variable, other variable (if exists) and independent variable in its columns.
Mehmet Hakan Satman <mhsatman@istanbul.edu.tr> Erkin Diyarbakirlioglu <ediyarbakirlioglu@gmail.com>