createLrSql: Convert logistic regression model to sql code...

Description Usage Arguments Details

View source: R/ImportExport.R

Description

Convert logistic regression model to sql code...

Usage

1
2
3
4
5
6
7
8
9
createLrSql(
  models,
  modelNames,
  covariateConstructionName = "prediction",
  modelTable = "#model_table",
  analysisId = 111,
  e = environment(),
  databaseOutput = NULL
)

Arguments

models

A trianed plp model.

modelNames

A name used in the covariate function names (no spaces)

covariateConstructionName

the name used for the create covariate function

modelTable

The temporary table name storing the model details

analysisId

The covariate analysis_id

e

The environment to output the covariate setting functions to

databaseOutput

If you want to output to go inot a cohort table add the "database.schema.tablename" here

Details

This function is used to create custom covariates for a logistic regression model (currently only supports, demographics/conditions/drug/procedures/observations and measurement concepts)


hxia/plp-git-demo documentation built on March 19, 2021, 1:54 a.m.