[R] problem on using read.csv function

2010-10-21 Thread mou sonia
Hi, I'm using read.csv to import a table. But sevel columns are changed to factor variables automatically. They are actually numbers not factor levels. Why this happened? How can I get the correct table? Thanks a lot. Sonia [[alternative HTML version deleted]] __

[R] sample a matrix with one element to be 1 from wishart distribution

2010-09-06 Thread mou sonia
Hi, I am not sure if this make sense at all. I'd like to sample a matrix, which follows a wishart / inverted wishart distribution. However, the (1,1) element of this matrix should always be equal to 1. How can I handle it in R? Any suggestion is greatly appreciated. Thanks a lot. Sonia [

[R] sample a matrix with one element to be 1 from wishart distribution

2010-09-06 Thread mou sonia
Hi, I am not sure if this make sense at all. I'd like to sample a matrix, which follows a wishart / inverted wishart distribution. However, the (1,1) element of this matrix should always be equal to 1. How can I handle it in R? Any suggestion is greatly appreciated. Thanks a lot. Sonia [