-
大小: 210KB文件類型: .zip金幣: 2下載: 0 次發布日期: 2021-05-21
- 語言: Matlab
- 標簽: matlabcode??
資源簡介
面板空間計量的代碼,值得深入學習

代碼片段和文件信息
function?cdf?=?beta_cdf(x?a?b)
%?PURPOSE:?cdf?of?the?beta?distribution
%--------------------------------------------------------------
%?USAGE:?cdf?=?beta_cdf(xab)
%?where:???x?=?prob[beta(ab)?<=?x]?x?=?vector
%??????????a?=?beta?distribution?parameter?a?=?scalar?
%??????????b?=?beta?distribution?parameter??b?=?scalar?
%?NOTE:?mean?[beta(ab)]?variance?=?ab/((a+b)*(a+b)*(a+b+1))
%--------------------------------------------------------------
%?RETURNS:?cdf?at?each?element?of?x?of?the?beta?distribution
%--------------------------------------------------------------
%?SEE?ALSO:?beta_d?beta_pdf?beta_inv?beta_rnd
%--------------------------------------------------------------
??
%?written?by:??Anders?Holtsberg?18-11-93
%??????????????Copyright?(c)?Anders?Holtsberg
%?documentation?modified?by?LeSage?to
%?match?the?format?of?the?econometrics?toolbox
if?any(any((a<=0)|(b<=0)))
???error(‘Parameter?a?or?b?is?nonpositive‘);
end
Ii?=?find(x>0&x<1);
Il?=?find(x<=0);
Iu?=?find(x>=1);
cdf?=?0*(x+a+b);?%?Stupid?allocation?trick
cdf(Il)?=?0*Il;
cdf(Iu)?=?0*Iu?+?1;
if?length(x)?>?0?
???cdf(Ii)?=?betainc(x(Ii)ab);
end
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????1164??2008-05-07?17:13??beta_cdf.m
?????文件????????1361??2006-07-13?21:17??beta_prior.m
?????文件????????1115??2007-07-16?21:18??beta_rnd.m
?????文件?????????972??2005-07-01?20:49??chis_prb.m
?????文件??????217088??2012-05-25?21:51??cigarette.xls
?????文件???????25600??2012-05-25?21:53??cigar_states.xls
?????文件???????13098??2016-11-04?16:39??Course2016cigarette.m
?????文件???????33615??2012-06-25?18:41??Data_cigarette_demand.mat
?????文件????????1122??2005-07-05?20:04??demean.m
?????文件????????1581??2013-06-18?22:59??demeanF.m
?????文件????????3636??2010-10-15?19:35??direct_indirect_effects_estimates.m
?????文件?????????563??2012-09-12?15:59??f2_sacpanel.m
?????文件????????1832??2010-10-13?23:02??f2_sarpanel.m
?????文件????????1881??2010-10-13?23:07??f2_sempanel.m
?????文件?????????494??2012-05-23?23:31??f_sacpanel.m
?????文件????????1915??2010-10-13?23:01??f_sarpanel.m
?????文件????????1763??2010-10-13?23:06??f_sempanel.m
?????文件????????1230??2006-09-07?18:13??invpd.m
?????文件????????1555??2006-04-28?19:09??lndetexact.m
?????文件????????1603??2007-04-05?16:29??lndetfull.m
?????文件????????2297??2010-12-10?19:17??lndetint.m
?????文件????????2763??2006-04-25?21:10??lndetmc.m
?????文件???????13455??2013-11-20?23:41??log_marginal_panelprob.m
?????文件???????17188??2013-06-25?05:50??log_marginal_panelvec.m
?????文件????????1107??2007-07-16?22:20??matdiv.m
?????文件????????1106??2001-03-28?06:59??matsub.m
?????文件????????9800??2009-06-30?15:53??mprint.m
?????文件????????1136??2001-11-12?15:30??normw.m
?????文件????????1150??2001-11-12?17:39??norm_pdf.m
?????文件????????1018??2001-03-29?18:35??norm_prb.m
?????文件?????????767??2001-11-30?20:09??norm_rnd.m
............此處省略18個文件信息
評論
共有 條評論