search for: outtre

Displaying 2 results from an estimated 2 matches for "outtre".

Did you mean: outthe
2005 Aug 31
2
loop
I was wondering why this loop doesn't work! for (i in 1:k) fnTr[i] <- function (p) 0.5* sum ( n*log(2*pi) - log(sd(i)^2) +(logitp(i)-p)^2/sd(i)^2 ) outTr[i]<- nlm (fnTr[i],p=c(10),hessian=TRUE) minimumTr[i] <- outTr[i]$minimum valueTr[i] <- outTr[i]$estimate list (minimumTr[i],valueTr[i]) Has anyone can help me? Thank you very much Hathaikan
2005 Aug 02
1
Loop problem
Dear everyone I am a new user,would like to combine these code together by using a loop,each function has three value as Tr = 1 - 3,how can i combine together? logitTr1 <-logit[logit[,"Study"]&logit[,"Tr"]==1,] (number of row in each group (1-3) is difference but equal in colume) fnTr1 <- function (p) sum(