J. Anderson, The Gravity Model, Annual Review in Economics, vol.3, issue.1, pp.133-160, 2011.

J. Anderson and E. Van-wincoop, Gravity with Gravitas: A Solution to the Border Puzzle, The American Economic Review, vol.93, issue.1, pp.170-192, 2003.

J. Anderson and E. Van-wincoop, Trade Costs, Journal of Economic Literature, vol.42, issue.3, pp.691-751, 2004.

J. Bai, Panel data models with interactive fixed effects, Econometrica, vol.77, issue.4, pp.1229-1279, 2009.

R. Baldwin, The Euro's Trade Effects, European Central Bank Working Paper Series, issue.594, 2006.

C. F. Baum, An Introduction to Modern Econometrics using Stata, 2006.

M. Beine, F. Docquier, and C. Ozden, Journal of Development Economics, vol.95, issue.1, pp.30-41, 2011.

S. Bertoli, Networks, sorting and self-selection of Ecuadorian migrants, Annales d'Economie et de Statistique, 97/98, pp.261-288, 2010.

S. Bertoli, J. Fernández-huertas, and . Moraga, Visa Policies, Networks and the Cliff at the Border, 2012.
URL : https://hal.archives-ouvertes.fr/halshs-01099863

S. Bertoli, J. Fernández-huertas, F. Moraga, and . Ortega, Crossing the Border: Self-Selection, Earnings and Individual Migration Decisions, 2010.
URL : https://hal.archives-ouvertes.fr/halshs-00805507

S. Bertoli, J. Fernández-huertas, F. Moraga, and . Ortega, Immigration Policies and the Ecuadorian Exodus, World Bank Economic Review, vol.25, issue.1, pp.57-76, 2011.

G. J. Borjas, The Labor Demand Curve is Downward Sloping: Reexamining the Impact of Immigration on the Labor Market, Quarterly Journal of Economics, vol.118, issue.4, pp.1335-1374, 2003.

M. Bugamelli and F. Paternó, Do Workers' Remittances Reduce the Probability of Current Account Reversals?, World Development, vol.37, issue.12, pp.1821-1838, 2009.

F. Canova, Methods for Applied Macroeconomic Research, 2007.

A. Chudik, M. H. Pesaran, and E. Tosetti, Weak and strong cross-section dependence and estimation of large panels, Econometrics Journal, vol.14, issue.1, pp.45-90, 2011.

X. Clark, T. Hatton, and J. Williamson, Review of Economics and Statistics, vol.89, issue.2, pp.359-373, 1971.

J. Coakley, A. Fuertes, and R. Smith, A Principal Components Approach to Cross-Section Dependence in Panels, 2002.

R. De-hoyos and V. Sarafidis, Testing for cross-sectional dependence in panel-data models, The Stata Journal, vol.6, issue.4, pp.482-496, 2006.

G. Debreu, Review of R. D. Luce Individual Choice Behavior, American Economic Review, vol.50, issue.1, pp.186-188, 1960.

F. Docquier, B. L. Lowell, and A. Marfouk, A gendered assessment of highly skilled emigration, Population and Development Review, vol.35, issue.2, pp.297-321, 2009.

F. Docquier, C. Ozden, and G. Peri, The Wage Effects of Immigration and Emigration, 2010.

F. Docquier and H. Rapoport, Globalization, brain drain and development, Journal of Economic Literature, 2012.

J. C. Driscoll and A. C. Kraay, Consistent Covariance Matrix Estimation with Spatially Dependent Panel Data, The Review of Economics and Statistics, vol.80, issue.4, pp.549-560, 1998.

D. M. Drukker, Testing for serial correlation in linear panel-data models, The Stata Journal, vol.3, issue.2, pp.168-177, 2003.

M. Eberhardt, C. Helmers, and H. Strauss, Do Spillovers Matter When Estimating Private Returns to R&D?, Review of Economics and Statistics, 2012.

P. Edin, P. Fredriksson, and O. Aslund, Ethnic Enclaves and the Economic Success of Immigrants: Evidence from A Natural Experiment, Quarterly Journal of Economics, vol.118, issue.1, pp.329-357, 2003.

E. W. Frees, Assessing cross-sectional correlation in panel data, Journal of Econometrics, vol.69, issue.2, pp.393-414, 1995.

