determine_analyses: What analyses are to be run?

View source: R/determine_analyses.r

determine_analysesR Documentation

What analyses are to be run?

Description

For analysis of an ID in terms of PheWAS, just exposure or just outcome is straightforward. However, to either create or update everything-versus-everything we need to make sure we are not duplicating analyses across parallel processes. Strategy is to always just to exposure, because all other ids will perform the outcome analyses. However, when updating an existing graph it gets a bit more complicated - need to also make sure that both exposure and outcome analyses for new ID's are being done without duplicating analysis of old ID's

Usage

determine_analyses(id, idlist, newidlist = NULL, what = "eve")

Arguments

id

target ID being performed by this node

idlist

List of IDs in dataset

newidlist

Default = NULL. If this is updating an existing analysis then need to use idlist for OLD ids, and newidlist for NEW ids

what="eve"

Can be "phewas", "exposure", "outcome", "eve"

Value

data frame


MRCIEU/mrever documentation built on Jan. 9, 2023, 9:49 a.m.