norm_est: Method of Moments Estimation of Normal distribution

View source: R/norm.est.R

norm_estR Documentation

Method of Moments Estimation of Normal distribution

Description

function to get the method of moment estimate(s) of normal distribution

Usage

norm_est(
  data,
  unknown = c("mean", "sd", "both"),
  mean = NULL,
  sd = NULL,
  plot = TRUE,
  curvecol = "red",
  ...
)

Arguments

data

A numeric vector.

unknown

A character string specifying which parameter is (are) unknown to the user.

mean, sd

mean and standard deviation of the distribution of the normal distribution, sd must be strictly positive.

plot

logical which controls whether the histogram of the data along with the density curve of the theoretical normal distribution with the estimated parameters.

curvecol

color of the theoretical density curve

...

additional plotting parameters

Value

the estimated parameters by the method of moments of the data assuming the underlying distribution is normal distribution

Examples

norm_est(rnorm(1000),unknown="mean",sd=1)#mean unknown, but sd known
norm_est(rnorm(1000),unknown="sd",mean=0)#sd unknown, but mean known
norm_est(rnorm(1000),unknown="both")#both will be estimated

MOM documentation built on Aug. 21, 2025, 5:54 p.m.

Related to norm_est in MOM...