read | R Documentation |
Creates an NpdeData object containing the observed data, either from disk or from a dataframe
read(object, dat, detect=TRUE, verbose=FALSE, ...)
## S4 method for signature 'NpdeData'
read(object, dat, detect = TRUE, verbose = FALSE, ...)
## S4 method for signature 'NpdeSimData'
read(object, dat, detect = FALSE, verbose = FALSE, ...)
object |
an object |
dat |
a dataframe containing the data to be analysed |
detect |
a boolean; if TRUE, automatic recognition of names will be attempted to detect necessary items for a NpdeData, these include longitudinal data structure, missing data and censoring information for a NpdeSimData, the required columns should be called idsim, xsim, ysim, representing respectively simulated id, simulated predictor and simulated response |
verbose |
a boolean; messages are printed if verbose is TRUE (defaults to FALSE) |
... |
additional arguments for compatibility with generic |
an object of class "NpdeData"
or "NpdeSimData"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.