search for: dats0505

Displaying 1 result from an estimated 1 matches for "dats0505".

2018 May 05
1
error in chol.default((value + t(value))/2) : , the leading minor of order 1 is not positive definite
...xp(-g2*Time) Y <- Y + rnorm(60,0,20) } YY <-? c() for (i in 1:N) YY <- c(YY,getY(AA1[i],BB1[i],Gg1[i],Gg2[i])) TT <- rep(Time,N) RAT <- gl(N,length(Time)) dats? <- data.frame(RAT,TRT,TT,YY) Dats <- dats names(Dats)[c(3,4)] <- c("Time","Y") dput(Dats,"dats0505.dat") with(Dats,plot(Time,Y,pch=19,cex=.1,col=TRT)) ggplot(data=Dats,aes(x=Time,y=Y,group=RAT,col=TRT)) + geom_line() library(nlme) gfr.nlme <- nlme(Y ~ A*exp(-Time*g1)+B*exp(-Time*g2), data = Dats, fixed = A+g1+B+g2 ~1, random = A+g1+B+g2 ~1,groups = ~ RAT, start = c(255,115,130*1e-3,17...