Re: [R] problem with parameters

2010-11-24 Thread alkalinetrio
Ok, I try to explain better... I have to create a 21x21 matrix with numbers and a parameter (for example I have to put p and 1-p somewhere in the matrix). I know how to write a matrix with all numbers, but if I put the parameter inside, it says that it can't recognize the value p. What should

Re: [R] problem with parameters

2010-11-24 Thread Joshua Wiley
Well since you said that it cannot recognize the value of 'p', this suggests that you have not defined that object. Here is an example of what you might be trying to do (you can just copy and paste the code into R): ## create x matrix of 0s x - matrix(0,

[R] problem with parameters

2010-11-23 Thread alkalinetrio
Hi, I just downloaded R, but I can't create a matrix with a parameter p. Could someone help me please? Andrea -- View this message in context: http://r.789695.n4.nabble.com/problem-with-parameters-tp3055682p3055682.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] problem with parameters

2010-11-23 Thread Joshua Wiley
Hi Andrea, Help us help you. Please read this: http://www.R-project.org/posting-guide.html and then reply to the list with more details on what you have, what you have tried, and what you expect the results to be. Then we can get you started (and maybe even finished). To borrow from Sherlock