[R] how can I delete rows?

2006-07-19 Thread raul sanchez
Hello, I am very new in R so I am so sorry for this question.
  I have the Barro-Lee data set which contains 98 countries and I want to run 
the regressions only for the Latin America countries, so what do you recomend? 
How can I delete all the other countries or how can I select the countries of 
Lat. Am. thank you
   
  this is the list of countries
  SHCODE COUNTRY  NAME   WBCTRY   (1)   (2)
_

  1Algeria  DZA  + +
  2Angola   AGO  - -
  3BeninBEN  - +
  4Botswana BWA  + +
  5Burkina Faso HVO  - -
  6Burundi  BDI  + -
  7Cameroon CMR  + +
  8Cape verde   CPV  - -
  9Central African Rep. CAF  + +
 10Chad TCD  - -
 11Comoros  COM  - -
 12CongoCOG  - +
 13EgyptEGY  + +
 14Ethiopia ETH  + -
 15GabonGAB  + -
 16Gambia   GMB  - +
 17GhanaGHA  + +
 18Guinea   GIN  - -
 19Guinea-BissauGNB  - -
 20Cote d'IvoireCIV  + -
 21KenyaKEN  + +
 22Lesotho  LSO  - +
 23Liberia  LBR  + +
 24Madagascar   MDG  + -
 25Malawi   MWI  + +
 26Mali MLI  - +
 27Mauritania   MRT  - -
 28MauritiusMUS  + +
 29Morocco  MAR  + -
 30Mozambique   MOZ  - -
 31NigerNER  - +
 32Nigeria  NGA  + -
 33Rwanda   RWA  + +
 34Senegal  SEN  + +
 35Seychelles   SYC  - -
 36Sierra Leone SLE  + +
 37Somalia  SOM  - -
 38South africa ZAF  + +
 39SudanSDN  + +
 40SwazilandSWZ  + +
 41Tanzania TZA  + +
 42Togo TGO  + +
 43Tunisia  TUN  + +
 44Uganda   UGA  + +
 45ZaireZAR  + +
 46Zambia   ZMB  + +
 47Zimbabwe ZWE  + +
 48Bahamas, The BHS  - -
 49Barbados BRB  + +
 50Canada   CAN  + +
 51Costa Rica   CRI  + +
 52Dominica DMA  - -
 53Dominican Rep.   DOM  + +
 54El Salvador  SLV  + +
 55Grenada  GRD  - -
 56GuatemalaGTM  + +
 57HaitiHTI  + +
 58Honduras HND  + +
 59Jamaica  JAM  + +
 60Mexico   MEX  + +
 61NicaraguaNIC  + +
 62Panama   PAN  + +
 63St.Lucia LCA  - -
 64St.Vincent  Grens.  VCT  - -
 65Trinidad  TobagoTTO  + +
 66United StatesUSA  + +
 67ArgentinaARG  + +
 68Bolivia  BOL  + +
 69Brazil   BRA  + +
 70ChileCHL  + +
 71Colombia COL  + +
 72Ecuador  ECU  + +
 73Guyana   GUY  + +
 74Paraguay PRY  + +
 

[R] KhmaladzeTest

2006-07-07 Thread raul sanchez
Hello. I am a beginer in R and I can not implement the KhmaladzeTest in the 
following command. Please help me!!!
  PD: I attach thw results and the messages of the R program
   
  R : Copyright 2006, The R Foundation for Statistical Computing
Version 2.3.1 (2006-06-01)
ISBN 3-900051-07-0

R es un software libre y viene sin GARANTIA ALGUNA.
Usted puede redistribuirlo bajo ciertas circunstancias.
Escriba 'license()' o 'licence()' para detalles de distribucion.

R es un proyecto colaborativo con muchos contribuyentes.
Escriba 'contributors()' para obtener mas informacion y
'citation()' para saber como citar R o paquetes de R en publicaciones.

Escriba 'demo()' para demostraciones, 'help()' para el sistema on-line 
de ayuda,
o 'help.start()' para abrir el sistema de ayuda HTML con su navegador.
Escriba 'q()' para salir de R.

 utils:::menuInstallLocal()
package 'quantreg' successfully unpacked and MD5 sums checked
updating HTML package descriptions
 utils:::menuInstallLocal()
package 'foreign' successfully unpacked and MD5 sums checked
updating HTML package descriptions
 utils:::menuInstallLocal()
