ident_M_type {unvs.med} | R Documentation |
Identification of Mediator's type
Description
This function identifies the mediator's type according to the model
if the user does not directly specify it.
The type of mediator could be 'continuous'
, 'binary'
or 'ordinal'
.
This is an internal function, automatically called by the function FormalEstmed
.
Usage
ident_M_type (M, data)
Arguments
M |
a character variable of the mediator's name. |
data |
a dataframe used in the analysis. |
Value
This function returns a character as the mediator's type.
[Package unvs.med version 1.0.0 Index]