initVarLink {lavaSearch2} | R Documentation |
Normalize var1 and var2
Description
Convert var1 and var2 from formula or covariance to character.
Usage
initVarLink(
var1,
var2,
rep.var1 = FALSE,
format = "list",
Slink = c(lava.options()$symbols[1], "~"),
Scov = lava.options()$symbols[2]
)
initVarLinks(var1, format = "list", ...)
Arguments
var1 |
[character or formula] the exogenous variable of the new link or a formula describing the link. |
var2 |
[character] the endogenous variable of the new link.
Disregarded if the argument |
rep.var1 |
[logical] should var1 be duplicated to match var2 length.
Only active if |
format |
[character] should the name of the variable be returned ( |
Slink |
[character] the symbol for regression link. |
Scov |
[character] the symbol for covariance link. |
... |
argument to be passed to |
Value
See argument format
.
Examples
initVarLink(y ~ x1)
initVarLink("y ~ x1")
initVarLink(y ~ x1 + x2)
initVarLink("y ~ x1 + x2")
initVarLink(y ~ x1 + x2, rep.var1 = TRUE)
initVarLink(y ~ x1 + x2, rep.var1 = TRUE, format = "formula")
initVarLink(y ~ x1 + x2, rep.var1 = TRUE, format = "txt.formula")
initVarLink("y", "x1", format = "formula")
initVarLink("y ~ x1:0|1")
initVarLinks(y ~ x1)
initVarLinks("y ~ x1")
initVarLinks(c("y ~ x1","y~ x2"))
initVarLinks(c(y ~ x1,y ~ x2))
initVarLinks(c("y ~ x1","y ~ x2"), format = "formula")
initVarLinks(c(y ~ x1,y ~ x2), format = "formula")
initVarLinks(c("y ~ x1","y~ x2"), format = "txt.formula")
initVarLinks(c(y ~ x1,y ~ x2), format = "txt.formula")
[Package lavaSearch2 version 2.0.3 Index]