]> Creatis software - CreaPhase.git/blob - octave_packages/econometrics-1.0.8/doc-cache
Add a useful package (from Source forge) for octave
[CreaPhase.git] / octave_packages / econometrics-1.0.8 / doc-cache
1 # Created by Octave 3.6.1, Wed Mar 28 20:33:11 2012 UTC <root@brouzouf>
2 # name: cache
3 # type: cell
4 # rows: 3
5 # columns: 33
6 # name: <cell-element>
7 # type: sq_string
8 # elements: 1
9 # length: 15
10 average_moments
11
12
13 # name: <cell-element>
14 # type: sq_string
15 # elements: 1
16 # length: 35
17  for internal use by gmm_estimate 
18
19
20
21 # name: <cell-element>
22 # type: sq_string
23 # elements: 1
24 # length: 35
25  for internal use by gmm_estimate 
26
27
28
29
30 # name: <cell-element>
31 # type: sq_string
32 # elements: 1
33 # length: 12
34 delta_method
35
36
37 # name: <cell-element>
38 # type: sq_string
39 # elements: 1
40 # length: 92
41  Computes Delta method mean and covariance of a nonlinear
42  transformation defined by "func"
43
44
45
46 # name: <cell-element>
47 # type: sq_string
48 # elements: 1
49 # length: 80
50  Computes Delta method mean and covariance of a nonlinear
51  transformation define
52
53
54
55 # name: <cell-element>
56 # type: sq_string
57 # elements: 1
58 # length: 12
59 gmm_estimate
60
61
62 # name: <cell-element>
63 # type: sq_string
64 # elements: 1
65 # length: 927
66  usage: [theta, obj_value, convergence, iters] =
67            gmm_estimate(theta, data, weight, moments, momentargs, control, nslaves)
68
69  inputs:
70       theta: column vector initial parameters
71        data: data matrix
72      weight: the GMM weight matrix
73     moments: name of function computes the moments
74               (should return nXg matrix of contributions)
75  momentargs: (cell) additional inputs needed to compute moments.
76               May be empty ("")
77     control: (optional) BFGS or SA controls (see bfgsmin and samin).
78              May be empty ("").
79     nslaves: (optional) number of slaves if executed in parallel
80              (requires MPITB)
81
82  outputs:
83  theta: GMM estimate of parameters
84  obj_value: the value of the gmm obj. function
85  convergence: return code from bfgsmin
86               (1 means success, see bfgsmin for details)
87  iters: number of BFGS iteration used
88
89  please type "gmm_example" while in octave to see an example
90
91
92
93 # name: <cell-element>
94 # type: sq_string
95 # elements: 1
96 # length: 80
97  usage: [theta, obj_value, convergence, iters] =
98            gmm_estimate(theta, 
99
100
101
102 # name: <cell-element>
103 # type: sq_string
104 # elements: 1
105 # length: 11
106 gmm_example
107
108
109 # name: <cell-element>
110 # type: sq_string
111 # elements: 1
112 # length: 126
113  GMM example file, shows initial consistent estimator,
114  estimation of efficient weight, and second round
115  efficient estimator
116
117
118
119 # name: <cell-element>
120 # type: sq_string
121 # elements: 1
122 # length: 80
123  GMM example file, shows initial consistent estimator,
124  estimation of efficient 
125
126
127
128 # name: <cell-element>
129 # type: sq_string
130 # elements: 1
131 # length: 7
132 gmm_obj
133
134
135 # name: <cell-element>
136 # type: sq_string
137 # elements: 1
138 # length: 206
139  The GMM objective function, for internal use by gmm_estimate
140  This is scaled so that it converges to a finite number.
141  To get the chi-square specification
142  test you need to multiply by n (the sample size)
143
144
145
146 # name: <cell-element>
147 # type: sq_string
148 # elements: 1
149 # length: 80
150  The GMM objective function, for internal use by gmm_estimate
151  This is scaled so
152
153
154
155 # name: <cell-element>
156 # type: sq_string
157 # elements: 1
158 # length: 11
159 gmm_results
160
161
162 # name: <cell-element>
163 # type: sq_string
164 # elements: 1
165 # length: 1145
166  usage: [theta, V, obj_value] =
167   gmm_results(theta, data, weight, moments, momentargs, names, title, unscale, control, nslaves)
168
169  inputs:
170       theta: column vector initial parameters
171        data: data matrix
172      weight: the GMM weight matrix
173     moments: name of function computes the moments
174              (should return nXg matrix of contributions)
175  momentargs: (cell) additional inputs needed to compute moments.
176              May be empty ("")
177       names: vector of parameter names
178              e.g., names = char("param1", "param2");
179       title: string, describes model estimated
180     unscale: (optional) cell that holds means and std. dev. of data
181              (see scale_data)
182     control: (optional) BFGS or SA controls (see bfgsmin and samin). May be empty ("").
183     nslaves: (optional) number of slaves if executed in parallel
184              (requires MPITB)
185
186  outputs:
187  theta: GMM estimated parameters
188  V: estimate of covariance of parameters. Assumes the weight matrix
189     is optimal (inverse of covariance of moments)
190  obj_value: the value of the GMM objective function
191
192  please type "gmm_example" while in octave to see an example
193
194
195
196 # name: <cell-element>
197 # type: sq_string
198 # elements: 1
199 # length: 80
200  usage: [theta, V, obj_value] =
201   gmm_results(theta, data, weight, moments, mome
202
203
204
205 # name: <cell-element>
206 # type: sq_string
207 # elements: 1
208 # length: 12
209 gmm_variance
210
211
212 # name: <cell-element>
213 # type: sq_string
214 # elements: 1
215 # length: 49
216  GMM variance, which assumes weights are optimal
217
218
219
220 # name: <cell-element>
221 # type: sq_string
222 # elements: 1
223 # length: 49
224  GMM variance, which assumes weights are optimal
225
226
227
228
229 # name: <cell-element>
230 # type: sq_string
231 # elements: 1
232 # length: 24
233 gmm_variance_inefficient
234
235
236 # name: <cell-element>
237 # type: sq_string
238 # elements: 1
239 # length: 53
240  GMM variance, which assumes weights are not optimal
241
242
243
244 # name: <cell-element>
245 # type: sq_string
246 # elements: 1
247 # length: 53
248  GMM variance, which assumes weights are not optimal
249
250
251
252
253 # name: <cell-element>
254 # type: sq_string
255 # elements: 1
256 # length: 14
257 kernel_density
258
259
260 # name: <cell-element>
261 # type: sq_string
262 # elements: 1
263 # length: 1178
264  kernel_density: multivariate kernel density estimator
265
266  usage:
267         dens = kernel_density(eval_points, data, bandwidth)
268
269  inputs:
270         eval_points: PxK matrix of points at which to calculate the density
271         data: NxK matrix of data points
272         bandwidth: positive scalar, the smoothing parameter. The fit
273                 is more smooth as the bandwidth increases.
274         kernel (optional): string. Name of the kernel function. Default is
275                 Gaussian kernel.
276         prewhiten bool (optional): default false. If true, rotate data
277                 using Choleski decomposition of inverse of covariance,
278                 to approximate independence after the transformation, which
279                 makes a product kernel a reasonable choice.
280         do_cv: bool (optional). default false. If true, calculate leave-1-out
281                  density for cross validation
282         computenodes: int (optional, default 0).
283                 Number of compute nodes for parallel evaluation
284         debug: bool (optional, default false). show results on compute nodes if doing
285                 a parallel run
286  outputs:
287         dens: Px1 vector: the fitted density value at each of the P evaluation points.
288
289  References:
290  Wand, M.P. and Jones, M.C. (1995), 'Kernel smoothing'.
291  http://www.xplore-stat.de/ebooks/scripts/spm/html/spmhtmlframe73.html
292
293
294
295 # name: <cell-element>
296 # type: sq_string
297 # elements: 1
298 # length: 55
299  kernel_density: multivariate kernel density estimator
300
301
302
303
304 # name: <cell-element>
305 # type: sq_string
306 # elements: 1
307 # length: 22
308 kernel_density_cvscore
309
310
311 # name: <cell-element>
312 # type: sq_string
313 # elements: 1
314 # length: 38
315  some kernels can assign zero density
316
317
318
319 # name: <cell-element>
320 # type: sq_string
321 # elements: 1
322 # length: 38
323  some kernels can assign zero density
324
325
326
327
328 # name: <cell-element>
329 # type: sq_string
330 # elements: 1
331 # length: 20
332 kernel_density_nodes
333
334
335 # name: <cell-element>
336 # type: sq_string
337 # elements: 1
338 # length: 87
339  kernel_density_nodes: for internal use by kernel_density - does calculations on nodes
340
341
342
343 # name: <cell-element>
344 # type: sq_string
345 # elements: 1
346 # length: 80
347  kernel_density_nodes: for internal use by kernel_density - does calculations on
348
349
350
351 # name: <cell-element>
352 # type: sq_string
353 # elements: 1
354 # length: 14
355 kernel_example
356
357
358 # name: <cell-element>
359 # type: sq_string
360 # elements: 1
361 # length: 161
362  kernel_example: examples of how to use kernel density and regression functions
363  requires the optim and plot packages from Octave Forge
364
365  usage: kernel_example;
366
367
368
369 # name: <cell-element>
370 # type: sq_string
371 # elements: 1
372 # length: 80
373  kernel_example: examples of how to use kernel density and regression functions
374
375
376
377
378 # name: <cell-element>
379 # type: sq_string
380 # elements: 1
381 # length: 24
382 kernel_optimal_bandwidth
383
384
385 # name: <cell-element>
386 # type: sq_string
387 # elements: 1
388 # length: 309
389  kernel_optimal_bandwidth: find optimal bandwith doing leave-one-out cross validation
390  inputs:
391         * data: data matrix
392         * depvar: column vector or empty ("").
393                 If empty, do kernel density, orherwise, kernel regression
394         * kernel (optional, string) the kernel function to use
395  output:
396         * h: the optimal bandwidth
397
398
399
400 # name: <cell-element>
401 # type: sq_string
402 # elements: 1
403 # length: 80
404  kernel_optimal_bandwidth: find optimal bandwith doing leave-one-out cross valid
405
406
407
408 # name: <cell-element>
409 # type: sq_string
410 # elements: 1
411 # length: 17
412 kernel_regression
413
414
415 # name: <cell-element>
416 # type: sq_string
417 # elements: 1
418 # length: 1100
419  kernel_regression: kernel regression estimator
420
421  usage:
422         fit = kernel_regression(eval_points, depvar, condvars, bandwidth)
423
424  inputs:
425         eval_points: PxK matrix of points at which to calculate the density
426         depvar: Nx1 vector of observations of the dependent variable
427         condvars: NxK matrix of data points
428         bandwidth (optional): positive scalar, the smoothing parameter.
429                 Default is N ^ (-1/(4+K))
430         kernel (optional): string. Name of the kernel function. Default is
431                 Gaussian kernel.
432         prewhiten bool (optional): default true. If true, rotate data
433                 using Choleski decomposition of inverse of covariance,
434                 to approximate independence after the transformation, which
435                 makes a product kernel a reasonable choice.
436         do_cv: bool (optional). default false. If true, calculate leave-1-out
437                  fit to calculate the cross validation score
438         computenodes: int (optional, default 0).
439                 Number of compute nodes for parallel evaluation
440         debug: bool (optional, default false). show results on compute nodes if doing
441                 a parallel run
442  outputs:
443         fit: Px1 vector: the fitted value at each of the P evaluation points.
444
445
446
447
448 # name: <cell-element>
449 # type: sq_string
450 # elements: 1
451 # length: 48
452  kernel_regression: kernel regression estimator
453
454
455
456
457 # name: <cell-element>
458 # type: sq_string
459 # elements: 1
460 # length: 23
461 kernel_regression_nodes
462
463
464 # name: <cell-element>
465 # type: sq_string
466 # elements: 1
467 # length: 93
468  kernel_regression_nodes: for internal use by kernel_regression - does calculations on nodes
469
470
471
472 # name: <cell-element>
473 # type: sq_string
474 # elements: 1
475 # length: 80
476  kernel_regression_nodes: for internal use by kernel_regression - does calculati
477
478
479
480 # name: <cell-element>
481 # type: sq_string
482 # elements: 1
483 # length: 12
484 mle_estimate
485
486
487 # name: <cell-element>
488 # type: sq_string
489 # elements: 1
490 # length: 758
491  usage:
492  [theta, obj_value, conv, iters] = mle_estimate(theta, data, model, modelargs, control, nslaves)
493
494  inputs:
495  theta: column vector of model parameters
496  data: data matrix
497  model: name of function that computes log-likelihood
498  modelargs: (cell) additional inputs needed by model. May be empty ("")
499  control: (optional) BFGS or SA controls (see bfgsmin and samin). May be empty ("").
500  nslaves: (optional) number of slaves if executed in parallel (requires MPITB)
501
502  outputs:
503  theta: ML estimated value of parameters
504  obj_value: the value of the log likelihood function at ML estimate
505  conv: return code from bfgsmin (1 means success, see bfgsmin for details)
506  iters: number of BFGS iteration used
507
508  please see mle_example.m for examples of how to use this
509
510
511
512 # name: <cell-element>
513 # type: sq_string
514 # elements: 1
515 # length: 80
516  usage:
517  [theta, obj_value, conv, iters] = mle_estimate(theta, data, model, mode
518
519
520
521 # name: <cell-element>
522 # type: sq_string
523 # elements: 1
524 # length: 11
525 mle_example
526
527
528 # name: <cell-element>
529 # type: sq_string
530 # elements: 1
531 # length: 42
532  Example to show how to use MLE functions
533
534
535
536 # name: <cell-element>
537 # type: sq_string
538 # elements: 1
539 # length: 42
540  Example to show how to use MLE functions
541
542
543
544
545 # name: <cell-element>
546 # type: sq_string
547 # elements: 1
548 # length: 7
549 mle_obj
550
551
552 # name: <cell-element>
553 # type: sq_string
554 # elements: 1
555 # length: 178
556  usage: [obj_value, score] = mle_obj(theta, data, model, modelargs, nslaves)
557
558  Returns the average log-likelihood for a specified model
559  This is for internal use by mle_estimate
560
561
562
563 # name: <cell-element>
564 # type: sq_string
565 # elements: 1
566 # length: 77
567  usage: [obj_value, score] = mle_obj(theta, data, model, modelargs, nslaves)
568
569
570
571
572 # name: <cell-element>
573 # type: sq_string
574 # elements: 1
575 # length: 13
576 mle_obj_nodes
577
578
579 # name: <cell-element>
580 # type: sq_string
581 # elements: 1
582 # length: 11
583  Who am I?
584
585
586
587 # name: <cell-element>
588 # type: sq_string
589 # elements: 1
590 # length: 11
591  Who am I?
592
593
594
595
596 # name: <cell-element>
597 # type: sq_string
598 # elements: 1
599 # length: 11
600 mle_results
601
602
603 # name: <cell-element>
604 # type: sq_string
605 # elements: 1
606 # length: 918
607  usage: [theta, V, obj_value, infocrit] =
608     mle_results(theta, data, model, modelargs, names, title, unscale, control)
609
610  inputs:
611  theta: column vector of model parameters
612  data: data matrix
613  model: name of function that computes log-likelihood
614  modelargs: (cell) additional inputs needed by model. May be empty ("")
615  names: vector of parameter names, e.g., use names = char("param1", "param2");
616  title: string, describes model estimated
617  unscale: (optional) cell that holds means and std. dev. of data (see scale_data)
618  control: (optional) BFGS or SA controls (see bfgsmin and samin). May be empty ("").
619  nslaves: (optional) number of slaves if executed in parallel (requires MPITB)
620
621  outputs:
622  theta: ML estimated value of parameters
623  obj_value: the value of the log likelihood function at ML estimate
624  conv: return code from bfgsmin (1 means success, see bfgsmin for details)
625  iters: number of BFGS iteration used
626
627
628
629 # name: <cell-element>
630 # type: sq_string
631 # elements: 1
632 # length: 80
633  usage: [theta, V, obj_value, infocrit] =
634     mle_results(theta, data, model, mo
635
636
637
638 # name: <cell-element>
639 # type: sq_string
640 # elements: 1
641 # length: 12
642 mle_variance
643
644
645 # name: <cell-element>
646 # type: sq_string
647 # elements: 1
648 # length: 122
649  usage: [V,scorecontribs,J_inv] =
650   mle_variance(theta, data, model, modelargs)
651
652  This is for internal use by mle_results
653
654
655
656 # name: <cell-element>
657 # type: sq_string
658 # elements: 1
659 # length: 80
660  usage: [V,scorecontribs,J_inv] =
661   mle_variance(theta, data, model, modelargs)
662
663
664
665
666 # name: <cell-element>
667 # type: sq_string
668 # elements: 1
669 # length: 12
670 nls_estimate
671
672
673 # name: <cell-element>
674 # type: sq_string
675 # elements: 1
676 # length: 780
677  usage:
678  [theta, obj_value, conv, iters] = nls_estimate(theta, data, model, modelargs, control, nslaves)
679
680  inputs:
681  theta: column vector of model parameters
682  data: data matrix
683  model: name of function that computes the vector of sums of squared errors
684  modelargs: (cell) additional inputs needed by model. May be empty ("")
685  control: (optional) BFGS or SA controls (see bfgsmin and samin). May be empty ("").
686  nslaves: (optional) number of slaves if executed in parallel (requires MPITB)
687
688  outputs:
689  theta: NLS estimated value of parameters
690  obj_value: the value of the sum of squared errors at NLS estimate
691  conv: return code from bfgsmin (1 means success, see bfgsmin for details)
692  iters: number of BFGS iteration used
693
694  please see nls_example.m for examples of how to use this
695
696
697
698 # name: <cell-element>
699 # type: sq_string
700 # elements: 1
701 # length: 80
702  usage:
703  [theta, obj_value, conv, iters] = nls_estimate(theta, data, model, mode
704
705
706
707 # name: <cell-element>
708 # type: sq_string
709 # elements: 1
710 # length: 11
711 nls_example
712
713
714 # name: <cell-element>
715 # type: sq_string
716 # elements: 1
717 # length: 56
718
719  define arguments for nls_estimate #
720
721  starting values
722
723
724
725 # name: <cell-element>
726 # type: sq_string
727 # elements: 1
728 # length: 38
729
730  define arguments for nls_estimate #
731
732
733
734
735 # name: <cell-element>
736 # type: sq_string
737 # elements: 1
738 # length: 7
739 nls_obj
740
741
742 # name: <cell-element>
743 # type: sq_string
744 # elements: 1
745 # length: 185
746  usage: [obj_value, score] = nls_obj(theta, data, model, modelargs, nslaves)
747
748  Returns the average sum of squared errors for a specified model
749  This is for internal use by nls_estimate
750
751
752
753 # name: <cell-element>
754 # type: sq_string
755 # elements: 1
756 # length: 77
757  usage: [obj_value, score] = nls_obj(theta, data, model, modelargs, nslaves)
758
759
760
761
762 # name: <cell-element>
763 # type: sq_string
764 # elements: 1
765 # length: 13
766 nls_obj_nodes
767
768
769 # name: <cell-element>
770 # type: sq_string
771 # elements: 1
772 # length: 42
773  This is for internal use by nls_estimate
774
775
776
777 # name: <cell-element>
778 # type: sq_string
779 # elements: 1
780 # length: 42
781  This is for internal use by nls_estimate
782
783
784
785
786 # name: <cell-element>
787 # type: sq_string
788 # elements: 1
789 # length: 12
790 parameterize
791
792
793 # name: <cell-element>
794 # type: sq_string
795 # elements: 1
796 # length: 316
797  usage: theta = parameterize(theta, otherargs)
798  
799  This is an empty function, provided so that
800  delta_method will work as is. Replace it with
801  the parameter transformations your models use.
802  Note: you can let "otherargs" contain the model
803  name so that this function can do parameterizations
804  for a variety of models
805
806
807
808 # name: <cell-element>
809 # type: sq_string
810 # elements: 1
811 # length: 80
812  usage: theta = parameterize(theta, otherargs)
813  
814  This is an empty function, pro
815
816
817
818 # name: <cell-element>
819 # type: sq_string
820 # elements: 1
821 # length: 7
822 poisson
823
824
825 # name: <cell-element>
826 # type: sq_string
827 # elements: 1
828 # length: 65
829  Example likelihood function (Poisson for count data) with score
830
831
832
833 # name: <cell-element>
834 # type: sq_string
835 # elements: 1
836 # length: 65
837  Example likelihood function (Poisson for count data) with score
838
839
840
841
842 # name: <cell-element>
843 # type: sq_string
844 # elements: 1
845 # length: 15
846 poisson_moments
847
848
849 # name: <cell-element>
850 # type: sq_string
851 # elements: 1
852 # length: 53
853  the form a user-written moment function should take
854
855
856
857 # name: <cell-element>
858 # type: sq_string
859 # elements: 1
860 # length: 53
861  the form a user-written moment function should take
862
863
864
865
866 # name: <cell-element>
867 # type: sq_string
868 # elements: 1
869 # length: 11
870 prettyprint
871
872
873 # name: <cell-element>
874 # type: sq_string
875 # elements: 1
876 # length: 49
877  this prints matrices with row and column labels
878
879
880
881 # name: <cell-element>
882 # type: sq_string
883 # elements: 1
884 # length: 49
885  this prints matrices with row and column labels
886
887
888
889
890 # name: <cell-element>
891 # type: sq_string
892 # elements: 1
893 # length: 13
894 prettyprint_c
895
896
897 # name: <cell-element>
898 # type: sq_string
899 # elements: 1
900 # length: 59
901  this prints matrices with column labels but no row labels
902
903
904
905 # name: <cell-element>
906 # type: sq_string
907 # elements: 1
908 # length: 59
909  this prints matrices with column labels but no row labels
910
911
912
913
914 # name: <cell-element>
915 # type: sq_string
916 # elements: 1
917 # length: 10
918 scale_data
919
920
921 # name: <cell-element>
922 # type: sq_string
923 # elements: 1
924 # length: 69
925  Standardizes and normalizes data matrix,
926  primarily for use by BFGS
927
928
929
930 # name: <cell-element>
931 # type: sq_string
932 # elements: 1
933 # length: 69
934  Standardizes and normalizes data matrix,
935  primarily for use by BFGS
936
937
938
939
940 # name: <cell-element>
941 # type: sq_string
942 # elements: 1
943 # length: 17
944 sum_moments_nodes
945
946
947 # name: <cell-element>
948 # type: sq_string
949 # elements: 1
950 # length: 34
951  for internal use by gmm_estimate
952
953
954
955 # name: <cell-element>
956 # type: sq_string
957 # elements: 1
958 # length: 34
959  for internal use by gmm_estimate
960
961
962
963
964 # name: <cell-element>
965 # type: sq_string
966 # elements: 1
967 # length: 18
968 unscale_parameters
969
970
971 # name: <cell-element>
972 # type: sq_string
973 # elements: 1
974 # length: 86
975  Unscales parameters that were estimated using scaled data
976  primarily for use by BFGS
977
978
979
980 # name: <cell-element>
981 # type: sq_string
982 # elements: 1
983 # length: 80
984  Unscales parameters that were estimated using scaled data
985  primarily for use by
986
987
988
989
990