View source: R/risk_score_func.r
risk_time_score | R Documentation |
calculates the risk scores for one individual with the help of the calculated optimal solution to the quadratic programming problem of time dependent SVHM at time j.
risk_time_score( gamma_sol, event_vec, weight_vec, v, covariates_train, n, gamma_squared = 0.5 )
gamma_sol |
optimal solution of the SVHM |
event_vec |
vector containing information of the training if a subject experiences an event happens. |
weight_vec |
vector containing weigths |
v |
covariates of the individual for which the risk is to be calculated |
covariates_train |
dataset of covariates of the subjects in the training dataset |
n |
number of individuals in the training dataset |
gamma_squared |
width of gaussian kernel |
$f_at_j
decision function at j
$risk_at_j
risk score of the individualat time j
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.