[R] data generation

mail me mailme842 at googlemail.com
Mon Mar 5 01:41:22 CET 2012


Hi:
I am trying to generate data form a simple linear regression model.
The training data
 T = {(x1, y1), . . . , (xn), yn}, want to sample x uniformly from the
range [0,1],  find uncorrupted response y = x^2, and generate random
noise "e" from normal distribution N(0, 1). Any idea how to do in
simple steps?

Thanks in advance.
deb



More information about the R-help mailing list