fitnormalvecMLE: MLE estimates of a Normal Distribution Fits a normal

Description Usage Arguments Value Examples

View source: R/estimation.R

Description

MLE estimates of a Normal Distribution Fits a normal

Usage

1
fitnormalvecMLE(data, logit = F)

Arguments

data

- a vector of data

logit

- if a logit transformation is needed

Value

a list with the elements: mean with the mean of the distribution and var with the variance of the distribution.

Examples

1
2
3
4
5
set.seed(1)
data1  = rnorm(100)
fitnormalvecMLE(data1)
data2 = rnorm(100, mean  = .5, sd = 0.03)
fitnormalvecMLE(data2, logit = TRUE)

balexanderstats/bayesurvey documentation built on Sept. 20, 2020, 11:40 a.m.