Function that replace values of a certain constrained variables to a selected value (default to NA) for subject who did not fill certain constraints. Constraints are described in term of a list of minimum number of observation either equal or differnt from a certain value. It is an OR testing.
1 2 3 | constraintVariable(data, idVariable, constrainedVariable, constrainingVariables,
asManyObservations = 5, equalTo = NULL, differentFrom = NULL,
replaceBy = NA)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.