View source: R/responseScore.R
calculateScore | R Documentation |
Get the score from the first PC
calculateScore(responseDf, responseColumns, firstPrincipalComponent)
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. |
the response data frame with an added column phenoScore that shows the computed score
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.