[R] problem with uniroot

2009-06-03 Thread daniele riggi
Error in uniroot(function(z) log(z/2) - digamma(z/2) + 1 - log((z + d)/2) + : f() values at end points not of opposite sign I don't know how solve this problem, i have already tried using the function optimize, but it doesn't work. Someone could help me? thanks a lot -- Dr. Daniel

[R] problem with uniroot

2009-06-03 Thread daniele riggi
Error in uniroot(function(z) log(z/2) - digamma(z/2) + 1 - log((z + d)/2) + : f() values at end points not of opposite sign I don't know how solve this problem, i have already tried using the function optimize, but it doesn't work. Someone could help me? thanks a lot -- Dr. Daniel

[R] EM algorithm mixture of multivariate

2009-05-22 Thread daniele riggi
Hi, i would to know, if someone have ever write the code to estimate the parameter (mixing proportion, mean, a var/cov matrix) of a mixture of two multivariate normal distribution. I wrote it and it works (it could find mean and mixing proportion, if I fix the var/cov matrix), while if I fix anythi

[R] EM algorithm mixture of multivariate gaussian

2009-05-22 Thread daniele riggi
Hi, i would to know, if someone have ever write the code to estimate the parameter (mixing proportion, mean, a var/cov matrix) of a mixture of two multivariate normal distribution. I wrote it and it works (it could find mean and mixing proportion, if I fix the var/cov matrix), while if I fix anythi

Re: [R] Matrix sum

2009-05-21 Thread daniele riggi
21 > #[2,] 13 23 > #[3,] 15 25 > #[4,] 17 27 > #[5,] 19 29 > > HTH, > > Jorge > > > On Thu, May 21, 2009 at 11:11 AM, daniele riggi > wrote: > >> Someone knows the existence of a function to sum the elements of the same >> pla

[R] help

2009-05-21 Thread daniele riggi
Someone knows the existence of a function to sum the elements of the same place A[i,j] B[i,j] of a matrix?thank you -- Dr. Daniele Riggi, PhD student University of Milano-Bicocca Department of Statistics Building U7, Via Bicocca degli Arcimboldi, 8 20126 Milano, Italy cell. +39 328 3380690

[R] Matrix sum

2009-05-21 Thread daniele riggi
Someone knows the existence of a function to sum the elements of the same place A[i,j] B[i,j] of a matrix?thank you -- Dr. Daniele Riggi, PhD student University of Milano-Bicocca Department of Statistics Building U7, Via Bicocca degli Arcimboldi, 8 20126 Milano, Italy cell. +39 328 3380690

[R] em algorithm mixture of multivariate normals

2009-05-21 Thread daniele riggi
tarting initial value of the covariance matrix and I don't update the estimate of this matrix, the algorithm works and finds the estimate of the vector means, so I wrote it in the correct way. However if someone could help me I will be very grateful to him for kindness. Best RegardsDaniele -