Learn R Programming

JointAI (version 1.0.6)

get_resp_mat: Identify the data matrix containing a given response variable

Description

Identify the data matrix containing a given response variable

Usage

get_resp_mat(resp, Mlvls, outnames)

Value

character string; the name(s) of the data matrix/matrices of the response variable(s)

Arguments

resp

character string; name of the response variable

Mlvls

named vector where the names are all column names of all data matrices, and the values are the names of the corresponding data matrices

outnames

character vector; names of the columns in the data matrices that contain the response variable (or multiple columns in case of a survival outcome)