Re: [R] for loop

2010-09-21 Thread Dennis Murphy
What are you doing at iteration 520 with the objects corresponding to the i + 1 index? And there's a reason why you get one value for tmp1 and tmp2 - you replace their values every iteration. Maybe you want tmp1[i] and tmp2[i]? If this is not a recursive calculation, you could easily replace the l

[R] Package for calculating bandwidths

2010-09-21 Thread Brocker84
Hi! Is there an R-package with which I can calculate bandwidths via cross validation in a data set?? Greetz, Valentin -- View this message in context: http://r.789695.n4.nabble.com/Package-for-calculating-bandwidths-tp2548091p2548091.html Sent from the R help mailing list archive at Nabble.com

Re: [R] Error in eval(expr, envir, enclos)

2010-09-21 Thread uttara_n
Oh, I am sorry I did not include the data.frame command line since it loaded the data correctly without any errors. The following is the command line I used to load the data: data <- read.table ("C:/MUP/Internship/Distance_Statistics/Excel_data/ForModelling_Rev_2.csv" , sep= ",", header = TRUE) a

[R] for loop

2010-09-21 Thread andre bedon
Hi guys, Im new to R and am having a bit of trouble with what should be a simple loop. It sprobably something very fundamental that im doing wrong. for(i in c(1:520)) { tmp1<- ((1-samp.pct[i])^2)*(log(1-theor.pct[i])-log(1-theor.pct[i+1])) tmp2<- ((samp.pct[i])^2)*(log(theor.pct[i+1])-log(th

[R] Need help for EM algorithm ASAP !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2010-09-21 Thread snes1982
I created a EM algorithm for Generalized hyperbolic distribution. I want to estimate mutheldaplus, sigmatheldaplus, betasigmaplus in my code. After getting use these value , then my iteration have to be begin of this code. But I can not to do iteration part. Can you help me use my code and get i

<    1   2   3