Description Usage Arguments Value Author(s) See Also
View source: R/scarabee.read.data.R
scarabee.read.data
is a secondary function called at each
scaRabee run. It reads and processes the data contained in the specified
data file.scarabee.read.data
is typically not called directly by users.
1 2 | scarabee.read.data(files = NULL,
method = NULL)
|
files |
A list of input used for the analysis. The following elements are expected and none of them could be null:
|
method |
A character string, indicating the scale of the analysis. Should be 'population' or 'subject'. |
Return a list with 2 levels:
A list which content depends on the scope of the analysis. If
the analysis was run at the level of the subject, data
contains as
many levels as the number of subjects in the dataset, plus the ids
level containing the vector of identification numbers of all subjects
included in the analysis population. If the analysis was run at the level
of the population, data
contains only one level of data and
ids
is set to 1.
Each subject-specific level contains as many levels as there are treatment
levels for this subject, plus the trts
level listing all treatments
for this subject, and the id
level giving the identification number
of the subject.
Each treatment-specific levels is a list containing the following levels:
mij x 3 data.frame containing the times of observations of the dependent variables (extracted from the TIME variable), the indicators of the type of dependent variables (extracted from the CMT variable), and the actual dependent variable observations (extracted from the DV variable) for this particular treatment and this particular subject.
mij x c data.frame containing the times of observations of the dependent variables (extracted from the TIME variable) and all the covariates identified for this particular treatment and this particular subject.
bij x 4 data.frame providing the instantaneous inputs for a treatment and individual.
fij x (4+c) data.frame providing the zero-order inputs for a treatment and individual.
the particular treatment identifier.
A logical indicator defining whether or not a modified data file has been created based upon the original file. This is the case if and if only the time of first data record for one or more individuals in the original data file is not 0. The new data file is created such as the TIME variable is modified so that time of the first data record for all individuals is 0; the time of later records is modified accordingly.
Sebastien Bihorel (sb.pmlab@gmail.com)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.