[R] How to improve accuracy of output?

2022-05-24 Thread maithili_shiva--- via R-help
Dear Forum In my code, I am trying to compute Value at risk. I have an issue as mentioned below: I have defined  options(digits = 14) But my output is something like >  df$price [1] 98.7185273         103.10265923  However, if use Excel, I get values as 98.718527356108 103.1026592370

Re: [R] Multiplying each row of data.frame by a row in another data.frame

2022-04-10 Thread maithili_shiva--- via R-help
: [R] Multiplying each row of data.frame by a row in another data.frame Does this produce the desired results? Also, even if this produces your desired results, I am not sure it is the "best" way to do this. There might be better ways. data.frame( t ( t(val_df) * (weights$value

[R] Parameter Estimation - "3 Paramter Gamma distribution"

2009-03-22 Thread maithili_shiva
Der r helpers, I have a following set of data. Though some other software, I know it follows 3 parameter Gamma distrinution. I need to write a R code for estimating the parameters of 3 Parameter Gamma distribution. c(0,0,18561.9,0,0,0,34400,0,0,0,0,2190,0,0,0,0,6,0,0,0,   19583,0,0,0,109