search for: 100shape

Displaying 2 results from an estimated 2 matches for "100shape".

2008 Jun 27
3
For loop
Hi, Could you please let me know to use a list in a for loop here geneset is a loop.I am trying to match the names of the list with 1st row of the output. result<- list() for(i in 1:length(output) { result[[i]] <- geneset(which(geneset %n% output[,1])) } Kindly help me out -- View this message in context: http://www.nabble.com/For-loop-tp18163665p18163665.html Sent from the R
2008 Jul 03
0
FW: For loop
...nd theta2 which I found. Now I would like to simulate those estimates 500 or 1000 times.I tried for loop but it did not work It wont do the loop the problem is that I need to evaluate n1 which is the number of units in the first part. n1 could be different each time. here is the code r<-100n<-100shape<-2theta1<-exp(1)theta2<-exp(.5)m0<- function(XX) #a function that generates the estimates{ loglik<-function(xx,alpha,theta1,theta2) -1*( -r*lgamma(alpha)-alpha*n1*log(theta1)-alpha*(r-n1)*log(theta2)+(alpha-1) *sum(log(Ti))+(alpha-1)*sum(log(Tj-tau+(theta2/theta1)*tau))-(1/...