Displaying 3 results from an estimated 3 matches for "r_tutorial".
Did you mean:
qttutorial
2014 Mar 06
1
Survfit Error
...owing error
Error in UseMethod("survfit", formula) :
no applicable method for 'survfit' applied to an object of class "Surv"
I'm not sure what I'm doing wrong, as I followed the example from
the following paper http://anson.ucdavis.edu/~hiwang/teaching/10fall/R_tutorial%201.pdf , page 4 as a guide.
I also tried
sleepfit <- survfit(Surv(timeb, death==1), data = sleep)
and
sleepfit <- survfit(Surv(starttime, endtime, death), data = sleep)
Can anyone tell me what I might be doing wrong?
Thanks,
Lucy
[[alternative HTML version deleted]]
2006 Apr 05
2
R2WinBUGS error
...cut")
inits <- function()
{
list(k=c(-5, -4, -3, -2, -1), tau=2, theta=rnorm(7, -1, 100))
}
parameters <- c("k")
olog.out <- bugs(data, inits, parameters,
model.file="c:/Documents and Settings/Administrator/My
Documents/r_tutorial/ologit2.txt",
n.chains = 2, n.iter = 1000,
bugs.directory = "c:/Program Files/WinBUGS14/")
########################################################
# WinBUGS code
model exec;
{
# Priors on regression coefficients
theta[1] ~ dnorm( -1,1.0)...
2006 Apr 06
0
R2WinBUGS erro
...inits <- function()
{
list(k=c(-5, -4, -3, -2, -1), tau=2, theta=rnorm(7, -1, 100))
}
parameters <- c("k")
olog.out <- bugs(data, inits, parameters,
model.file="c:/Documents and Settings/Administrator/My Documents/r_tutorial/ologit2.txt",
n.chains = 2, n.iter = 1000,
bugs.directory = "c:/Program Files/WinBUGS14/")
########################################################
# WinBUGS code
model exec;
{
# Priors on regression coefficients
theta[1] ~ dnorm...