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
(I NEED HELP) How to manually compute generalized residuals and score for a right-censored Tobit model?Hello, Statalist fellows! I'm finishing my bachelor's thesis, in which I'm running a right-censored…
Regressing an interaction of two independent variables, of which one should get lower and one higher, on a dependent variableHi everyone! I want to perform a linear regression with two interacting independent variables but I…
Interpretation of Adjusted Predictions Contrasts (Margins command)Dear Statalist, I am new to the Margins command and would really appreciate some help with interpre…
r(198) programm error: code follows on th same line as open bracesI'm working on two loops, one for downloadig data from a website from stata and the other one for tr…
F-statistic from the joint test of the significance of a particular set of coefficientsHi, I employ panel data by using the code: xtset execid fyear Now i want to reg the following mode…
Subscribe to:
Post Comments (Atom)
0 Response to Simulating skewed variable bound by zero
Post a Comment