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
Chi-square-Tests: adjusted residuals vs. standardized residualsDear Statalisters, I performed a Chi-square test (see code below), which was not significant with m…
Arch, Garch Tarch model and post estimation in PANEL DATAGood morning. I'm am running a model with Arch, T arch and Garch effects over stock returns and with…
xtgraphGood morning, I use this command. I would like to ask you how can I chiange the colours of the line…
Counting and categorizing the number of adults in the household using survey dataGood day, I am interested in counting and categorizing the number of adults in the household into t…
An empirical question of multilevel models; and how to buid a graph like this one in StataDear Statalist, I am using Stata 15.1 and I am estimating a three level model (time nested in firms…
Subscribe to:
Post Comments (Atom)
0 Response to Simulate random variables from a given multivariate density function
Post a Comment