eq2var: make data.frame with equation

View source: R/labels2table.R

eq2varR Documentation

make data.frame with equation

Description

make data.frame with equation

Usage

eq2var(eq, labels = list())

Arguments

eq

equation

labels

A list

Examples

labels=list(X="frame",M="justify",Y="donate",W="skeptic")
eq="donate~justify+frame+skeptic+frame:skeptic"
eq2var(eq,labels=labels)
eq="Y~M+W+M:W+X+X:W"
labels=list(X="X",M="M",Y="Y")
eq2var(eq,labels=labels)
eq="wine~baby+milk+baby:milk"
labels=list(X="baby",M=c("wine","tent","sand"),Y="tile",W="milk")
eq2var(eq,labels=labels)
eq="M3~X"
eq="Y~M1+M2+X"
labels=list(X="X",M=c("M1","M2"),Y="Y")
eq2var(eq,labels=labels)

processR documentation built on Jan. 23, 2023, 5:44 p.m.