Description Usage Arguments Details
Generated predictions from a regression model
1 2 3 4 5 6  | predictAndromeda(
  coefficients,
  population,
  covariateData,
  modelType = "logistic"
)
 | 
coefficients | 
 A names numeric vector where the names are the covariateIds, except for the first value which is expected to be the intercept.  | 
population | 
 A data frame containing the population to do the prediction for  | 
covariateData | 
 An andromeda object containing the covariateData with predefined columns (see below).  | 
modelType | 
 Current supported types are "logistic", "poisson", "cox" or "survival".  | 
These columns are expected in the outcome object:
 rowId  | (integer) | Row ID is used to link multiple covariates (x) to a single outcome (y) | 
 time  | (real) | For models that use time (e.g. Poisson or Cox regression) this contains time | 
| (e.g. number of days) | ||
These columns are expected in the covariates object:
rowId  | (integer) | Row ID is used to link multiple covariates (x) to a single outcome (y) | 
 covariateId  | (integer) | A numeric identifier of a covariate | 
covariateValue  | (real) | The value of the specified covariate | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.