[R] Splitting data

2008-03-18 Thread Kathy Maher
Does anyone know a loop that will allow me to split rows of data to get sum of squares; and then to move rows around to minimize the sum of squares? I am stuck on how to split and move rows around. [[alternative HTML version deleted]] __

[R] (no subject)

2008-03-16 Thread Kathy Maher
Hi, I am trying to use the Fisher scoring method with a geometric distribution, with p = .07, 100 observations from the geom distrib, and 10 iterations. I cannot quite get the code to work. Can anyone see the mistake? n - 100 p - 0.07 x - rgeom(n, p) s - sum(x) f - function(x, p)

[R] R code for the MLE of a geometric distribution

2008-03-15 Thread Kathy Maher
Does anyone know how to approach R code for the MLE of a geom. distribution? thanks! [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] fisher scoring method in R

2008-03-13 Thread Kathy Maher
hi I am having trouble figure out how to do the fisher scoring method in R using rgeom. can anyone help? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the