print.CMA0 | R Documentation |
Prints and summarizes a basic CMA0, or derived, object.
## S3 method for class 'CMA0' print( x, ..., inline = FALSE, format = c("text", "latex", "markdown"), print.params = TRUE, print.data = TRUE, exclude.params = c("event.info", "real.obs.windows"), skip.header = FALSE, cma.type = class(cma)[1] ) ## S3 method for class 'CMA1' print(...) ## S3 method for class 'CMA2' print(...) ## S3 method for class 'CMA3' print(...) ## S3 method for class 'CMA4' print(...) ## S3 method for class 'CMA5' print(...) ## S3 method for class 'CMA6' print(...) ## S3 method for class 'CMA7' print(...) ## S3 method for class 'CMA8' print(...) ## S3 method for class 'CMA9' print(...) ## S3 method for class 'CMA_per_episode' print( x, ..., inline = FALSE, format = c("text", "latex", "markdown"), print.params = TRUE, print.data = TRUE, exclude.params = c("event.info", "inner.event.info", "mapping.episodes.to.events"), skip.header = FALSE, cma.type = class(x)[1] ) ## S3 method for class 'CMA_sliding_window' print(...)
x |
A |
... |
other possible parameters |
inline |
Logical, should print inside a line of text or as a separate, extended object? |
format |
A string, the type of output: plain text ("text"; default), LaTeX ("latex") or R Markdown ("markdown"). |
print.params |
Logical, should print the parameters? |
print.data |
Logical, should print a summary of the data? |
exclude.params |
A vector of strings, the names of the object fields to exclude from printing (usually, internal information irrelevant to the end-user). |
skip.header |
Logical, should the header be printed? |
cma.type |
A string, used to override the reported object's class. |
Can produce output for the console (text), R Markdown or LaTeX, showing various types of information.
cma0 <- CMA0(data=med.events, ID.colname="PATIENT_ID", event.date.colname="DATE", event.duration.colname="DURATION", event.daily.dose.colname="PERDAY", medication.class.colname="CATEGORY", followup.window.start=0, followup.window.start.unit="days", followup.window.duration=2*365, followup.window.duration.unit="days", observation.window.start=30, observation.window.start.unit="days", observation.window.duration=365, observation.window.duration.unit="days", date.format="%m/%d/%Y", summary="Base CMA"); cma0; print(cma0, format="markdown"); cma1 <- CMA1(data=med.events, ID.colname="PATIENT_ID", event.date.colname="DATE", event.duration.colname="DURATION", followup.window.start=30, observation.window.start=30, observation.window.duration=365, date.format="%m/%d/%Y" ); cma1;
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.