[R] simulating binary variables

Ulrich Flenker uli at biochem.dshs-koeln.de
Fri Aug 9 15:50:18 CEST 2002

On Fri, 9 Aug 2002 laura at bayesian-bay.freeserve.co.uk wrote:

> Dear list
> As a relative newbie to R I am after some basic help.
> I am wanting to simulate a data set consisting of a Y variable and several X variables, all either binary or discrete. I am wondering how to go about doing this and have failed to find anything about this in the R -help.
> Thanks in advance 
> Laura


have a look at help(rbinom) and help(rpois).

	Uli Flenker

	Institute of Biochemistry
	German Sport University Cologne
	Carl-Diem-Weg 6
	50933 Cologne

	Phone 0049/221/4982-506

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list