Displaying 4 results from an estimated 4 matches for "predb".
Did you mean:
preds
2010 Jun 26
4
optim() not finding optimal values
..."] # isolate B0 parameter
K <- par["K"] # isolate K parameter
q <- par["q"] # isolate q parameter
r <- par["r"] # isolate r parameter
predB <- numeric(n)
predB[1] <- B0
for (i in 2:n) predB[i] <- predB[i-1]+r*predB[i-1]*(1-predB[i-1]/K)-B[i-1]
predCPE <- q*predB
sse <- sum((CPE-predCPE)^2)
if (SSE.only) sse
else list(sse=sse,predB=predB,predCPE=predCPE)
}
My call to optim() looks like this
# the data
d &l...
2008 Jun 13
1
help with colsplit (reshape)
Dear list,
I'm trying to figure out how to use the reshape package to reshape
data from a "wide" format to a "long" format. I have data like this
pid <- c(1:10)
predA <- c(-1,-2,-1,-2,-1,-2,-1,-2,-1,-2)
predB.1 <- c(0,0,0,1,1,0,0,0,1,1)
predB.2 <- c(2,2,3,3,3,2,2,3,3,3)
predC.1 <- c(10,10,10,10,10,11,11,11,11,11)
predC.2 <- c(12,12,13,13,13,12,12,13,13,13)
out.1 <- c(100:109)
out.2 <- c(200:209)
Data <- data.frame(pid, predA, predB.1, predB.2, predC.1, predC.2, out.
1, out.2)
and...
2005 Mar 30
1
[LLVMdev] Branch simplification
Hi,
I have a CFG built by LLVM with blocks that look like this:
myBlock: ; preds = %predA, %predB
%cond = phi bool [ false, %predA ], [ %otherCond, %predB ]
br bool %cond, %succA, %succB
Is there a pass or sequence of passes that will see the constant
'false' in the PHI instruction and change the target of %predA to
point directly to %succB? I tried -simplifycfg but it didn'...
2007 Jun 24
2
matlab/gauss code in R
...t; mydata <- data.frame(Time = TimePts, Observed = Obs, Individuals = colID)
>
> fmA <- lm(Observed ~ Time, mydata)
> fmB <- lm(Observed ~ poly(Time, 2), mydata)
> fmC <- lm(Observed ~ poly(Time, 2) * Individuals, mydata)
>
> mydata$PredA <- predict(fmA)
> mydata$PredB <- predict(fmB)
> mydata$PredC <- predict(fmC)
>
> xyplot(Observed + PredA + PredB + PredC ~ Time | Individuals,
> data = mydata,
> type = c("p", "l", "l", "l"),
> distribute.type = TRUE)
>
> -Deepayan
>
>...