Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cond_expr

cond_expr returns moments of conditional multivariate normal distribution X|Y (last variable is dependent). Only expression for X|Y. Requires installation of Maxima software.


Description

cond_expr returns moments of conditional multivariate normal distribution X|Y (last variable is dependent). Only expression for X|Y. Requires installation of Maxima software.

Usage

cond_expr(neq, sdv, mv, nconteq = neq - 1, tex = FALSE)

Arguments

neq

Number of equations/variables.

sdv

Vector of standard deviation of normally distributed variables, e.g. c(NA, NA, NA, 1) NA - unknown, any number - know.

mv

Vector of means of normally distributed variables, e.g. rep(0, 4).

nconteq

Number of continuous equations.

tex

i if TRUE TeX expressions from wxMaxima are returned.

Value

List of strings. First element is an expression of conditional mean and covariance. The second element is a TeX formula.

Examples

# this means that E[y3|y1,y2] and V[y3|y1,y2] will be returned
# all continuous w/ unknown means
## Not run: 
# To run this, one needs to install Maxima software
res <- cond_expr(neq=3)
# 3 continuous w/ unknown means and the last one with mean 0 and sd 1, d|c1c2c3
res <- cond_expr(neq=4, sdv=c(NA, NA, NA, 1), mv=c(NA, NA, NA, 0))
# 2 continuous w/ unknown means and 2 discrete with mean 0 and sd 1, d1|c1c2c3d2
res <- cond_expr(neq=4, sdv=c(NA, NA,  1, 1), mv=c(NA, NA,  0, 0), nconteq=2)

## End(Not run)

nmm

Nonlinear Multivariate Models

v0.9
GPL (>= 2)
Authors
Simona Jokubauskaite [aut, cre], Reinhard Hoessinger [aut], Friedrich Leisch [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.