R. M. Friedberg, The Impact of Mass Migration on the Israeli Labor Market, Quarterly Journal of Economics, vol.116, issue.4, pp.1373-1408, 2001.

J. Grogger and G. H. Hanson, Income maximization and the selection and sorting of international migrants, Journal of Development Economics, vol.95, issue.1, pp.42-57, 2011.

G. Hanson, International Migration and the Developing World, Handbook of Development Economics, vol.5, pp.4363-4414, 2010.

G. H. Hanson and C. Mcintosh, The Great Mexican Emigration, Review of Economics and Statistics, vol.92, issue.4, pp.798-810, 2010.

G. H. Hanson and C. Mcintosh, Birth Rates and Border Crossings: Latin American Migration to the US, Canada, Spain, and the UK, The Economic Journal, vol.122, issue.561, pp.707-726, 2012.

G. H. Hanson and A. Spilimbergo, Illegal Immigration, Border Enforcement, and Relative Wages: Evidence from Apprehensions at the U.S.-Mexico Border, American Economic Review, vol.89, issue.5, pp.1337-1357, 1999.

J. Hausman and D. Mcfadden, Specification tests for the multinomial logit model, Econometrica, vol.52, issue.5, pp.1219-1240, 1984.

D. Hoechle, Robust standard errors for panel regressions with cross-sectional dependence, The Stata Journal, vol.7, issue.3, pp.281-312, 2007.

J. Hunt, Staunching Emigration from East Germany: Age and the Determinants of Migration, Journal of the European Economic Association, vol.4, issue.5, pp.1014-1037, 2006.

, International Financial Statistics, IMF, 2010.

, World Economic Outlook-Rebalancing Growth, IMF, 2010.

. Ine, Estadística de Variaciones Residenciales, 2010.

. Ine, Instituto Nacional de Estadística, 2010.

G. Kapetanios, H. Pesaran, and T. Yamagata, Panels with non-stationary multifactor error structures, Journal of Econometrics, vol.160, issue.2, pp.326-348, 2011.
DOI : 10.1016/j.jeconom.2010.10.001

URL : http://www.cesifo-group.de/DocDL/cesifo1_wp1788.pdf

J. J. Lewer and H. V. Berg, A gravity model of immigration, Economics Letters, vol.99, issue.1, pp.164-167, 2008.
DOI : 10.1016/j.econlet.2007.06.019

URL : http://digitalcommons.unl.edu/cgi/viewcontent.cgi?article=1023&context=managementfacpub

R. D. Luce, Individual Choice Behavior, 1959.

A. M. Mayda, International migration: a panel data analysis of the determinants of bilateral flows, Journal of Population Economics, vol.23, issue.4, pp.1249-1274, 2010.

D. Mcfadden, Conditional logit analysis of qualitative choice behavior, Frontiers in Econometrics, pp.105-142, 1974.

D. Mcfadden, Modeling the Choice of Residential Location, Spatial interaction theory and planning models, pp.75-96, 1978.

D. Mcfadden, Economic Choices, American Economic Review, vol.91, issue.3, pp.351-378, 2001.

D. Mckenzie, C. Theoharides, and D. Yang, Distortions in the International Migrant Labor Market: Evidence from Filipino Migration and Wage Responses to Destination Country Economic Shocks, 2012.

D. J. Mckenzie and H. Rapoport, Self-selection patterns in Mexico-U.S. migration: The role of migration networks, Review of Economics and Statistics, vol.92, issue.4, pp.811-821, 2010.

P. Mishra, Emigration and wages in source countries: Evidence from Mexico, Journal of Development Economics, vol.82, issue.1, pp.180-199, 2007.
DOI : 10.1016/j.jdeveco.2005.09.002

K. Munshi, Networks in the Modern Economy: Mexican Migrants in the U.S. Labor Market, Quarterly Journal of Economics, vol.118, issue.2, pp.549-599, 2003.

, International Migration Outloook-SOPEMI 2010. Organization for Economic Cooperation and Development, OECD, 2010.

P. M. Orrenius and M. Zavodny, Do Amnesty Programs Reduce Undocumented Immigration? Evidence from IRCA, Demography, vol.40, issue.3, pp.437-450, 2003.
DOI : 10.1353/dem.2003.0028

