search for: dgumbel

Displaying 5 results from an estimated 5 matches for "dgumbel".

Did you mean: gumbel
2009 Aug 24
2
[] for R
I am assuming the variable out is the output parameter. However, I don't understand what is out[1+xi*xx>0]? Can someone explain this to me? Thanks in advance, Chen dGEV <- function(x, xi, mu = 0, sigma = 1, logvalue=FALSE) { xx <- (x-mu)/sigma #use the new dGumbel which passes mu and sigma: #if (xi==0) out <- dGumbel(xx,logvalue=TRUE)-log(sigma) if (xi==0) { return(out <- dGumbel(x, mu, sigma, logvalue)); } else { out <- rep(-Inf,length(x)) out[1+xi*xx>0] <- (-1/xi-1)*log(1+xi*xx[1+xi*xx>0]) - (1+xi*xx[...
2010 Nov 03
2
bugs and misfeatures in polr(MASS).... fixed!
...the optimization to fail. A work-around is to center the explanatory variables. This helps keep the zetas small. The correct approach is to use the values -Inf and Inf as the first and last cut points. The functions plogis, dnorm, etc all behave correctly when the input is one of these values. The dgumbel function does not, returning NaN for -Inf. Correct this as follows dgumbel <- function (x, loc = 0, scale = 1, log = FALSE) { x <- (x - loc)/scale d <- log(1/scale) - x - exp(-x) d[is.nan(d)] <- -Inf # -tjb if (!log) exp(d) else d } The documentation sta...
2003 Jul 28
2
defining and plotting functions thanks to equation
Hi R lovers! Are there any means to define and plot a function given the equation that specifies the function? For example I'd like to plot and work with the Gumbel Distribution density defined by Lambda(x)=exp(-exp(-x)) My question may appear very simple but I haven't got an idea yet about how to do that. I could plot something with x a vector/set of value but I don't know how to
2000 Nov 09
2
simple mixture
Dear All, I am trying to do some simple mixture analyses. For instance, I have a sample of n observations and I suspect they come from two different exponential distributions with parameters rate1 and rate2, respectively. So, I want to estimate rate1, rate2, and the proportions of both kinds of individuals in the sample. I had a look at the packages mda and mclust, but they do not seem to do this
2006 Oct 27
0
VGAM package released on CRAN
...s cumulative Ordinal Regression with Cumulative Probabilities dagum Dagum Distribution Family Function dcnormal1 Univariate Normal Distribution with Double Censoring deplot.lmscreg Density Plot for LMS Quantile Regression dgumbel The Gumbel Distribution dirichlet Fitting a Dirichlet Distribution dirmultinomial Fitting a Dirichlet-Multinomial Distribution erlang Erlang Distribution expexp Exponentiated Exponential Distribution expexp1 Ex...