package 'Rcmdr' successfully unpacked and MD5 sums checked
updating HTML package descriptions
 local({pkg - select.list(sort(.packages(all.available = TRUE)))
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
 local({pkg - select.list(sort(.packages(all.available = TRUE)))
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
quantreg package loaded:  To cite see citation(quantreg)
 local({pkg - select.list(sort(.packages(all.available = TRUE)))
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
 local({pkg - select.list(sort(.packages(all.available = TRUE)))
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
Loading required package: tcltk
Loading Tcl/Tk interface ... done
--- Please select a CRAN mirror for use in this session ---
also installing the dependencies 'acepack', 'scatterplot3d', 'fBasics', 
'Hmisc', 'quadprog', 'oz', 'mlbench', 'randomForest', 'SparseM', 
'xtable', 'chron', 'fCalendar', 'its', 'tseries', 'DAAG', 'e1071', 'mvtnorm', 
'zoo', 'strucchange', 'sandwich', 'dynlm', 'leaps'

probando la URL 
'http://cran.au.r-project.org/bin/windows/contrib/2.3/acepack_1.3-2.2.zip'
Content 
type 'application/zip' length 55667 bytes
URL abierta
downloaded 54Kb

probando la URL 
'http://cran.au.r-project.org/bin/windows/contrib/2.3/scatterplot3d_0.3-24.zip'
Content 
type 'application/zip' length 540318 bytes
URL abierta
downloaded 527Kb

probando la URL 
'http://cran.au.r-project.org/bin/windows/contrib/2.3/fBasics_221.10065.zip'
Content 
type 'application/zip' length 3327499 bytes
URL abierta
downloaded 3249Kb

probando la URL 
'http://cran.au.r-project.org/bin/windows/contrib/2.3/Hmisc_3.0-12.zip'
Content 
type 'application/zip' length 1993038 bytes
URL abierta
downloaded 1946Kb

probando la URL 
'http://cran.au.r-project.org/bin/windows/contrib/2.3/quadprog_1.4-8.zip'
Content 
type 'application/zip' length 38626 bytes
URL abierta
downloaded 37Kb

probando la URL 
'http://cran.au.r-project.org/bin/windows/contrib/2.3/oz_1.0-13.zip'
Content 
type 'application/zip' length 39640 bytes
URL abierta
downloaded 38Kb

probando la URL 
'http://cran.au.r-project.org/bin/windows/contrib/2.3/mlbench_1.1-1.zip'
Content 
type 'application/zip' length 1324913 bytes
URL abierta
downloaded 1293Kb

probando la URL 
'http://cran.au.r-project.org/bin/windows/contrib/2.3/randomForest_4.5-16.zip'
Content 
type 'application/zip' length 209710 bytes
URL abierta
downloaded 204Kb

probando la URL 
'http://cran.au.r-project.org/bin/windows/contrib/2.3/SparseM_0.68.zip'
Content 
type 'application/zip' length 728594 bytes
URL abierta
downloaded 711Kb

probando la URL 
'http://cran.au.r-project.org/bin/windows/contrib/2.3/xtable_1.3-2.zip'
Content 
type 'application/zip' length 56703 bytes
URL abierta
downloaded 55Kb

probando la URL 
'http://cran.au.r-project.org/bin/windows/contrib/2.3/chron_2.3-4.zip'
Content 
type 'application/zip' length 101287 bytes
URL abierta
downloaded 98Kb

probando la URL 
'http://cran.au.r-project.org/bin/windows/contrib/2.3/fCalendar_221.10065.zip'
Content 
type 'application/zip' length 754551 bytes
URL abierta
downloaded 736Kb

probando la URL 
'http://cran.au.r-project.org/bin/windows/contrib/2.3/its_1.1.1.zip'
Content 
type 'application/zip' length 194287 bytes
URL abierta
downloaded 189Kb

probando la URL 
'http://cran.au.r-project.org/bin/windows/contrib/2.3/tseries_0.10-3.zip'
Content 
type 'application/zip' length 392748 bytes
URL abierta
downloaded 383Kb

probando la URL 
'http://cran.au.r-project.org/bin/windows/contrib/2.3/DAAG_0.79.zip'
Content 
type 'application/zip' length 796328 bytes
URL abierta
downloaded 777Kb

probando la URL 
'http://cran.au.r-project.org/bin/windows/contrib/2.3/e1071_1.5-13.zip'
Content 
type 'application/zip' length 627972 bytes
URL abierta

probando la URL 
'http://cran.au.r-project.org/bin/windows/contrib/2.3/mvtnorm_0.7-2.zip'
Content 
type