F. Ortega and G. Peri, The Causes and Effects of International Migrations: Evidence from OECD Countries, 1980.
DOI : 10.3386/w14833

URL : https://doi.org/10.3386/w14833

G. Ottaviano and G. Peri, Rethinking the Effects of Immigration on Wages, Journal of the European Economic Association, vol.20, issue.1, pp.152-197, 2012.

C. Ozden, C. R. Parsons, M. Schiff, and T. L. Walmsley, Where on Earth is Everybody? The Evolution of Global Bilateral Migration, The World Bank Economic Review, vol.25, issue.1, pp.12-56, 1960.

A. Papola, Some developments on the cross-nested logit model, Transportation Research Part B: Methodological, vol.38, issue.9, pp.833-851, 2004.
DOI : 10.1016/j.trb.2003.11.001

P. J. Pedersen, M. Pytlikova, and N. Smith, Selection and network effectsMigration flows into OECD countries, European Economic Review, vol.52, issue.7, pp.1160-1186, 1990.
DOI : 10.1016/j.euroecorev.2007.12.002

M. H. Pesaran, General Diagnostic Tests for Cross Section Dependence in Panels, 2004.

M. H. Pesaran, Estimation and Inference in Large Heterogeneous Panels with a Multifactor Error Structure, Econometrica, vol.74, issue.4, pp.967-1012, 2006.

M. H. Pesaran and E. Tosetti, Large panels with common factors and spatial correlation, Journal of Econometrics, vol.161, issue.2, pp.182-202, 2011.
URL : https://hal.archives-ouvertes.fr/hal-00796743

S. Silva, J. M. , and S. Tenreyro, The Review of Economics and Statistics, vol.88, issue.4, pp.641-658, 2006.

K. Schmidheiny and M. Brulhart, On the equivalence of location choice models: Conditional logit, nested logit and Poisson, Journal of Urban Economics, vol.69, issue.2, pp.214-222, 2011.

N. B. Simpson and C. Sparber, The Short-and Long-Run Determinants of Unskilled Immigration into U.S. States, 2010.

K. Train, Discrete Choice Methods with Simulation, 2003.

P. Vovsha, Application of Cross-Nested Logit Model to Mode Choice, Transportation Research Record: Journal of the Transportation Research Board, vol.1607, pp.6-15, 1997.

C. Wen and F. S. Koppelman, The generalized nested logit model, Transportation Research Part B, vol.35, issue.7, pp.627-641, 2001.

J. M. Wooldridge, Econometric Analysis of Cross Section and Panel Data, 2002.

W. Bank, Amnesty-the dummy variable takes value 1 for all countries from, 2004.

, EU-15-the dummy variable takes value 1 if the country of origin belongs to the European Union as of 1997. Thus, it is 1 for Austria

, Schengen Area-the dummy variable takes value 1 from the inclusion of a country in the Schengen Area, vol.1, 1997.

. For-hungary, . Malta, . Poland, . Latvia, . Estonia et al., , 2009.

, Eastern Enlargement-the dummy variable takes value 1 from May 2004 for Cyprus, vakia and Slovenia, 2004.

, for Romania and Bulgaria (source: www.europa.eu.int). Visa requirement for non-immigrant admission-the dummy variable takes value 1 for those countries and periods for which a visa was required to enter Spain, Romania and Bulgaria Enlargement-the dummy variable takes value 1 from, 2007.

. Norway;-liechtenstein;-croatia, country-month pairs for which the Schengen area dummy is 1; Eastern Enlargement, 2001.

;. Chile;-peru;-argentina;-bolivia-until-;-venezuela;-paraguay;-brazil;-uruguay and . Mexico, July, 2001.

C. Rica,

E. Salvador,

;. Guatemala;-honduras;-panama, ;. Nicaragua, and . Australia,

;. South-korea, ;. Brunei, ;. Israel;-japan;-malaysia;-singapore, and B. Antigua, The sources are, 2009.

, es) and bilateral agreements of Spain with Latin American countries (www.mtin.es and www.boe.es). Bilateral agreement on double nationality-the dummy takes value 1 if a bilateral agreement on double nationality with Spain exists, Schengen Area regulations