Skip to contents

Simulate Data using Linear Models

Usage

simulate(xmodel, ymodel, n = 1000, start = c(1, 2))

Arguments

xmodel

Linear model for x simulation.

ymodel

Linear model for y simulation.

n

Number of samples to simulate (default 1000).

start

Starting values as a vector (default c(1,2)).

Value

A matrix with simulated data (n rows x 2 columns).