Learn R Programming

weibull4 (version 1.0.0)

Fits Data into 4-Parameters Weibull Distribution

Description

Performs a curve fit to 4-parameters Weibull distribution using Metropolis algorithm - Markov chain-Monte Carlo method. Special usage for fitting COVID-19 epidemic data on daily new cases and deaths. Also, builds the 4-parameters Weibull distribution curve using given parameters (shape, scale, location and area).

Copy Link

Version

Install

install.packages('weibull4')

Monthly Downloads

8

Version

1.0.0

License

Creative Commons Attribution 4.0 International License

Maintainer

Vitor Moreau

Last Published

January 25th, 2021

Functions in weibull4 (1.0.0)

weibull4.build

weibull 4-parameters distribution building function
US_COVID

US number of new COVID-19 cases
weibull4

non-linear regression data fitter to the 4-parameters Weibull distribution
Canada_COVID

Canada's COVID-19 number of daily new cases and deaths
Brazil_COVID

Brazil's COVID-19 number of daily new cases and deaths
prior

Calculates the Prior Distribution for Metropolis-MCMC
posterior

Calculates the posterior distribution for Metropolis-MCMC
likelihood

Calculates the Log Likelihood
proposalfunction

Proposal Distribution for Metropolis-MCMC
weibull4.fit

Weibull 4-parameters Metropolis-MCMC non-linear curve fitting function
run_metropolis_MCMC

Runs the Metropolis-MCMC algorithm for weibull4 package