Displaying 2 results from an estimated 2 matches for "train1_model".
2017 Oct 16
1
survival analysis - predict function
...n. But upon execution I don't get
any output. Not sure what I'm doing wrong:
loglogistic_na <- survreg(Surv(time_na,event_na) ~ t_na, dist="loglogistic")
summary(loglogistic_na)
extractAIC(weibull_na)
extractAIC(loglogistic_na)
# first way
l.pred <- predict(loglogistic_na, train1_model)
l.pred.q <- predict(loglogistic_na, train1_model,
type="quantile"p=pct,se=TRUE)
result <- cbind(data.frame(train1_model, l.pred), l.pred.q)
names(result) <- c("Actual", "Predicted", "Lower", "Upper")
head(result)
Thanks
[[alternative H...
2017 Oct 16
0
survival analysis - predict function
...y output. Not sure what I'm doing wrong:
>
> loglogistic_na <- survreg(Surv(time_na,event_na) ~ t_na, dist="loglogistic")
> summary(loglogistic_na)
> extractAIC(weibull_na)
> extractAIC(loglogistic_na)
>
> # first way
> l.pred <- predict(loglogistic_na, train1_model)
> l.pred.q <- predict(loglogistic_na, train1_model, type="quantile"p=pct,se=TRUE)
> result <- cbind(data.frame(train1_model, l.pred), l.pred.q)
> names(result) <- c("Actual", "Predicted", "Lower", "Upper")
> head(result)
>...