Documente Academic
Documente Profesional
Documente Cultură
Mariano MatillaGarca
2generaltypes ofsoftware
Type1:Cannedpackages
Pros:
Youdontneedtoknowtheformulas Youcandoeverydaywork Dontneedprogramming
Cons:
Sometimestheuserdoesnotknowwhatis(s)hedoing: blackbox Youcannotexperimentonnewresults Youcannotupdatenewresultsuntiliscommercially attracive
2types cont
Type2:Languageprograms(nonbasiclevel)
Youneedtolearnhowtointeractwiththeprogram, Youcandowhatyouwanttodo,attheriskofdoingit wrong Therearebunchesofcodeforhandlingeverydaytasks Note:Isuggestreadingthisreference:
McCullough,B.D.andVinod,H.D.(1999):"TheNumerical ReliabilityofEconometricSoftware", JournalofEconomic Literature,vol.27,june,pp.633665
CannedPackages
Forstatistics,andsomeeconometricstools
SPSS(WindowsandMac) SAS(Windows) Bothextremelyfantasticforpresentations
Foreconometricsandstatistics
Eviews:candoalmosteverythingineconometrics
www.eviews.com LinuxandMacusers:(www.tspintl.com)
Stata:realcompetitor
(www.stata.com)
Youpayforthem,butnotforGRETL (http://gretl.sourceforge.net/)
Allofthemhaveveryactivecommunities
FreeunderGNUlicense
Octave(windows,macandlinux users) R/(http://www.rproject.org/) Ox(http://www.doornik.com/index.html
Instalation Octave
Step 2
Steps 3and4
Step 3:Then exit GUIOctave andthen openagain GUIoctave andwrite down the next 3lines (lineby line)
pkg rebuildauto pkg rebuildnoauto adwindows pkg rebuildautojava
Step 4:Go to File>SetPaths>Add folderswith subfolders andselect firstly C\Octave\3.2.4_gcc4.4.0\share\octave\packages andthen C\Octave\3.2.4_gcc4.4.0\libexec\octave\packages
Step 5
Go to file>packages andwait until they appear
Executing Octave
New interface
First code
%myfirst code for Octaveand Matlab.Type this%in the command window x =randn(100,1); plot(x)
HowcanIlearn
This is the handbook
http://www.gnu.org/software/octave/doc/interpret er/
Download packages
Plots
hist
help hist Code load forearm subplot(1,2,1) % The hist function optionally returns the % bin centers and frequencies. [n,x] = hist(forearm); % Plot and use the argument of width=1 % to produce bars that touch. bar(x,n,1); axis square title('Frequency Histogram') % Now create a relative frequency histogram. % Divide each box by the total number of points. subplot(1,2,2) bar(x,n/140,1) title('Relative Frequency Histogram') axis square
QQplots
Compare2distributions,samples,
With different scale With different number of observations
Bivariate NormalDistribution
% Create a bivariate standard normal. % First create a grid for the domain. [x,y] = meshgrid(-3:.1:3,-3:.1:3); % Evaluate using the bivariate standard normal. z = (1/(2*pi))*exp(-0.5*(x.^2+y.^2)); % Do the plot as a surface. surf(x,y,z)