Fitted mixed model

Share:

Description

Fitted mixed model

Usage

1
fitmixst(y, g, rel.error = 1e-3, itermax=1000, method = "kmeans", para = NULL, verbose = F, mcmc = F, useR = F, ...)

Arguments

y

a multidimensional input vector.

g

the number of groups.

rel.error

the desired relative error. (default 1e-3)

itermax

the maximum of iterations. (default 1000)

method

of finding initial values. (default "kmeans")

para

the initial input parameters. Note: if you choose input parameters the kmeans method is disabled. para a list of the input parameters. para = list (pro, mu, Sigma, delta, nu).

verbose

debug mode.

mcmc

calculates moments moments with mcmc in R

useR

use algorithm programmed in R (default is C++ Algorithm).

R2

use alternative R code.

...

other paramters.

Value

an S4 object of the class fitmixout.

Examples

1
2
3
4
pro = 1; mu=1; Sigma=3; delta=2; nu=10;
para = list(pro=pro,mu=mu,Sigma=Sigma,delta=delta,nu=nu)
y <- rmixst(100,para)
out <- fitmixst(y,g=1,method="kmeans")