<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://gretlwiki.econ.univpm.it/index.php?action=history&amp;feed=atom&amp;title=Code_examples_for_beginners</id>
	<title>Code examples for beginners - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://gretlwiki.econ.univpm.it/index.php?action=history&amp;feed=atom&amp;title=Code_examples_for_beginners"/>
	<link rel="alternate" type="text/html" href="https://gretlwiki.econ.univpm.it/index.php?title=Code_examples_for_beginners&amp;action=history"/>
	<updated>2026-05-01T19:03:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.7</generator>
	<entry>
		<id>https://gretlwiki.econ.univpm.it/index.php?title=Code_examples_for_beginners&amp;diff=81&amp;oldid=prev</id>
		<title>TamboDuc: Basic code lines in Gretl</title>
		<link rel="alternate" type="text/html" href="https://gretlwiki.econ.univpm.it/index.php?title=Code_examples_for_beginners&amp;diff=81&amp;oldid=prev"/>
		<updated>2023-02-20T21:27:55Z</updated>

		<summary type="html">&lt;p&gt;Basic code lines in Gretl&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;If you want to run a regression. Using the sample data from Mankiw :&lt;br /&gt;
&lt;br /&gt;
{{ code | ols gdp85 0 gdp60}} &lt;br /&gt;
&lt;br /&gt;
Model 1: OLS, using observations 1-121 (n = 105)&lt;br /&gt;
Missing or incomplete observations dropped: 16&lt;br /&gt;
Dependent variable: gdp85&lt;br /&gt;
&lt;br /&gt;
             coefficient   std. error    t-ratio   p-value &lt;br /&gt;
  ---------------------------------------------------------&lt;br /&gt;
  const      3852.68       466.192        8.264    5.14e-13 ***&lt;br /&gt;
  gdp60         0.445227     0.0540057    8.244    5.69e-13 ***&lt;br /&gt;
&lt;br /&gt;
Mean dependent var   5502.638   S.D. dependent var   5531.722&lt;br /&gt;
Sum squared resid    1.92e+09   S.E. of regression   4314.432&lt;br /&gt;
R-squared            0.397537   Adjusted R-squared   0.391688&lt;br /&gt;
F(1, 103)            67.96485   P-value(F)           5.69e-13&lt;br /&gt;
Log-likelihood      −1026.800   Akaike criterion     2057.599&lt;br /&gt;
Schwarz criterion    2062.907   Hannan-Quinn         2059.750&lt;br /&gt;
&lt;br /&gt;
Warning: &amp;#039;inv&amp;#039; shadows a function of the same name&lt;br /&gt;
&lt;br /&gt;
Data from N. Gregory Mankiw, David Romer and David N. Weil,&lt;br /&gt;
&amp;quot;A contribution to the empirics of economic growth,&amp;quot;&lt;br /&gt;
Quarterly Journal of Economics, May 1992, pp. 407-437&lt;br /&gt;
&lt;br /&gt;
Cross-country data from 1960 and 1985 with average growth&lt;br /&gt;
rates of GDP and population of working age, the average&lt;br /&gt;
ratio of investment to GDP, and the percentage of the&lt;br /&gt;
working-age population in secondary school.&lt;br /&gt;
&lt;br /&gt;
Note by Allin Cottrell: &lt;br /&gt;
These data are taken from Appendix to the paper.  I believe&lt;br /&gt;
they do not correspond exactly to the data used in the&lt;br /&gt;
regressions reported in the paper, since I am unable to&lt;br /&gt;
reproduce those results exactly (the differences are minor&lt;br /&gt;
but noticeable).&lt;/div&gt;</summary>
		<author><name>TamboDuc</name></author>
	</entry>
</feed>