```
#' Optimal Mixture Weights in Multiple Importance Sampling
#'
#' Workhorse functions \code{\link{penoptpersp}} and \code{\link{penoptpersp.alpha.only}} minimize estimated variances with and without control variates respectively. It can be used in adaptive mixture importance sampling, for example, function \code{\link{batch.estimation}} does a two-stage estimation, a pilot estimate of mixing \eqn{\alpha} and a following importance sampling estimation.
#'
#' @docType package
#' @import mvtnorm
#' @import Matrix
#' @importFrom stats lm median rnorm runif sd var
#' @name optismixture
NULL
```

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.