search for: jmin6

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

Did you mean: jmin
2002 Oct 24
3
model.matrix (via predict) (PR#2206)
...data, xlev = xlev) The problem in 1.5.1 seems to be model.matrix return inconsistently ordered interaction terms. There are abviously several work arounds. ### Start of example dfr <- expand.grid(i=0:154,j=0:154) dfr <- dfr[with(dfr,i+j<=154),] dfr$logj <- with(dfr,log(j+0.5)) dfr$jmin6 <- with(dfr, pmin(j,6)) dfr$ihalf <- with(dfr, factor(floor(i/6))) dfr$i100 <- with(dfr, ifelse(i<100,1,0)) dfr$j0 <- with(dfr, ifelse(j==0,1,0)) Ai <- runif(length(levels(dfr$ihalf))) Ai <- Ai-Ai[1] Bi <- runif(length(levels(dfr$ihalf))) Bi <- (Bi-Bi[1])/10 eta <- w...