search for: dummy4

Displaying 3 results from an estimated 3 matches for "dummy4".

Did you mean: dummy
2011 Jan 03
1
Formatted output with alternating format at different rows
...Fortran, but I couldn't find any function to write files in a similar way.. Since I want different formats for different lines, write(), write.table(), write.fwf() functions didn't work for me. Thanks for your time Ray ########## ########## In Fortran ########## real dummy3(3) real dummy4(4) real dummy2(2) dummy3 = (/1.1, 2.2, 3.3/) dummy4 = (/4.4, 5.5, 6.6, 7.7/) dummy2 = (/8.8, 9.9/) OPEN(UNIT=320,FILE='output.dat',FORM='FORMATTED') write(320,501) dummy3 write(320,502) dummy4 write(320,503) dummy2 close(320) 501 format(F5.1,F6.2,F7.3) 502 format(F5.2,F6.3,F7.4,F...
2005 Aug 31
0
Imputation using Pan in R
...3,3,3,3, + 4,4,4,4, + 5,5,5,5, + 6,6,6,6, + 7,7,7,7, + 8,8,8,8, + 9,9,9,9, + 10,10,10,10) > pred <- cbind(int=rep(1,40), + dummy1=rep(c(1,0,0,0),10), + dummy2=rep(c(0,1,0,0),10), + dummy3=rep(c(0,0,1,0),10), + dummy4=rep(c(0,2,4,6),10)) > xcol <- 1:4 > zcol <- c(1,5) > a <- array (2,dim=c(2,2)) > prior <- list(a=1,Binv=1,c=2,Dinv=a) > result <- pan(y,subj,pred,xcol,zcol,prior,seed=25679,iter=5000) > result$y [1] 5 8 NaN 10 2 NaN NaN NaN 10 10 8 NaN NaN 10 4 NaN...
2009 Sep 04
1
predicting from segmented regression
Hello I'm having trouble figuring out how to use the output of "segmented()" with a new set of predictor values. Using the example of the help file: ??set.seed(12) xx<-1:100 zz<-runif(100) yy<-2+1.5*pmax(xx-35,0)-1.5*pmax(xx-70,0)+15*pmax(zz-.5,0)+rnorm(100,0,2) dati<-data.frame(x=xx,y=yy,z=zz) out.lm<-lm(y~x,data=dati) o<-## S3