![]() |
Prev | Next |
vec = mixed_object.ran_likelihood(fixed_vec, random_vec)
cppad_mixed
base class.
virtual CppAD::vector<a1_double> ran_likelihood(
const CppAD::vector<a1_double>& fixed_vec ,
const CppAD::vector<a1_double>& random_vec
)
const CppAD::vector<a1_double>& fixed_vec
It contains a value for the
fixed effects
vector.
const CppAD::vector<a1_double>& random_vec
It contains a value for the
random effects
vector.
CppAD::vector<a1_double> vec
It is a
negative log-density vector
corresponding to the random likelihood
f(theta, u)
where
@[@
f( \theta , u) = - \log [ \B{p}( y | \theta, u) \B{p} ( u | \theta ) ]
@]@
The Laplace approximation only makes sense if this function is smooth; i.e,
vec.size() == 1
vec[0]
,
that does not depend on the fixed effects @(@
\theta
@)@
or the random effects @(@
u
@)@,
does not affect the optimal estimates for the fixed and random effects.
ran_likelihood
returns an empty vector;
i.e.,
vec.size() == 0
.
This corresponds to the case where none of the data depends on the
random effects; i.e., the data vector
y
is empty.
In this case there random effects vector should also be empty.