search for: timetype

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

Did you mean: mimetype
2011 Feb 10
1
Ggplot: free x-scales in a facet-grid
...e left part of the plot are the time values before this date (scale_x_datetime major = 1 year), and the right part of the plot are the time values after this date (scale_x_datetime major=1 day). Hereby also the R-code (simplified): ggplot(data_plot.melt,aes(timevalue,ID)) + geom_point(aes(groups=timetype,colour=timetype,shape=timetype)) + facet_grid(type ~pos,scales="free",space="free") + xlab(NULL) + ylab(NULL) The scales of y has to be free, because the number of ID's per type differ. The scales of x has to be free, so the scales differ in the left and right part of the...
2012 Dec 04
1
Winbugs from R
Hi, I am trying to covert a Winbugs code into R code. Here is the winbugs code model{# model’s likelihoodfor (i in 1:n){time[i] ~ dnorm( mu[i], tau ) # stochastic componenent# link and linear predictormu[i] <- beta0 + beta1 * cases[i] + beta2 * distance[i]}# prior distributionstau ~ dgamma( 0.01, 0.01 )beta0 ~ dnorm( 0.0, 1.0E-4)beta1 ~ dnorm( 0.0, 1.0E-4)beta2 ~ dnorm( 0.0, 1.0E-4)#