tdBrier: Calculate the Brier Score

View source: R/tdBrier.R

tdBrierR Documentation

Calculate the Brier Score

Description

This function reads in a vector of estimated weight and same length biomarker to calculate Brier Score by formula (Wu and Li, 2018). This function is used internally by other functions in this package.

Usage

tdBrier(W, X)

Arguments

W

a numerical vector of weight estimated by nonparametric weight adjustments (Li et al., 2015). Same length with X.

X

a numerical vector of risk score values. Same length with W.

Value

Brier Score as a numerical scalar.

Note

This function estimates brier score by using the formula from Wu and Li, 2018.


tdROC documentation built on May 29, 2024, 3:47 a.m.

Related to tdBrier in tdROC...