predictAndromeda: Generated predictions from a regression model

Description Usage Arguments Details

View source: R/Predict.R

Description

Generated predictions from a regression model

Usage

1
2
3
4
5
6
predictAndromeda(
  coefficients,
  population,
  covariateData,
  modelType = "logistic"
)

Arguments

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".

Details

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

ted9219/CoDImputationHeart documentation built on Sept. 15, 2020, 11:30 a.m.