Description Usage Arguments Details References
View source: R/weibull_predict.R
weibull_flexpredict returns the conditional mean E(Y|X) of a model fitted via the function weibull_flexfit; where λ has been specified to be a function of covariates the required value should be specified using the ‘features’ parameter. weibull_flexpredict also allows for the correlation of estimated parameters via the Cholesky decomposition of the variance-covariance matrix.
1 | weibull_flexpredict(model, features, draws = 5)
|
model |
An object of class "mle2" produced using the function weibull_flexfit. |
features |
A numeric vector specifying the value of covriates at which the conditional mean should be evaluated; the covariates in the vector should appear in the same order as they do in the model. Where a model does not depend on covariates the argument may be left blank. |
draws |
The number of random draws from multivariate random normal representing correlated parameters. If parameter correlation is not required draws should be set to zero. |
This function uses the same parametrization of the Weibull distribution as is used in Kleiber and Kotz (2003). The probability probability density function is used is:
f(y) = (κ/λ) (y/λ)^κ-1 exp(-y/λ)^κ
The function returns:
E(Y|X) = λΓ(1+1/κ)
λ may be a function of covariates; in which case, the cannonical log link function is used.
Kleiber, Christian, and Samuel Kotz. Statistical Size Distributions In Economics And Actuarial Sciences. pp. 107-147. John Wiley & Sons, 2003. Print.
NIOLA, VINCENZO, ROSARIO OLIVIERO, and GIUSEPPE QUAREMBA. "A Method Of Moments For The Estimation Of Weibull Pdf Parameters." Proceedings of the 8th WSEAS Int. Conference on Automatic Control, Modeling and Simulation 8 (2014)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.