checkU: Check polynomial form of the u-term

View source: R/mst.R

checkUR Documentation

Check polynomial form of the u-term

Description

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

Usage

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.


jkcshea/ivmte documentation built on Aug. 31, 2024, 6:44 p.m.