the estimated parameters by the method of moments of the data assuming the underlying distribution is normal distribution
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.
norm_est(rnorm(1000),unknown="mean",sd=1)#mean unknown, but sd knownnorm_est(rnorm(1000),unknown="sd",mean=0)#sd unknown, but mean knownnorm_est(rnorm(1000),unknown="both")#both will be estimated