View source: R/discriminant_beta.R
discriminant_beta | R Documentation |
Discriminant function in the particular case of g=2 classes with an equal-covariance matrix
discriminant_beta(pi, mu, sigma)
pi |
A g-dimensional vector for the initial values of the mixing proportions. |
mu |
A |
sigma |
A |
Discriminant function in the particular case of g=2 classes with an equal-covariance matrix can be expressed
d(y_i,\beta)=\beta_0+\beta_1 y_i,
where \beta_0=\log\frac{\pi_1}{\pi_2}-\frac{1}{2}\frac{\mu_1^2-\mu_2^2}{\sigma^2}
and \beta_1=\frac{\mu_1-\mu_2}{\sigma^2}
.
beta0 |
An intercept of discriminant function |
beta |
A coefficient of discriminant function |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.