The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
The goal of kernhaz is to estimate the unconditional and the conditional hazard function for right-censored data. The package includes two methods of the bandwidth selection - crossvalidation and maximum likelihood method.
You can install the released version of kernhaz from CRAN with:
install.packages("kernhaz")
The unconditional hazard function, the bandwidth is selected using the crossvalidation method:
library(survival)
<-khazard(times = lung$time,delta = lung$status-1)
fit1plot(fit1)
The unconditional hazard function, four bandwidths are considered:
library(survival)
<-khazard(times = lung$time,delta = lung$status-1,h=c(100,150,200,250), value="both")
fit2plot(fit2,h=200)
The conditional hazard function, bandwidths are selected using the crossvalidation method:
library(survival)
<-khazardcond(times = lung$time,delta = lung$status-1,covariate = lung$age)
fit3plot(fit3)
The conditional hazard function, bandwidths are user’s choice:
library(survival)
<-khazardcond(times = lung$time,delta = lung$status-1,covariate = lung$age,h=c(200,20))
fit4plot(fit4)
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.