search for: beta31

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

Did you mean: beta1
2012 Apr 05
1
integrate function - error -integration not occurring with last few rows
...sescore_sd)) ed$drop[k]<-fall*exp(rnorm(1,0,fall_sd)) ed$up[k]<-slope*exp(rnorm(1,0,rise_sd)) ed$bshz<-beta0 } comb1<-merge(data1[, c("ID","TIME")], ed) comb1$disprog<-1 comb1$beta1<-0.035 comb1$beta21<-0.02 comb1$beta22<-0.45 comb1$beta23<-0085 comb1$beta31<-0.7 comb1$beta32<-0.05 comb1$exphz<-1 comb2<-comb1 p<-0 for(l in 1:length(comb2$ID)) { p<-p+1 comb2$disprog[p]<-comb2$base[p]*exp(-comb2$drop[p]*comb2$TIME[p]) + comb2$up[p]*comb2$TIME[p] comb2$frac[p]<-ifelse ( comb2$DOSE[p]==3, comb2...
2012 Mar 25
2
avoiding for loops
I have data that looks like this: > df1 group id 1 red A 2 red B 3 red C 4 blue D 5 blue E 6 blue F I want a list of the groups containing vectors with the ids. I am avoiding subset(), as it is only recommended for interactive use. Here's what I have so far: df1 <- data.frame(group=c("red", "red", "red", "blue",