https://github.com/cran/bbmle
Raw File
Tip revision: d34a66feff17afec42ea66e0515a827863b81577 authored by Ben Bolker on 19 December 2019, 16:30:02 UTC
version 1.0.22
Tip revision: d34a66f
dnorm_n.Rd
\name{dnorm_n}
\alias{dnorm_n}
\title{
  Normal distribution with profiled-out standard deviation
}
\description{
  Returns the Normal probability densities for a distribution
  with the given mean values and the standard deviation equal
  to the root mean-squared deviation between x and mu
}
\usage{
dnorm_n(x, mean, log = FALSE)
}
\arguments{
  \item{x}{numeric vector of data}
  \item{mean}{numeric vector or mean values}
  \item{log}{logical: return the log-density?}
}
\details{
  This is a convenience function, designed for the case
  where you're trying to compute a MLE for the mean but
  don't want to bother estimating the MLE for the standard
  deviation at the same time
}
\value{
  Numeric vector of probability densities
}
\examples{
set.seed(101)
x <- rnorm(5,mean=3,sd=2)
dnorm_n(x,mean=3,log=TRUE)
}
\keyword{distribution}
back to top