mnorm | R Documentation |

Density, distribution function, quantile function and random generation for the normal mixture distribution with means equal to 'mu' and standard deviations equal to 's'.

```
dmnorm(x,p,mean,sd)
pmnorm(q,p,mean,sd)
qmnorm(prob,p,mean,sd)
rmnorm(n,p,mean,sd)
```

`x` , `q` |
vector of quantiles in dmixnorm and pmixnorm. In qmixnorm, 'x' is a vector of probabilities. |

`p` |
proportions of the mixture components. |

`prob` |
A vector of probabilities. |

`n` |
number of observations. If 'length(n) > 1', the length is taken to be the number required. |

`mean` |
vector of means |

`sd` |
vector of standard deviations |

Return the density, probability, quantile and random value, respectively.

```
p <- c(.4,.6)
mu <- c(1,4)
s <- c(2,3)
dmnorm(c(0,1,2,20),p,mu,s)
pmnorm(c(0,1,2,20),p,mu,s)
qmnorm(c(0,1,.2,.20),p,mu,s)
rmnorm(3,p,mu,s)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.