[R] how to generate this simulation dataset in R

From: zhijie zhang <epistat_at_gmail.com>
Date: Mon 07 Aug 2006 - 12:54:13 EST

Dear Rusers,
  I want to compare the different methods of variable selction in linear/logistic regression, so i want to generate simulated datasets, how to do that?
 response variable:y
independent variables:x1-x4
residual item:e
the theoretical formula is: y=2.1+0.1*x1+0.2*x2 x3,x4 are not related with y
How should i do that?
Thanks very much!

Kind Regards,
Zhi Jie,Zhang

	[[alternative HTML version deleted]]

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Mon Aug 07 12:59:03 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 07 Aug 2006 - 16:19:23 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.