Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.21.0208091547410.4062-100000@FILESERV.biochem.dshs-koeln.de>
Date: 2002-08-09T13:50:18Z
From: Ulrich Flenker
Subject: simulating binary variables
In-Reply-To: <20020809132857.MOGG23487.fep08-svc.ttyl.com@localhost>

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
> 

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._