Skip to content
Prev 154479 / 398500 Next

Function not returning a vector?

Try

hazard <- function(x,shape,scale)
{
   return ((shape/scale) * (x/scale)^(shape - 1))
}
hazard(1:365,1,1)

--jeff
rkevinburton at charter.net wrote: