calculateScore: Get the score from the first PC

View source: R/responseScore.R

calculateScoreR Documentation

Get the score from the first PC

Description

Get the score from the first PC

Usage

calculateScore(responseDf, responseColumns, firstPrincipalComponent)

Arguments

responseDf

the data frame that contains the time blocks and the biomarker data per time block

firstPrincipalComponent

a vector containing the first PC

responseColumn

names of the columns containing the patient block value for a biomarker (e.g. vector of string names). The score will be based only on these columns.

Value

the response data frame with an added column phenoScore that shows the computed score


smm52/timeBlocks documentation built on Nov. 27, 2022, 3:54 a.m.