How to generate the sample point of uniform distribution 6 个回复 - 2849 次查看
How to generate the sample point of uniform distribution in two dimensional case,
if I use
seed=123;
n=100;
dim=2;
x=uniform(repeat(seed,n,dim));
I only can get the matrix with two column, whic ...2010-11-17 00:21 - nkahoo - 商业数据分析
Generate left-truncated normal variate(rejection sampling) 0 个回复 - 1320 次查看
This is a SAS provided example to generate left-truncated normal variate. It uses in MCMC procedures.
Follow the link for more details,
http://support.sas.com/documentation/cdl/en/statug/63962/HTM ...2012-9-6 10:24 - bobguy - SAS专版