Re: [R] Hi, Coding problem

2009-02-26 Thread Greg Snow
boun...@r- > project.org] On Behalf Of Ssophia > Sent: Wednesday, February 25, 2009 7:28 PM > To: r-help@r-project.org > Subject: [R] Hi, Coding problem > > > > Hi, there > > > > Below is my code to one Homework question. I couldn't come up with >

Re: [R] Hi, Coding problem

2009-02-26 Thread Uwe Ligges
Ssophia wrote: Hi, there Below is my code to one Homework question. I couldn't come up with the reasonable answer. PLEASE do read the posting guide http://www.R-project.org/posting-guide.html could you please help me to figure out what is t

[R] Hi, Coding problem

2009-02-25 Thread Ssophia
Hi, there Below is my code to one Homework question. I couldn't come up with the reasonable answer. could you please help me to figure out what is the problem with my code? thank you Question is Coding P{X=j} =(1/2)^(j+1) + (1/2) *2^(j-1)/3^j my code is sim <-