Search This Blog

Sunday, April 01, 2012

R: Fit Generalized Extreme Value Distribution


gev {evir}R Documentation

Fit Generalized Extreme Value Distribution

Description

Fits generalized extreme value distribution (GEV) to block maxima data.

Usage

gev(data, block = NA, ...)

Arguments

data data vector. Interpretation depends on value of block: if no block size is specified then data are interpreted as block maxima; if block size is set, then data are interpreted as raw data and block maxima are calculated.
block the block size. A numeric value is interpreted as the number of data values in each successive block. All the data is used, so the last block may not contain block observations. If the data has a times attribute containing (in an object of class "POSIXct", or an object that can be converted to that class; see as.POSIXct) the times/dates of each observation, then block may instead take the character values "month", "quarter", "semester" or "year".
... arguments passed to optim

Value

An object of class gev describing the fit and including parameter estimates and standard errors. Fitting is carried out using maximum likelihood.

See Also

plot.gev, gumbel, optim, as.POSIXct

Examples

# Fit GEV to monthly maxima
data(bmw)
out <- gev(bmw, "month") 
# Fit GEV to maxima of blocks of 100 observations
out <- gev(bmw, 100) 
# Fit GEV to the data in nidd.annual, the annual maximum water 
# levels of the River Nidd, using the "BFGS" optimization method
data(nidd.annual) 
out <- gev(nidd.annual, method = "BFGS", control = list(maxit = 500))   

[Package evir version 1.6 Index]

1 comment:

  1. Most prostate cancers are adenocarcinomas, cancers that arise in glandular cells of the prostate’s epithelial tissue. Prostate cancers usually progress slowly and produce no symptoms in the initial stages. Eventually, the tumor may enlarge like mine use too, the prostate gland, pressing on the urethra and causing painful or frequent urination and blood in the urine. So I was so uncomfortable with this prostate cancer diseases then I decided to do online search on how to cure cancer because I well have read a lot about herbal medicine, I came across a lot of testimony how Dr Itua cure HIV/herpes then Cancer was listed below the comment.with courage I contacted Dr Itua and he sent me his herbal medicine through Courier service then I was asked to pick it up at my post office which i quickly did. I contacted Dr Itua that i have received my herbal medicine so he instructs me on how to drink it for three weeks and that is how Dr Itua Herbal Medicine cure my prostate Cancer, The treatment takes three weeks and I was cured completely. Dr Itua is a god sent and I thank him every day of my life. Contact him now On:Email:drituaherbalcenter@gmail.com/ Whatsapp:+2348149277967.
    He listed to that he can as well cure the following diseases below.... Cerebral Amides. Lung Cancer, Alzheimer's disease,Autism,measles, tetanus, whooping cough, tuberculosis, polio and diphtheria Adrenocortical carcinoma. Alma, Uterine Cancer, Breast Cancer, Allergic diseases. Kidney cancer, Love Spell, Glaucoma., Cataracts,Macular degeneration,Cardiovascular disease,Lung disease.Enlarged prostate,Osteoporosis.Generalized dermatitis,Alzheimer's disease,Brain Tumor,
    Dementia.Colo rectal cancer, Lottery Spell, Bladder Cancer, Skin Cancer,Ovarian Cancer,Pancreatic Cancer, HIV /Aids,Brain Tumor, Herpes, Non-Hodgkin lymphoma, Inflammatory bowel disease, Copd, Diabetes, Hepatitis

    ReplyDelete

Thank you