I have data on survival analysis to compare two treatments. Survival time is weibull distributed. I have problem with formulating the model . Treatment is a dummy variable with two levels (1,2) and I don't know how to incorporate it to be able to compare efficacy.
Any suggestion with this issue!
Thanks
model{
for(i in 1:N){
t ~ dweib(rho, mu)
mu <-exp( beta0 + beta1*size +beta2*treatment )
}
beta0 ~ dnorm(0,0.0001)
beta1 ~ dnorm(0,0.0001)
rho ~ dgamma(1.0,0.0001)
}
Any suggestion with this issue!
Thanks
model{
for(i in 1:N){
t ~ dweib(rho, mu)
mu <-exp( beta0 + beta1*size +beta2*treatment )
}
beta0 ~ dnorm(0,0.0001)
beta1 ~ dnorm(0,0.0001)
rho ~ dgamma(1.0,0.0001)
}