View source: R/monotone.pattern.R
monotone.pattern | R Documentation |
monotone.pattern(measurements, dataset, id=NULL, transform=TRUE, threshold=0.05, ...)
measurements |
The ordered sequence of the variables of the interest including the outcome. |
data |
Data. |
id |
If data variable of id. |
transform |
If it is equal to TRUE* then all records following a nonmontone are set to follow a monotone pattern. *If it is equal to FALSE* then all records following a nonmontone are remain the same. |
threshold |
Remove pattern of from the monoene missingness if the percent of specific records is below the threshold |
... |
data |
Data. |
transformnb |
Contain the position of the record in data if the record follows a nonmontone
pattern. (If |
tableC |
The number of the observed variables in integers. See the function **missing.pattern**.
(If |
tableCpercent |
The percent of the observed variables.
(If |
threshold |
The value of the threshold.
(If |
datasetredu |
The records are removed from data if there are to few records of a specific pattern
below the threshold.
(If |
tableCredu |
The number of the observed variables in integers for the reduced data. See the function **missing.pattern**. (If *transform=TRUE*). |
tableCpercentredu |
The percent of the observed variables for the reduced data.
(If |
nonmonotone |
Contain the position of the record in data if the record follows a nonmontone
pattern. (If |
Thomas Maltesen thomas.maltesen@protonmail.com
See also DatawMis
.
## Not run:
DataSetnonMonotone.extra<-
lapply(1:loop,function(iiii)
monotone.pattern(measurements=c("L0","A0","L1","A1","L2","A2","Y"),
data=DataSetnonMonotone[[iiii]],
id=NULL,
transform=TRUE,
threshold=0.05))
listMean(lapply(1:loop,function(iiii)length(DataSetnonMonotone.extra[[iiii]]$transformnb)))
926.57
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.