Exports a define file for the provided dataset
IQRoutputDEFINE.Rd
Exports a define file for the provided dataset
IQRoutputDEFINE(
data,
datasetName = NULL,
datasetLocation = NULL,
datasetDescription = "Analysis dataset",
covInfoAdd = NULL,
catInfoAdd = NULL,
addColLabels = NULL,
filename = NULL
)
Arguments
- data
data.frame object
- datasetName
A character string with a name for the dataset. It should not be longer than 8 characters if you plan to send it to the FDA.
- datasetLocation
A character string with the location (path) to the dataset.
- datasetDescription
A short character string stating the purpose of this dataset
- covInfoAdd
(Handling covariates that are stored in additional columns in the dataset) List with information about additional continuous covariates. The list needs to contain 4 named elements: COLNAME, NAME, UNIT, TIME.VARYING (in this order). Each value of these elements is a vector. COLNAME defines the column names of the additional covariates, NAME the "real" name, UNIT their UNIT, and TIME.VARYING is TRUE or FALSE depending ... Example:
covInfoAdd <- list( COLNAME=c("WT0","AGE0"),NAME=c("Bodyweight at baseline","Age"), UNIT=c("kg","years"),TIME.VARYING=c(FALSE,FALSE))
- catInfoAdd
(Handling covariates that are stored additional columns in the dataset) List with information about additional categorical covariates. The list needs to contain 6 named elements: COLNAME, NAME, UNIT, VALUETXT, VALUES, TIME.VARYING (in this order). Each value of these elements is a vector. COLNAME defines the column names of the additional covariates, NAME the "real" name, and UNIT their UNIT. VALUETXT is a string defining a vector in R notation, containing the text version of the different levels. VALUES is a string defining a numeric vector in notation, containing the numeric version of the different levels (used in the corresponding covariate column), and TIME.VARYING is TRUE or FALSE depending ... Example:
catInfoAdd <- list( COLNAME=c("SEX","FOOD"),NAME=c("Gender","Food taken"), UNIT=c("-","-"),VALUETXT=c("Male,Female", "NO,YES"), VALUES=c("1,2","0,1"),TIME.VARYING=c(FALSE,FALSE))
- addColLabels
List with named elements. Names are column names and the value of an element is the label. If defining addColLabels for columns that are already handled automatically, the provided labels will overwrite the automatic ones. Example:
addColLabels <- list(IXGDF="Other label",NEWCCOL="Label for NEWCOL")
- filename
If filename is not provided, then the filename is defined automatically by "'datasetName'_define.rmd" and saved to the current work folder.
See also
Other Output:
IQRinitCompliance()
,
IQRoutputCSV()
,
IQRoutputFigure()
,
IQRoutputFile()
,
IQRoutputPDF()
,
IQRoutputPDFParallel()
,
IQRoutputPDFend()
,
IQRoutputPDFstart()
,
IQRoutputPNG()
,
IQRoutputRDS()
,
IQRoutputTable()
,
IQRoutputValueTable()
,
IQRoutputXPT()
,
createSubmissionPack()
,
getModelSpecification()
,
getProgramSpecification()
,
import_IQRdataOriginal()
,
is_enabled_complianceMode()
,
is_enabled_rdsMode()
,
packageR_IQRtools()
,
print.IQRoutputTable()
,
read_IQRoutputTable()
,
text_IQRoutputTable()
Other Submission package:
IQRoutputXPT()
,
addLabel_IQRaedataER()
,
addLabel_IQRdataGENERAL()
,
createSubmissionPack()
,
exportDEFINE_IQRaedataER()
,
exportDEFINE_IQRdataGENERAL()
,
exportDEFINEpdf_IQRdataGENERAL()
,
exportXPT_IQRaedataER()
,
getModelSpecification()
,
getProgramSpecification()