search for: learnsamp

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

Did you mean: learnham
2008 Jan 04
2
R2WinBUGS sending variables as factors
...prior on regression coefficients beta1 ~ dnorm(0,1.0E-6) alpha2 ~ dnorm(0,1.0E-6) alpha1 ~ dnorm(0, 1.0E-6) delta0 ~ dnorm(0, 1.0E-6) gamma0 ~ dnorm(0, 1.0E-6) } ##R Code library(R2WinBUGS) library(Rlab) #sampling functions #get a subset of the data to use in the modelling process LearnSamp <- function (dBUGS) # data frame of the variables of interest { rnames<- row.names(dBUGS) sampRows <- sample(rnames,900) learnSamp <- subset(dBUGS,rnames%in%sampRows) } #maybe not needed index.inits <...