Dear all,
How can I simulate several random variables from a given density function? Assume a bivariate density function x+y defined for x >= 0 & x <= 1 & y >= 0 & y <= x.
The command may work something like this:
clear
set seed 1234
set obs 1000
f = x + y for x >= 0 & x <= 1 & y >= 0 & y <= x
gen x y = some command, denfun(f)
Any ideas would be highly appreciated.
Sincerely,
Alex
Related Posts with Simulate random variables from a given multivariate density function
How to specify family-level option for psmatch2 (my data is at the child-level)Hi everyone, first post so pardon me if I'm making a rookie mistake. I want to compare the differen…
How to deal with a difference in difference fixed effects model with a discrete treatment variable?Hi, I am trying to conduct a fixed effects difference in difference model to estimate the effect of …
multitple imputation : ROC curve sensibility and specificityDear Statalist, I am working on a clinical trial data set. I have 169 observations, a golden standa…
Synthetic Control Aggregating Data from firm levelMy question is focused on finding the effect of the Brexit vote on the profitability of UK banks. I …
Panel Data Estimator ConfusionHi Statalist, I'm currently attempting to look at the impact of different variables on democracy. I…
Subscribe to:
Post Comments (Atom)
0 Response to Simulate random variables from a given multivariate density function
Post a Comment