predictor: Predict the probability of death

Description Usage Arguments Value See Also Examples

View source: R/fit_model.R

Description

This function is not actually used. It is a R replicate of the C++ function predictorC that is actually used. It computes the probability of death for each observation.

Usage

1
predictor(data, design_matrix, indices = NULL)

Arguments

data

The dataset to be used

design_matrix

The design matrix

indices

The list of indices computed by compute_indices

Value

A vector of the probability of death.

See Also

predictorC

Examples

1
2
3
4
pmat <- build_param_matrix(param_values = c(0.1, 0.2), param_str = c("w1" = "s"))
dmat <- build_design_matrix(data = SurvEles_small, param_matrix = pmat)
p <- predictor(data = SurvEles_small, design_matrix = dmat)
table(p)

courtiol/SileR documentation built on May 16, 2020, 8:10 p.m.