cbpcode: CBP model fit

Description Usage Arguments Value Author(s) Examples

Description

Fit a mixture model using moments. Only one component prototype

Usage

1
cbpcode(y, x, probud = 0.5, alpha = 1, beta = 1)

Arguments

y

a data frame or tibble

x

asdasd

probud

probability of group 1

alpha

mu1

beta

effect

Value

Returns a list with the following elements:.

Author(s)

Christian Pipper pipper@sund.ku.dk

Examples

1
2
3
4
5
6
7
8
p <- 0.7  #
N <- 100
x <- rnorm(N)
x2 <- rnorm(N)
y <- rnorm(N, mean=x)
y[1:(N*p)] <- rnorm(N*p, mean=0, sd=.25)

cbpcode(y, x)

ekstroem/mommix documentation built on May 14, 2019, 9:36 p.m.