zhangtao 发表于 2012-11-1 15:27
请问epoh老师,
请问在gauss编程中,我想调用MSVARlib-v2.0中的库函数(.lib)和source函数(.src),
请 ...
抱歉!zhangtao兄,最近较忙,晚回了.
刚抽空看了下
MSVARlib-v2.0并没有你说的库函数(.lib)和source函数(.src),
作者只用.prg,简单明了
要用.prg只要
#include XXX.prg;
要用.src只要
#include XXX.src;
范例:
C:\gauss\MSVAR\MSlib\Examples\Model1.prg
#include C:\Gauss\MSVAR\MSLIB\MSVAR_Call.prg;
.......
.......
C:\gauss\MSVAR\MSlib\MSVAR_Call.prg; 再呼叫底下函数
/*==========================================================================================*/
/* MSVAR_Call : calls different subroutines need to run the main program */
/*==========================================================================================*/
/*==============Loading, setting and statistics files================*/
#include C:\Gauss\MSVAR\MSlib\MSVAR_load.prg;
#include C:\Gauss\MSVAR\MSlib\MSVAR_Setdatation.prg
#include C:\Gauss\MSVAR\MSlib\MSVAR_Setsample.prg;
#include C:\Gauss\MSVAR\MSlib\MSVAR_moment.prg;
/*============Intialisation and Transformation-constraint files ================*/
#include C:\Gauss\MSVAR\MSlib\MSVAR_Initsort.prg;
#include C:\Gauss\MSVAR\MSlib\MSVAR_Init.prg;
#include C:\Gauss\MSVAR\MSlib\MSVAR_VecMat.prg;
/*============Filters and smoothers files ================*/
#include C:\Gauss\MSVAR\MSlib\MSVAR_FiltHmm.prg;
#include C:\Gauss\MSVAR\MSlib\MSVAR_SmoHmm.prg;
/*============Maximum likelihood files================*/
#include C:\Gauss\MSVAR\MSlib\MSVAR_MaxHmm.prg;
#include C:\Gauss\MSVAR\MSlib\MSVAR_stderr.prg;
/* ============ Export files ==========================*/
#include C:\Gauss\MSVAR\MSlib\MSVAR_Output.prg;
/****************/
gauss 和R一样,可以调用C,Fortran,..等函数,所以会有Dynamic Link Library
zhangtao兄有兴趣可以参考底下网页:
A GAUSS/DLL Implementation of Alan Genz’s Fortran Packages
for Computing Multivariate t CDF
http://www.thierry-roncalli.com/download/gauss-mvt.pdf
下载gauss-mvt.zip参考