ident_M_type: Identification of Mediator's type

View source: R/ident_M_type.R

ident_M_typeR 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.


unvs.med documentation built on June 8, 2025, 10:15 a.m.