Hi,
I'd like to simulate a variable with a negatively skewed distribution, bound by zero on the lower end. The only data available on the structure is the median and IQR.
Is there any advice on how to do this? I have tried following this thread using rbeta but am unsure how to calculate what inputs I need (eg, if my data is median (IQR), 5 (3-13)) - or what extra information I need to be able to use this.
I have also looked at sknor (ssc install sknor) as a possible resolution. But again, unsure of how to calculate my inputs aside from an estimate of the mean and variance.
Thank you for any help.
Megan
Related Posts with Simulating skewed variable bound by zero
net reclassification index (NRI) and integrated discrimination index (IDI)*computing confidence intervalsHi All, I am having difficulties obtaining 95% CI's from the NRI and IDI command in stata. I have p…
Error in expressionHello, I am created a local variable `tif' which loops over around 45 terms (string). local tif "0…
Program rclass, "invalid name" returnsHi all, I am hoping someone can help me. I am trying to simulate data with autocorrelation. When I e…
Problem with multiple id on a panel dataHi, I'm working with bonds of many companies between 2010 and 2020 quarterly. Every bond is unique, …
Program rclass, "invalid name" returnsHi all, I am hoping someone can help me. I am trying to simulate data with autocorrelation. When I e…
Subscribe to:
Post Comments (Atom)
0 Response to Simulating skewed variable bound by zero
Post a Comment