Description Usage Arguments Details Value Note Author(s) See Also Examples
Define linear constraints on intercept parameters in a lvm
-object.
1 2 |
object |
|
vars |
character vector of variable names |
value |
Vector (or list) of parameter values or labels (numeric or
character) or a formula defining the linear constraints (see also the
|
... |
Additional arguments |
The intercept
function is used to specify linear constraints on the
intercept parameters of a latent variable model. As an example we look at
the multivariate regression model
E(Y_1|X) = α_1 + β_1 X
E(Y_2|X) = α_2 + β_2 X
defined by the call
m <- lvm(c(y1,y2) ~ x)
To fix α_1=α_2 we call
intercept(m) <- c(y1,y2) ~ f(mu)
Fixed parameters can be reset by fixing them to NA
. For instance to
free the parameter restriction of Y_1 and at the same time fixing
α_2=2, we call
intercept(m, ~y1+y2) <- list(NA,2)
Calling intercept
with no additional arguments will return the
current intercept restrictions of the lvm
-object.
A lvm
-object
Variables will be added to the model if not already present.
Klaus K. Holst
covariance<-
, regression<-
,
constrain<-
, parameter<-
,
latent<-
, cancel<-
, kill<-
1 2 3 4 5 6 |
Intercept parameters:
y1 y2 y3
* 2 mu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.