[R] fit for truncated normal distribution

|Juergen Hedderich j@hedder|ch @end|ng |rom t-on||ne@de
Sat Mar 14 13:27:46 CET 2020


Dear R-help list members,

the R Session aborted without any 'comment'  for the following 'small 
example':

/library(fitdistrplus)
library(truncnorm)

filter <- c(4.98, 8.60, 6.37, 4.37, 8.03, 7.43, 6.83, 5.64, 5.43, 6.88,
             4.57, 7.50, 5.69, 7.88, 8.98, 6.79, 8.61, 6.70, 5.14, 7.29)

fit  <- fitdist(filter, "truncnorm", fix.arg=list(a=-Inf, b=9),
                 start=list(mean=mean(filter), sd=sd(filter)),
                 optim.method="L-BFGS-B",
                 lower=c(-0.1, -0.1), upper=c(Inf, Inf))/

R worked fine in an 'older'  R-version (environment). Can anyone help me?

Many thanks in advance.

Best regards

J. Hedderich


	[[alternative HTML version deleted]]



More information about the R-help mailing list