risk_time_score: risk time scores

View source: R/risk_score_func.r

risk_time_scoreR Documentation

risk time scores

Description

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.

Usage

risk_time_score(
  gamma_sol,
  event_vec,
  weight_vec,
  v,
  covariates_train,
  n,
  gamma_squared = 0.5
)

Arguments

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

Value

$f_at_j decision function at j $risk_at_j risk score of the individualat time j


herglola/SVHM documentation built on March 24, 2022, 12:44 p.m.