checkU: Check polynomial form of the u-term

Description Usage Arguments Value

View source: R/mst.R

Description

This function ensures that the unobservable term enters into the MTR in the correct manner. That is, it enters as a polynomial.

Usage

1
checkU(formula, uname)

Arguments

formula

a formula.

uname

name of the unobserved variable.

Value

If the unobservable term is entered correctly into the formula, then NULL is returned. Otherwise, the vector of incorrect terms is returned.


ivmte documentation built on Sept. 17, 2021, 5:06 p.m.