[R] help on data frame and matrix

2006-09-17 Thread Finosaur

Hey,

 

I am given a data frame, which actually contains a matrix. But I need to 
convert the data frame into a matrix so that I can use the matrix operators. 
Can anybody help me out? Thanks a lot.

 

Thaleia

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] help on sampling from Dirichlet process

2006-09-17 Thread Finosaur
Hey,

I have a question on Dirichlet process. I am using a Dirichlet process as a 
prior. 
So I end up with a mixture distribution with a continuous component and 
a random number of discrete components at some mass-points. I tried some
algorithms, but it's too too inefficient. Anyone know some efficient algorithm?
Any easy-to-read paper or some templates? Thanks a lot. I am so frustrated.


Thaleia   
[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.