---------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  C:\Users\jwolfers\Documents\Justin@Wharton\Trust in Public Institutions\AE
> R Archive\Log files.txt
  log type:  text
 opened on:   6 Apr 2011, 10:45:48

. 
. * Compile state unemployment rates
. cd "State economic conditions"
C:\Users\jwolfers\Documents\Justin@Wharton\Trust in Public Institutions\AER Archive\Sta
> te economic conditions

. do "State economic conditions.do"

. insheet using  "Annual unemployment rate by state (1976-2010).csv", clear
(457 vars, 53 obs)

. drop annual*

. drop if st==""
(2 observations deleted)

. for var jan* feb* mar* apr* may* jun* jul* aug* sep* oct* nov* dec*: destring X, igno
> re("(P)" " ") replace force

->  destring jan1976, ignore("(P)" `" "' ) replace force
jan1976 already numeric; no replace

->  destring jan1977, ignore("(P)" `" "' ) replace force
jan1977 already numeric; no replace

->  destring jan1978, ignore("(P)" `" "' ) replace force
jan1978 already numeric; no replace

->  destring jan1979, ignore("(P)" `" "' ) replace force
jan1979 already numeric; no replace

->  destring jan1980, ignore("(P)" `" "' ) replace force
jan1980 already numeric; no replace

->  destring jan1981, ignore("(P)" `" "' ) replace force
jan1981 already numeric; no replace

->  destring jan1982, ignore("(P)" `" "' ) replace force
jan1982 already numeric; no replace

->  destring jan1983, ignore("(P)" `" "' ) replace force
jan1983 already numeric; no replace

->  destring jan1984, ignore("(P)" `" "' ) replace force
jan1984 already numeric; no replace

->  destring jan1985, ignore("(P)" `" "' ) replace force
jan1985 already numeric; no replace

->  destring jan1986, ignore("(P)" `" "' ) replace force
jan1986 already numeric; no replace

->  destring jan1987, ignore("(P)" `" "' ) replace force
jan1987 already numeric; no replace

->  destring jan1988, ignore("(P)" `" "' ) replace force
jan1988 already numeric; no replace

->  destring jan1989, ignore("(P)" `" "' ) replace force
jan1989 already numeric; no replace

->  destring jan1990, ignore("(P)" `" "' ) replace force
jan1990 already numeric; no replace

->  destring jan1991, ignore("(P)" `" "' ) replace force
jan1991 already numeric; no replace

->  destring jan1992, ignore("(P)" `" "' ) replace force
jan1992 already numeric; no replace

->  destring jan1993, ignore("(P)" `" "' ) replace force
jan1993 already numeric; no replace

->  destring jan1994, ignore("(P)" `" "' ) replace force
jan1994 already numeric; no replace

->  destring jan1995, ignore("(P)" `" "' ) replace force
jan1995 already numeric; no replace

->  destring jan1996, ignore("(P)" `" "' ) replace force
jan1996 already numeric; no replace

->  destring jan1997, ignore("(P)" `" "' ) replace force
jan1997 already numeric; no replace

->  destring jan1998, ignore("(P)" `" "' ) replace force
jan1998 already numeric; no replace

->  destring jan1999, ignore("(P)" `" "' ) replace force
jan1999 already numeric; no replace

->  destring jan2000, ignore("(P)" `" "' ) replace force
jan2000 already numeric; no replace

->  destring jan2001, ignore("(P)" `" "' ) replace force
jan2001 already numeric; no replace

->  destring jan2002, ignore("(P)" `" "' ) replace force
jan2002 already numeric; no replace

->  destring jan2003, ignore("(P)" `" "' ) replace force
jan2003 already numeric; no replace

->  destring jan2004, ignore("(P)" `" "' ) replace force
jan2004 already numeric; no replace

->  destring jan2005, ignore("(P)" `" "' ) replace force
jan2005 already numeric; no replace

->  destring jan2006, ignore("(P)" `" "' ) replace force
jan2006 already numeric; no replace

->  destring jan2007, ignore("(P)" `" "' ) replace force
jan2007 already numeric; no replace

->  destring jan2008, ignore("(P)" `" "' ) replace force
jan2008 already numeric; no replace

->  destring jan2009, ignore("(P)" `" "' ) replace force
jan2009 already numeric; no replace

->  destring jan2010, ignore("(P)" `" "' ) replace force
jan2010 already numeric; no replace

->  destring feb1976, ignore("(P)" `" "' ) replace force
feb1976 already numeric; no replace

->  destring feb1977, ignore("(P)" `" "' ) replace force
feb1977 already numeric; no replace

->  destring feb1978, ignore("(P)" `" "' ) replace force
feb1978 already numeric; no replace

->  destring feb1979, ignore("(P)" `" "' ) replace force
feb1979 already numeric; no replace

->  destring feb1980, ignore("(P)" `" "' ) replace force
feb1980 already numeric; no replace

->  destring feb1981, ignore("(P)" `" "' ) replace force
feb1981 already numeric; no replace

->  destring feb1982, ignore("(P)" `" "' ) replace force
feb1982 already numeric; no replace

->  destring feb1983, ignore("(P)" `" "' ) replace force
feb1983 already numeric; no replace

->  destring feb1984, ignore("(P)" `" "' ) replace force
feb1984 already numeric; no replace

->  destring feb1985, ignore("(P)" `" "' ) replace force
feb1985 already numeric; no replace

->  destring feb1986, ignore("(P)" `" "' ) replace force
feb1986 already numeric; no replace

->  destring feb1987, ignore("(P)" `" "' ) replace force
feb1987 already numeric; no replace

->  destring feb1988, ignore("(P)" `" "' ) replace force
feb1988 already numeric; no replace

->  destring feb1989, ignore("(P)" `" "' ) replace force
feb1989 already numeric; no replace

->  destring feb1990, ignore("(P)" `" "' ) replace force
feb1990 already numeric; no replace

->  destring feb1991, ignore("(P)" `" "' ) replace force
feb1991 already numeric; no replace

->  destring feb1992, ignore("(P)" `" "' ) replace force
feb1992 already numeric; no replace

->  destring feb1993, ignore("(P)" `" "' ) replace force
feb1993 already numeric; no replace

->  destring feb1994, ignore("(P)" `" "' ) replace force
feb1994 already numeric; no replace

->  destring feb1995, ignore("(P)" `" "' ) replace force
feb1995 already numeric; no replace

->  destring feb1996, ignore("(P)" `" "' ) replace force
feb1996 already numeric; no replace

->  destring feb1997, ignore("(P)" `" "' ) replace force
feb1997 already numeric; no replace

->  destring feb1998, ignore("(P)" `" "' ) replace force
feb1998 already numeric; no replace

->  destring feb1999, ignore("(P)" `" "' ) replace force
feb1999 already numeric; no replace

->  destring feb2000, ignore("(P)" `" "' ) replace force
feb2000 already numeric; no replace

->  destring feb2001, ignore("(P)" `" "' ) replace force
feb2001 already numeric; no replace

->  destring feb2002, ignore("(P)" `" "' ) replace force
feb2002 already numeric; no replace

->  destring feb2003, ignore("(P)" `" "' ) replace force
feb2003 already numeric; no replace

->  destring feb2004, ignore("(P)" `" "' ) replace force
feb2004 already numeric; no replace

->  destring feb2005, ignore("(P)" `" "' ) replace force
feb2005 already numeric; no replace

->  destring feb2006, ignore("(P)" `" "' ) replace force
feb2006 already numeric; no replace

->  destring feb2007, ignore("(P)" `" "' ) replace force
feb2007 already numeric; no replace

->  destring feb2008, ignore("(P)" `" "' ) replace force
feb2008 already numeric; no replace

->  destring feb2009, ignore("(P)" `" "' ) replace force
feb2009 already numeric; no replace

->  destring feb2010, ignore("(P)" `" "' ) replace force
feb2010 already numeric; no replace

->  destring mar1976, ignore("(P)" `" "' ) replace force
mar1976 already numeric; no replace

->  destring mar1977, ignore("(P)" `" "' ) replace force
mar1977 already numeric; no replace

->  destring mar1978, ignore("(P)" `" "' ) replace force
mar1978 already numeric; no replace

->  destring mar1979, ignore("(P)" `" "' ) replace force
mar1979 already numeric; no replace

->  destring mar1980, ignore("(P)" `" "' ) replace force
mar1980 already numeric; no replace

->  destring mar1981, ignore("(P)" `" "' ) replace force
mar1981 already numeric; no replace

->  destring mar1982, ignore("(P)" `" "' ) replace force
mar1982 already numeric; no replace

->  destring mar1983, ignore("(P)" `" "' ) replace force
mar1983 already numeric; no replace

->  destring mar1984, ignore("(P)" `" "' ) replace force
mar1984 already numeric; no replace

->  destring mar1985, ignore("(P)" `" "' ) replace force
mar1985 already numeric; no replace

->  destring mar1986, ignore("(P)" `" "' ) replace force
mar1986 already numeric; no replace

->  destring mar1987, ignore("(P)" `" "' ) replace force
mar1987 already numeric; no replace

->  destring mar1988, ignore("(P)" `" "' ) replace force
mar1988 already numeric; no replace

->  destring mar1989, ignore("(P)" `" "' ) replace force
mar1989 already numeric; no replace

->  destring mar1990, ignore("(P)" `" "' ) replace force
mar1990 already numeric; no replace

->  destring mar1991, ignore("(P)" `" "' ) replace force
mar1991 already numeric; no replace

->  destring mar1992, ignore("(P)" `" "' ) replace force
mar1992 already numeric; no replace

->  destring mar1993, ignore("(P)" `" "' ) replace force
mar1993 already numeric; no replace

->  destring mar1994, ignore("(P)" `" "' ) replace force
mar1994 already numeric; no replace

->  destring mar1995, ignore("(P)" `" "' ) replace force
mar1995 already numeric; no replace

->  destring mar1996, ignore("(P)" `" "' ) replace force
mar1996 already numeric; no replace

->  destring mar1997, ignore("(P)" `" "' ) replace force
mar1997 already numeric; no replace

->  destring mar1998, ignore("(P)" `" "' ) replace force
mar1998 already numeric; no replace

->  destring mar1999, ignore("(P)" `" "' ) replace force
mar1999 already numeric; no replace

->  destring mar2000, ignore("(P)" `" "' ) replace force
mar2000 already numeric; no replace

->  destring mar2001, ignore("(P)" `" "' ) replace force
mar2001 already numeric; no replace

->  destring mar2002, ignore("(P)" `" "' ) replace force
mar2002 already numeric; no replace

->  destring mar2003, ignore("(P)" `" "' ) replace force
mar2003 already numeric; no replace

->  destring mar2004, ignore("(P)" `" "' ) replace force
mar2004 already numeric; no replace

->  destring mar2005, ignore("(P)" `" "' ) replace force
mar2005 already numeric; no replace

->  destring mar2006, ignore("(P)" `" "' ) replace force
mar2006 already numeric; no replace

->  destring mar2007, ignore("(P)" `" "' ) replace force
mar2007 already numeric; no replace

->  destring mar2008, ignore("(P)" `" "' ) replace force
mar2008 already numeric; no replace

->  destring mar2009, ignore("(P)" `" "' ) replace force
mar2009 already numeric; no replace

->  destring mar2010, ignore("(P)" `" "' ) replace force
mar2010 already numeric; no replace

->  destring apr1976, ignore("(P)" `" "' ) replace force
apr1976 already numeric; no replace

->  destring apr1977, ignore("(P)" `" "' ) replace force
apr1977 already numeric; no replace

->  destring apr1978, ignore("(P)" `" "' ) replace force
apr1978 already numeric; no replace

->  destring apr1979, ignore("(P)" `" "' ) replace force
apr1979 already numeric; no replace

->  destring apr1980, ignore("(P)" `" "' ) replace force
apr1980 already numeric; no replace

->  destring apr1981, ignore("(P)" `" "' ) replace force
apr1981 already numeric; no replace

->  destring apr1982, ignore("(P)" `" "' ) replace force
apr1982 already numeric; no replace

->  destring apr1983, ignore("(P)" `" "' ) replace force
apr1983 already numeric; no replace

->  destring apr1984, ignore("(P)" `" "' ) replace force
apr1984 already numeric; no replace

->  destring apr1985, ignore("(P)" `" "' ) replace force
apr1985 already numeric; no replace

->  destring apr1986, ignore("(P)" `" "' ) replace force
apr1986 already numeric; no replace

->  destring apr1987, ignore("(P)" `" "' ) replace force
apr1987 already numeric; no replace

->  destring apr1988, ignore("(P)" `" "' ) replace force
apr1988 already numeric; no replace

->  destring apr1989, ignore("(P)" `" "' ) replace force
apr1989 already numeric; no replace

->  destring apr1990, ignore("(P)" `" "' ) replace force
apr1990 already numeric; no replace

->  destring apr1991, ignore("(P)" `" "' ) replace force
apr1991 already numeric; no replace

->  destring apr1992, ignore("(P)" `" "' ) replace force
apr1992 already numeric; no replace

->  destring apr1993, ignore("(P)" `" "' ) replace force
apr1993 already numeric; no replace

->  destring apr1994, ignore("(P)" `" "' ) replace force
apr1994 already numeric; no replace

->  destring apr1995, ignore("(P)" `" "' ) replace force
apr1995 already numeric; no replace

->  destring apr1996, ignore("(P)" `" "' ) replace force
apr1996 already numeric; no replace

->  destring apr1997, ignore("(P)" `" "' ) replace force
apr1997 already numeric; no replace

->  destring apr1998, ignore("(P)" `" "' ) replace force
apr1998 already numeric; no replace

->  destring apr1999, ignore("(P)" `" "' ) replace force
apr1999 already numeric; no replace

->  destring apr2000, ignore("(P)" `" "' ) replace force
apr2000 already numeric; no replace

->  destring apr2001, ignore("(P)" `" "' ) replace force
apr2001 already numeric; no replace

->  destring apr2002, ignore("(P)" `" "' ) replace force
apr2002 already numeric; no replace

->  destring apr2003, ignore("(P)" `" "' ) replace force
apr2003 already numeric; no replace

->  destring apr2004, ignore("(P)" `" "' ) replace force
apr2004 already numeric; no replace

->  destring apr2005, ignore("(P)" `" "' ) replace force
apr2005 already numeric; no replace

->  destring apr2006, ignore("(P)" `" "' ) replace force
apr2006 already numeric; no replace

->  destring apr2007, ignore("(P)" `" "' ) replace force
apr2007 already numeric; no replace

->  destring apr2008, ignore("(P)" `" "' ) replace force
apr2008 already numeric; no replace

->  destring apr2009, ignore("(P)" `" "' ) replace force
apr2009 already numeric; no replace

->  destring apr2010, ignore("(P)" `" "' ) replace force
apr2010 already numeric; no replace

->  destring may1976, ignore("(P)" `" "' ) replace force
may1976 already numeric; no replace

->  destring may1977, ignore("(P)" `" "' ) replace force
may1977 already numeric; no replace

->  destring may1978, ignore("(P)" `" "' ) replace force
may1978 already numeric; no replace

->  destring may1979, ignore("(P)" `" "' ) replace force
may1979 already numeric; no replace

->  destring may1980, ignore("(P)" `" "' ) replace force
may1980 already numeric; no replace

->  destring may1981, ignore("(P)" `" "' ) replace force
may1981 already numeric; no replace

->  destring may1982, ignore("(P)" `" "' ) replace force
may1982 already numeric; no replace

->  destring may1983, ignore("(P)" `" "' ) replace force
may1983 already numeric; no replace

->  destring may1984, ignore("(P)" `" "' ) replace force
may1984 already numeric; no replace

->  destring may1985, ignore("(P)" `" "' ) replace force
may1985 already numeric; no replace

->  destring may1986, ignore("(P)" `" "' ) replace force
may1986 already numeric; no replace

->  destring may1987, ignore("(P)" `" "' ) replace force
may1987 already numeric; no replace

->  destring may1988, ignore("(P)" `" "' ) replace force
may1988 already numeric; no replace

->  destring may1989, ignore("(P)" `" "' ) replace force
may1989 already numeric; no replace

->  destring may1990, ignore("(P)" `" "' ) replace force
may1990 already numeric; no replace

->  destring may1991, ignore("(P)" `" "' ) replace force
may1991 already numeric; no replace

->  destring may1992, ignore("(P)" `" "' ) replace force
may1992 already numeric; no replace

->  destring may1993, ignore("(P)" `" "' ) replace force
may1993 already numeric; no replace

->  destring may1994, ignore("(P)" `" "' ) replace force
may1994 already numeric; no replace

->  destring may1995, ignore("(P)" `" "' ) replace force
may1995 already numeric; no replace

->  destring may1996, ignore("(P)" `" "' ) replace force
may1996 already numeric; no replace

->  destring may1997, ignore("(P)" `" "' ) replace force
may1997 already numeric; no replace

->  destring may1998, ignore("(P)" `" "' ) replace force
may1998 already numeric; no replace

->  destring may1999, ignore("(P)" `" "' ) replace force
may1999 already numeric; no replace

->  destring may2000, ignore("(P)" `" "' ) replace force
may2000 already numeric; no replace

->  destring may2001, ignore("(P)" `" "' ) replace force
may2001 already numeric; no replace

->  destring may2002, ignore("(P)" `" "' ) replace force
may2002 already numeric; no replace

->  destring may2003, ignore("(P)" `" "' ) replace force
may2003 already numeric; no replace

->  destring may2004, ignore("(P)" `" "' ) replace force
may2004 already numeric; no replace

->  destring may2005, ignore("(P)" `" "' ) replace force
may2005 already numeric; no replace

->  destring may2006, ignore("(P)" `" "' ) replace force
may2006 already numeric; no replace

->  destring may2007, ignore("(P)" `" "' ) replace force
may2007 already numeric; no replace

->  destring may2008, ignore("(P)" `" "' ) replace force
may2008 already numeric; no replace

->  destring may2009, ignore("(P)" `" "' ) replace force
may2009 already numeric; no replace

->  destring may2010, ignore("(P)" `" "' ) replace force
may2010 already numeric; no replace

->  destring jun1976, ignore("(P)" `" "' ) replace force
jun1976 already numeric; no replace

->  destring jun1977, ignore("(P)" `" "' ) replace force
jun1977 already numeric; no replace

->  destring jun1978, ignore("(P)" `" "' ) replace force
jun1978 already numeric; no replace

->  destring jun1979, ignore("(P)" `" "' ) replace force
jun1979 already numeric; no replace

->  destring jun1980, ignore("(P)" `" "' ) replace force
jun1980 already numeric; no replace

->  destring jun1981, ignore("(P)" `" "' ) replace force
jun1981 already numeric; no replace

->  destring jun1982, ignore("(P)" `" "' ) replace force
jun1982 already numeric; no replace

->  destring jun1983, ignore("(P)" `" "' ) replace force
jun1983 already numeric; no replace

->  destring jun1984, ignore("(P)" `" "' ) replace force
jun1984 already numeric; no replace

->  destring jun1985, ignore("(P)" `" "' ) replace force
jun1985 already numeric; no replace

->  destring jun1986, ignore("(P)" `" "' ) replace force
jun1986 already numeric; no replace

->  destring jun1987, ignore("(P)" `" "' ) replace force
jun1987 already numeric; no replace

->  destring jun1988, ignore("(P)" `" "' ) replace force
jun1988 already numeric; no replace

->  destring jun1989, ignore("(P)" `" "' ) replace force
jun1989 already numeric; no replace

->  destring jun1990, ignore("(P)" `" "' ) replace force
jun1990 already numeric; no replace

->  destring jun1991, ignore("(P)" `" "' ) replace force
jun1991 already numeric; no replace

->  destring jun1992, ignore("(P)" `" "' ) replace force
jun1992 already numeric; no replace

->  destring jun1993, ignore("(P)" `" "' ) replace force
jun1993 already numeric; no replace

->  destring jun1994, ignore("(P)" `" "' ) replace force
jun1994 already numeric; no replace

->  destring jun1995, ignore("(P)" `" "' ) replace force
jun1995 already numeric; no replace

->  destring jun1996, ignore("(P)" `" "' ) replace force
jun1996 already numeric; no replace

->  destring jun1997, ignore("(P)" `" "' ) replace force
jun1997 already numeric; no replace

->  destring jun1998, ignore("(P)" `" "' ) replace force
jun1998 already numeric; no replace

->  destring jun1999, ignore("(P)" `" "' ) replace force
jun1999 already numeric; no replace

->  destring jun2000, ignore("(P)" `" "' ) replace force
jun2000 already numeric; no replace

->  destring jun2001, ignore("(P)" `" "' ) replace force
jun2001 already numeric; no replace

->  destring jun2002, ignore("(P)" `" "' ) replace force
jun2002 already numeric; no replace

->  destring jun2003, ignore("(P)" `" "' ) replace force
jun2003 already numeric; no replace

->  destring jun2004, ignore("(P)" `" "' ) replace force
jun2004 already numeric; no replace

->  destring jun2005, ignore("(P)" `" "' ) replace force
jun2005 already numeric; no replace

->  destring jun2006, ignore("(P)" `" "' ) replace force
jun2006 already numeric; no replace

->  destring jun2007, ignore("(P)" `" "' ) replace force
jun2007 already numeric; no replace

->  destring jun2008, ignore("(P)" `" "' ) replace force
jun2008 already numeric; no replace

->  destring jun2009, ignore("(P)" `" "' ) replace force
jun2009 already numeric; no replace

->  destring jun2010, ignore("(P)" `" "' ) replace force
jun2010 already numeric; no replace

->  destring jul1976, ignore("(P)" `" "' ) replace force
jul1976 already numeric; no replace

->  destring jul1977, ignore("(P)" `" "' ) replace force
jul1977 already numeric; no replace

->  destring jul1978, ignore("(P)" `" "' ) replace force
jul1978 already numeric; no replace

->  destring jul1979, ignore("(P)" `" "' ) replace force
jul1979 already numeric; no replace

->  destring jul1980, ignore("(P)" `" "' ) replace force
jul1980 already numeric; no replace

->  destring jul1981, ignore("(P)" `" "' ) replace force
jul1981 already numeric; no replace

->  destring jul1982, ignore("(P)" `" "' ) replace force
jul1982 already numeric; no replace

->  destring jul1983, ignore("(P)" `" "' ) replace force
jul1983 already numeric; no replace

->  destring jul1984, ignore("(P)" `" "' ) replace force
jul1984 already numeric; no replace

->  destring jul1985, ignore("(P)" `" "' ) replace force
jul1985 already numeric; no replace

->  destring jul1986, ignore("(P)" `" "' ) replace force
jul1986 already numeric; no replace

->  destring jul1987, ignore("(P)" `" "' ) replace force
jul1987 already numeric; no replace

->  destring jul1988, ignore("(P)" `" "' ) replace force
jul1988 already numeric; no replace

->  destring jul1989, ignore("(P)" `" "' ) replace force
jul1989 already numeric; no replace

->  destring jul1990, ignore("(P)" `" "' ) replace force
jul1990 already numeric; no replace

->  destring jul1991, ignore("(P)" `" "' ) replace force
jul1991 already numeric; no replace

->  destring jul1992, ignore("(P)" `" "' ) replace force
jul1992 already numeric; no replace

->  destring jul1993, ignore("(P)" `" "' ) replace force
jul1993 already numeric; no replace

->  destring jul1994, ignore("(P)" `" "' ) replace force
jul1994 already numeric; no replace

->  destring jul1995, ignore("(P)" `" "' ) replace force
jul1995 already numeric; no replace

->  destring jul1996, ignore("(P)" `" "' ) replace force
jul1996 already numeric; no replace

->  destring jul1997, ignore("(P)" `" "' ) replace force
jul1997 already numeric; no replace

->  destring jul1998, ignore("(P)" `" "' ) replace force
jul1998 already numeric; no replace

->  destring jul1999, ignore("(P)" `" "' ) replace force
jul1999 already numeric; no replace

->  destring jul2000, ignore("(P)" `" "' ) replace force
jul2000 already numeric; no replace

->  destring jul2001, ignore("(P)" `" "' ) replace force
jul2001 already numeric; no replace

->  destring jul2002, ignore("(P)" `" "' ) replace force
jul2002 already numeric; no replace

->  destring jul2003, ignore("(P)" `" "' ) replace force
jul2003 already numeric; no replace

->  destring jul2004, ignore("(P)" `" "' ) replace force
jul2004 already numeric; no replace

->  destring jul2005, ignore("(P)" `" "' ) replace force
jul2005 already numeric; no replace

->  destring jul2006, ignore("(P)" `" "' ) replace force
jul2006 already numeric; no replace

->  destring jul2007, ignore("(P)" `" "' ) replace force
jul2007 already numeric; no replace

->  destring jul2008, ignore("(P)" `" "' ) replace force
jul2008 already numeric; no replace

->  destring jul2009, ignore("(P)" `" "' ) replace force
jul2009 already numeric; no replace

->  destring jul2010, ignore("(P)" `" "' ) replace force
jul2010 already numeric; no replace

->  destring aug1976, ignore("(P)" `" "' ) replace force
aug1976 already numeric; no replace

->  destring aug1977, ignore("(P)" `" "' ) replace force
aug1977 already numeric; no replace

->  destring aug1978, ignore("(P)" `" "' ) replace force
aug1978 already numeric; no replace

->  destring aug1979, ignore("(P)" `" "' ) replace force
aug1979 already numeric; no replace

->  destring aug1980, ignore("(P)" `" "' ) replace force
aug1980 already numeric; no replace

->  destring aug1981, ignore("(P)" `" "' ) replace force
aug1981 already numeric; no replace

->  destring aug1982, ignore("(P)" `" "' ) replace force
aug1982 already numeric; no replace

->  destring aug1983, ignore("(P)" `" "' ) replace force
aug1983 already numeric; no replace

->  destring aug1984, ignore("(P)" `" "' ) replace force
aug1984 already numeric; no replace

->  destring aug1985, ignore("(P)" `" "' ) replace force
aug1985 already numeric; no replace

->  destring aug1986, ignore("(P)" `" "' ) replace force
aug1986 already numeric; no replace

->  destring aug1987, ignore("(P)" `" "' ) replace force
aug1987 already numeric; no replace

->  destring aug1988, ignore("(P)" `" "' ) replace force
aug1988 already numeric; no replace

->  destring aug1989, ignore("(P)" `" "' ) replace force
aug1989 already numeric; no replace

->  destring aug1990, ignore("(P)" `" "' ) replace force
aug1990 already numeric; no replace

->  destring aug1991, ignore("(P)" `" "' ) replace force
aug1991 already numeric; no replace

->  destring aug1992, ignore("(P)" `" "' ) replace force
aug1992 already numeric; no replace

->  destring aug1993, ignore("(P)" `" "' ) replace force
aug1993 already numeric; no replace

->  destring aug1994, ignore("(P)" `" "' ) replace force
aug1994 already numeric; no replace

->  destring aug1995, ignore("(P)" `" "' ) replace force
aug1995 already numeric; no replace

->  destring aug1996, ignore("(P)" `" "' ) replace force
aug1996 already numeric; no replace

->  destring aug1997, ignore("(P)" `" "' ) replace force
aug1997 already numeric; no replace

->  destring aug1998, ignore("(P)" `" "' ) replace force
aug1998 already numeric; no replace

->  destring aug1999, ignore("(P)" `" "' ) replace force
aug1999 already numeric; no replace

->  destring aug2000, ignore("(P)" `" "' ) replace force
aug2000 already numeric; no replace

->  destring aug2001, ignore("(P)" `" "' ) replace force
aug2001 already numeric; no replace

->  destring aug2002, ignore("(P)" `" "' ) replace force
aug2002 already numeric; no replace

->  destring aug2003, ignore("(P)" `" "' ) replace force
aug2003 already numeric; no replace

->  destring aug2004, ignore("(P)" `" "' ) replace force
aug2004 already numeric; no replace

->  destring aug2005, ignore("(P)" `" "' ) replace force
aug2005 already numeric; no replace

->  destring aug2006, ignore("(P)" `" "' ) replace force
aug2006 already numeric; no replace

->  destring aug2007, ignore("(P)" `" "' ) replace force
aug2007 already numeric; no replace

->  destring aug2008, ignore("(P)" `" "' ) replace force
aug2008 already numeric; no replace

->  destring aug2009, ignore("(P)" `" "' ) replace force
aug2009 already numeric; no replace

->  destring aug2010, ignore("(P)" `" "' ) replace force
aug2010 already numeric; no replace

->  destring sep1976, ignore("(P)" `" "' ) replace force
sep1976 already numeric; no replace

->  destring sep1977, ignore("(P)" `" "' ) replace force
sep1977 already numeric; no replace

->  destring sep1978, ignore("(P)" `" "' ) replace force
sep1978 already numeric; no replace

->  destring sep1979, ignore("(P)" `" "' ) replace force
sep1979 already numeric; no replace

->  destring sep1980, ignore("(P)" `" "' ) replace force
sep1980 already numeric; no replace

->  destring sep1981, ignore("(P)" `" "' ) replace force
sep1981 already numeric; no replace

->  destring sep1982, ignore("(P)" `" "' ) replace force
sep1982 already numeric; no replace

->  destring sep1983, ignore("(P)" `" "' ) replace force
sep1983 already numeric; no replace

->  destring sep1984, ignore("(P)" `" "' ) replace force
sep1984 already numeric; no replace

->  destring sep1985, ignore("(P)" `" "' ) replace force
sep1985 already numeric; no replace

->  destring sep1986, ignore("(P)" `" "' ) replace force
sep1986 already numeric; no replace

->  destring sep1987, ignore("(P)" `" "' ) replace force
sep1987 already numeric; no replace

->  destring sep1988, ignore("(P)" `" "' ) replace force
sep1988 already numeric; no replace

->  destring sep1989, ignore("(P)" `" "' ) replace force
sep1989 already numeric; no replace

->  destring sep1990, ignore("(P)" `" "' ) replace force
sep1990 already numeric; no replace

->  destring sep1991, ignore("(P)" `" "' ) replace force
sep1991 already numeric; no replace

->  destring sep1992, ignore("(P)" `" "' ) replace force
sep1992 already numeric; no replace

->  destring sep1993, ignore("(P)" `" "' ) replace force
sep1993 already numeric; no replace

->  destring sep1994, ignore("(P)" `" "' ) replace force
sep1994 already numeric; no replace

->  destring sep1995, ignore("(P)" `" "' ) replace force
sep1995 already numeric; no replace

->  destring sep1996, ignore("(P)" `" "' ) replace force
sep1996 already numeric; no replace

->  destring sep1997, ignore("(P)" `" "' ) replace force
sep1997 already numeric; no replace

->  destring sep1998, ignore("(P)" `" "' ) replace force
sep1998 already numeric; no replace

->  destring sep1999, ignore("(P)" `" "' ) replace force
sep1999 already numeric; no replace

->  destring sep2000, ignore("(P)" `" "' ) replace force
sep2000 already numeric; no replace

->  destring sep2001, ignore("(P)" `" "' ) replace force
sep2001 already numeric; no replace

->  destring sep2002, ignore("(P)" `" "' ) replace force
sep2002 already numeric; no replace

->  destring sep2003, ignore("(P)" `" "' ) replace force
sep2003 already numeric; no replace

->  destring sep2004, ignore("(P)" `" "' ) replace force
sep2004 already numeric; no replace

->  destring sep2005, ignore("(P)" `" "' ) replace force
sep2005 already numeric; no replace

->  destring sep2006, ignore("(P)" `" "' ) replace force
sep2006 already numeric; no replace

->  destring sep2007, ignore("(P)" `" "' ) replace force
sep2007 already numeric; no replace

->  destring sep2008, ignore("(P)" `" "' ) replace force
sep2008 already numeric; no replace

->  destring sep2009, ignore("(P)" `" "' ) replace force
sep2009 already numeric; no replace

->  destring sep2010, ignore("(P)" `" "' ) replace force
sep2010 already numeric; no replace

->  destring oct1976, ignore("(P)" `" "' ) replace force
oct1976 already numeric; no replace

->  destring oct1977, ignore("(P)" `" "' ) replace force
oct1977 already numeric; no replace

->  destring oct1978, ignore("(P)" `" "' ) replace force
oct1978 already numeric; no replace

->  destring oct1979, ignore("(P)" `" "' ) replace force
oct1979 already numeric; no replace

->  destring oct1980, ignore("(P)" `" "' ) replace force
oct1980 already numeric; no replace

->  destring oct1981, ignore("(P)" `" "' ) replace force
oct1981 already numeric; no replace

->  destring oct1982, ignore("(P)" `" "' ) replace force
oct1982 already numeric; no replace

->  destring oct1983, ignore("(P)" `" "' ) replace force
oct1983 already numeric; no replace

->  destring oct1984, ignore("(P)" `" "' ) replace force
oct1984 already numeric; no replace

->  destring oct1985, ignore("(P)" `" "' ) replace force
oct1985 already numeric; no replace

->  destring oct1986, ignore("(P)" `" "' ) replace force
oct1986 already numeric; no replace

->  destring oct1987, ignore("(P)" `" "' ) replace force
oct1987 already numeric; no replace

->  destring oct1988, ignore("(P)" `" "' ) replace force
oct1988 already numeric; no replace

->  destring oct1989, ignore("(P)" `" "' ) replace force
oct1989 already numeric; no replace

->  destring oct1990, ignore("(P)" `" "' ) replace force
oct1990 already numeric; no replace

->  destring oct1991, ignore("(P)" `" "' ) replace force
oct1991 already numeric; no replace

->  destring oct1992, ignore("(P)" `" "' ) replace force
oct1992 already numeric; no replace

->  destring oct1993, ignore("(P)" `" "' ) replace force
oct1993 already numeric; no replace

->  destring oct1994, ignore("(P)" `" "' ) replace force
oct1994 already numeric; no replace

->  destring oct1995, ignore("(P)" `" "' ) replace force
oct1995 already numeric; no replace

->  destring oct1996, ignore("(P)" `" "' ) replace force
oct1996 already numeric; no replace

->  destring oct1997, ignore("(P)" `" "' ) replace force
oct1997 already numeric; no replace

->  destring oct1998, ignore("(P)" `" "' ) replace force
oct1998 already numeric; no replace

->  destring oct1999, ignore("(P)" `" "' ) replace force
oct1999 already numeric; no replace

->  destring oct2000, ignore("(P)" `" "' ) replace force
oct2000 already numeric; no replace

->  destring oct2001, ignore("(P)" `" "' ) replace force
oct2001 already numeric; no replace

->  destring oct2002, ignore("(P)" `" "' ) replace force
oct2002 already numeric; no replace

->  destring oct2003, ignore("(P)" `" "' ) replace force
oct2003 already numeric; no replace

->  destring oct2004, ignore("(P)" `" "' ) replace force
oct2004 already numeric; no replace

->  destring oct2005, ignore("(P)" `" "' ) replace force
oct2005 already numeric; no replace

->  destring oct2006, ignore("(P)" `" "' ) replace force
oct2006 already numeric; no replace

->  destring oct2007, ignore("(P)" `" "' ) replace force
oct2007 already numeric; no replace

->  destring oct2008, ignore("(P)" `" "' ) replace force
oct2008 already numeric; no replace

->  destring oct2009, ignore("(P)" `" "' ) replace force
oct2009 already numeric; no replace

->  destring oct2010, ignore("(P)" `" "' ) replace force
oct2010 already numeric; no replace

->  destring nov1976, ignore("(P)" `" "' ) replace force
nov1976 already numeric; no replace

->  destring nov1977, ignore("(P)" `" "' ) replace force
nov1977 already numeric; no replace

->  destring nov1978, ignore("(P)" `" "' ) replace force
nov1978 already numeric; no replace

->  destring nov1979, ignore("(P)" `" "' ) replace force
nov1979 already numeric; no replace

->  destring nov1980, ignore("(P)" `" "' ) replace force
nov1980 already numeric; no replace

->  destring nov1981, ignore("(P)" `" "' ) replace force
nov1981 already numeric; no replace

->  destring nov1982, ignore("(P)" `" "' ) replace force
nov1982 already numeric; no replace

->  destring nov1983, ignore("(P)" `" "' ) replace force
nov1983 already numeric; no replace

->  destring nov1984, ignore("(P)" `" "' ) replace force
nov1984 already numeric; no replace

->  destring nov1985, ignore("(P)" `" "' ) replace force
nov1985 already numeric; no replace

->  destring nov1986, ignore("(P)" `" "' ) replace force
nov1986 already numeric; no replace

->  destring nov1987, ignore("(P)" `" "' ) replace force
nov1987 already numeric; no replace

->  destring nov1988, ignore("(P)" `" "' ) replace force
nov1988 already numeric; no replace

->  destring nov1989, ignore("(P)" `" "' ) replace force
nov1989 already numeric; no replace

->  destring nov1990, ignore("(P)" `" "' ) replace force
nov1990 already numeric; no replace

->  destring nov1991, ignore("(P)" `" "' ) replace force
nov1991 already numeric; no replace

->  destring nov1992, ignore("(P)" `" "' ) replace force
nov1992 already numeric; no replace

->  destring nov1993, ignore("(P)" `" "' ) replace force
nov1993 already numeric; no replace

->  destring nov1994, ignore("(P)" `" "' ) replace force
nov1994 already numeric; no replace

->  destring nov1995, ignore("(P)" `" "' ) replace force
nov1995 already numeric; no replace

->  destring nov1996, ignore("(P)" `" "' ) replace force
nov1996 already numeric; no replace

->  destring nov1997, ignore("(P)" `" "' ) replace force
nov1997 already numeric; no replace

->  destring nov1998, ignore("(P)" `" "' ) replace force
nov1998 already numeric; no replace

->  destring nov1999, ignore("(P)" `" "' ) replace force
nov1999 already numeric; no replace

->  destring nov2000, ignore("(P)" `" "' ) replace force
nov2000 already numeric; no replace

->  destring nov2001, ignore("(P)" `" "' ) replace force
nov2001 already numeric; no replace

->  destring nov2002, ignore("(P)" `" "' ) replace force
nov2002 already numeric; no replace

->  destring nov2003, ignore("(P)" `" "' ) replace force
nov2003 already numeric; no replace

->  destring nov2004, ignore("(P)" `" "' ) replace force
nov2004 already numeric; no replace

->  destring nov2005, ignore("(P)" `" "' ) replace force
nov2005 already numeric; no replace

->  destring nov2006, ignore("(P)" `" "' ) replace force
nov2006 already numeric; no replace

->  destring nov2007, ignore("(P)" `" "' ) replace force
nov2007 already numeric; no replace

->  destring nov2008, ignore("(P)" `" "' ) replace force
nov2008 already numeric; no replace

->  destring nov2009, ignore("(P)" `" "' ) replace force
nov2009 already numeric; no replace

->  destring nov2010, ignore("(P)" `" "' ) replace force
nov2010 contains nonnumeric characters; replaced as double
nov2010: characters ( P ) removed; replaced as double

->  destring dec1976, ignore("(P)" `" "' ) replace force
dec1976 already numeric; no replace

->  destring dec1977, ignore("(P)" `" "' ) replace force
dec1977 already numeric; no replace

->  destring dec1978, ignore("(P)" `" "' ) replace force
dec1978 already numeric; no replace

->  destring dec1979, ignore("(P)" `" "' ) replace force
dec1979 already numeric; no replace

->  destring dec1980, ignore("(P)" `" "' ) replace force
dec1980 already numeric; no replace

->  destring dec1981, ignore("(P)" `" "' ) replace force
dec1981 already numeric; no replace

->  destring dec1982, ignore("(P)" `" "' ) replace force
dec1982 already numeric; no replace

->  destring dec1983, ignore("(P)" `" "' ) replace force
dec1983 already numeric; no replace

->  destring dec1984, ignore("(P)" `" "' ) replace force
dec1984 already numeric; no replace

->  destring dec1985, ignore("(P)" `" "' ) replace force
dec1985 already numeric; no replace

->  destring dec1986, ignore("(P)" `" "' ) replace force
dec1986 already numeric; no replace

->  destring dec1987, ignore("(P)" `" "' ) replace force
dec1987 already numeric; no replace

->  destring dec1988, ignore("(P)" `" "' ) replace force
dec1988 already numeric; no replace

->  destring dec1989, ignore("(P)" `" "' ) replace force
dec1989 already numeric; no replace

->  destring dec1990, ignore("(P)" `" "' ) replace force
dec1990 already numeric; no replace

->  destring dec1991, ignore("(P)" `" "' ) replace force
dec1991 already numeric; no replace

->  destring dec1992, ignore("(P)" `" "' ) replace force
dec1992 already numeric; no replace

->  destring dec1993, ignore("(P)" `" "' ) replace force
dec1993 already numeric; no replace

->  destring dec1994, ignore("(P)" `" "' ) replace force
dec1994 already numeric; no replace

->  destring dec1995, ignore("(P)" `" "' ) replace force
dec1995 already numeric; no replace

->  destring dec1996, ignore("(P)" `" "' ) replace force
dec1996 already numeric; no replace

->  destring dec1997, ignore("(P)" `" "' ) replace force
dec1997 already numeric; no replace

->  destring dec1998, ignore("(P)" `" "' ) replace force
dec1998 already numeric; no replace

->  destring dec1999, ignore("(P)" `" "' ) replace force
dec1999 already numeric; no replace

->  destring dec2000, ignore("(P)" `" "' ) replace force
dec2000 already numeric; no replace

->  destring dec2001, ignore("(P)" `" "' ) replace force
dec2001 already numeric; no replace

->  destring dec2002, ignore("(P)" `" "' ) replace force
dec2002 already numeric; no replace

->  destring dec2003, ignore("(P)" `" "' ) replace force
dec2003 already numeric; no replace

->  destring dec2004, ignore("(P)" `" "' ) replace force
dec2004 already numeric; no replace

->  destring dec2005, ignore("(P)" `" "' ) replace force
dec2005 already numeric; no replace

->  destring dec2006, ignore("(P)" `" "' ) replace force
dec2006 already numeric; no replace

->  destring dec2007, ignore("(P)" `" "' ) replace force
dec2007 already numeric; no replace

->  destring dec2008, ignore("(P)" `" "' ) replace force
dec2008 already numeric; no replace

->  destring dec2009, ignore("(P)" `" "' ) replace force
dec2009 already numeric; no replace

->  destring dec2010, ignore("(P)" `" "' ) replace force
dec2010 contains nonnumeric characters; replaced as byte
(51 missing values generated)

. reshape long jan feb mar apr may jun jul aug sep oct nov dec, i(st) j(year)
(note: j = 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1
> 991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2
> 008 2009 2010)
nov2010:  44 values would be changed; not changed

Data                               wide   ->   long
-----------------------------------------------------------------------------
Number of obs.                       51   ->    1785
Number of variables                 422   ->      15
j variable (35 values)                    ->   year
xij variables:
            jan1976 jan1977 ... jan2010   ->   jan
            feb1976 feb1977 ... feb2010   ->   feb
            mar1976 mar1977 ... mar2010   ->   mar
            apr1976 apr1977 ... apr2010   ->   apr
            may1976 may1977 ... may2010   ->   may
            jun1976 jun1977 ... jun2010   ->   jun
            jul1976 jul1977 ... jul2010   ->   jul
            aug1976 aug1977 ... aug2010   ->   aug
            sep1976 sep1977 ... sep2010   ->   sep
            oct1976 oct1977 ... oct2010   ->   oct
            nov1976 nov1977 ... nov2010   ->   nov
            dec1976 dec1977 ... dec2010   ->   dec
-----------------------------------------------------------------------------

. drop seriesid

. egen ur=rmean(jan-dec)

. keep st year ur

. la var ur "Unemployment rate (Annual average; sa)"

. replace ur=ur/100
(1785 real changes made)

. sort st year

. save "Unemployment", replace
file Unemployment.dta saved

. 
end of do-file

. cd "$project"
C:\Users\jwolfers\Documents\Justin@Wharton\Trust in Public Institutions\AER Archive

. 
. * Compile and clean the Gallup trust data
. cd "Gallup trust"
C:\Users\jwolfers\Documents\Justin@Wharton\Trust in Public Institutions\AER Archive\Gal
> lup trust

. do "Gallup_trust_compile.do"

. ** Script to compile the gallup trust data
. cd "data"
C:\Users\jwolfers\Documents\Justin@Wharton\Trust in Public Institutions\AER Archive\Gal
> lup trust\data

. set more off

. clear *

. 
. label define trust 1 "A GREAT DEAL" 2 "QUITE A LOT" 3 "SOME" 4 "VERY LITTLE" 5 "NONE"

. label define states 58 "AL" 85 "AK" 72 "AZ" 61 "AR" 81 "CA" 73 "CO" 16 "CT" 25 "DE" 2
> 7 "DC" 55 "FL" 54 "GA" 84 "HI" 74 "ID" 34 "IL" 33 "IN" 43 "IA" 48 "KS" 56 "KY" 62 "LA
> " 11 "ME" 24 "MD" 14 "MA" 32 "MI" 42 "MN" 59 "MS" 44 "MO" 71 "MT" 47 "NE" 77 "NV" 12 
> "NH" 22 "NJ" 78 "NM" 21 "NY" 52 "NC" 45 "ND" 31 "OH" 63 "OK" 82 "OR" 23 "PA" 15 "RI" 
> 53 "SC" 46 "SD" 57 "TN" 64 "TX" 76 "UT" 13 "VT" 51 "VA" 83 "WA" 26 "WV" 41 "WI" 75 "W
> Y"

. label define education 1 "None or grade 1 - 4" 2 "Grade 5 6 or 7" 3 "Grade 8" 4 "High
>  school incomplete (Grades 9 - 11)" 5 "High school graduate Grade 12" 6 "Technical tr
> ade or business after high school" 7 "College/university incomplete" 8 "College/unive
> rsity graduate or more"

. label define genders 0 "Male" 1 "Female"

. label define racelabels 1 "White" 2 "Black" 3 "Hispanic" 4 "Asian" 5 "American Indian
> " 6 "Pacific Islander" 7 "Other Race"

. 
. infix 2 lines weight 2:74-74 sex 2:69-69 state 2:72-73 church 2:38 supcourt 2:34 scho
> ols 2:32 newspapers 2:36 congress 2:35 tv 2:37 labor 2:33 bigbus 2:39 educ 2:65 age 2
> :66-67 race 2:69-69 using 870.dat, clear
(1531 observations read)

. gen date=mdy(5,7,1973)

. label values educ education

. label values state states

. foreach var of varlist church supcourt schools newspapers congress tv labor bigbus {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(35 real changes made, 35 to missing)
(0 real changes made)
(0 real changes made)
(136 real changes made, 136 to missing)
(0 real changes made)
(0 real changes made)
(47 real changes made, 47 to missing)
(0 real changes made)
(0 real changes made)
(33 real changes made, 33 to missing)
(0 real changes made)
(0 real changes made)
(107 real changes made, 107 to missing)
(0 real changes made)
(0 real changes made)
(27 real changes made, 27 to missing)
(0 real changes made)
(0 real changes made)
(141 real changes made, 141 to missing)
(0 real changes made)
(0 real changes made)
(98 real changes made, 98 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(15 real changes made, 15 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1531 changes made)

. replace educ=. if educ==9
(0 real changes made)

. replace educ=.d if educ==0
(8 real changes made, 8 to missing)

. label values sex genders

. recode race (2=1) (3 4=2) (5 6=7)
(race: 864 changes made)

. label values race racelabels

. 
. save gallup1973-05, replace
file gallup1973-05.dta saved

. 
. 
. 
. infix 1 lines weight 1:56-56 sex 1:51-51 state 1:54-55 church 1:36 military 1:35 supc
> ourt 1:26 congress 1:25 labor 1:30 presidency 1:27 bigbus 1:37 educ 1:47 age 1:48-49 
> race 1:51-51 using 930.dat, clear
(1626 observations read)

. gen date=mdy(6,2,1975)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt congress labor presidency bigbus {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(31 real changes made, 31 to missing)
(0 real changes made)
(0 real changes made)
(75 real changes made, 75 to missing)
(0 real changes made)
(0 real changes made)
(79 real changes made, 79 to missing)
(0 real changes made)
(0 real changes made)
(50 real changes made, 50 to missing)
(0 real changes made)
(0 real changes made)
(97 real changes made, 97 to missing)
(0 real changes made)
(0 real changes made)
(44 real changes made, 44 to missing)
(0 real changes made)
(0 real changes made)
(80 real changes made, 80 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(10 real changes made, 10 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1626 changes made)

. replace educ=. if educ==9
(0 real changes made)

. replace educ=.d if educ==0
(7 real changes made, 7 to missing)

. label values sex genders

. recode race (2=1) (3 4=2) (5 6=7)
(race: 934 changes made)

. label values race racelabels

. 
. save gallup1975-06, replace
file gallup1975-06.dta saved

. 
. 
. 
. infix 1 lines weight 1:1-1 sex 1:33-33 state 1:40-41 church 1:18 military 1:21 supcou
> rt 1:16 schools 1:23 congress 1:17 labor 1:19 bigbus 1:20 educ 1:28 age 1:29-30 race 
> 1:32-32 using 965.dat, clear
(1500 observations read)

. gen date=mdy(1,10,1977)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt schools congress labor bigbus {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(43 real changes made, 43 to missing)
(0 real changes made)
(0 real changes made)
(80 real changes made, 80 to missing)
(0 real changes made)
(0 real changes made)
(102 real changes made, 102 to missing)
(0 real changes made)
(0 real changes made)
(60 real changes made, 60 to missing)
(0 real changes made)
(0 real changes made)
(86 real changes made, 86 to missing)
(0 real changes made)
(0 real changes made)
(86 real changes made, 86 to missing)
(0 real changes made)
(0 real changes made)
(84 real changes made, 84 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(10 real changes made, 10 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1500 changes made)

. replace educ=. if educ==9
(0 real changes made)

. replace educ=.d if educ==0
(3 real changes made, 3 to missing)

. label values sex genders

. recode race (3=7)
(race: 15 changes made)

. label values race racelabels

. 
. save gallup1977-01, replace
file gallup1977-01.dta saved

. 
. 
. 
. infix 1 lines weight 1:1-1 sex 1:58-58 state 1:84-85 church 1:21 military 1:24 supcou
> rt 1:19 banks 1:26 schools 1:25 newspapers 1:28 congress 1:20 tv 1:27 labor 1:22 bigb
> us 1:23 educ 1:50 age 1:51-52 race 1:57-57 using 1127.dat, clear
(1509 observations read)

. gen date=mdy(4,9,1979)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tv 
> labor bigbus {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(40 real changes made, 40 to missing)
(0 real changes made)
(0 real changes made)
(37 real changes made, 37 to missing)
(0 real changes made)
(0 real changes made)
(61 real changes made, 61 to missing)
(0 real changes made)
(0 real changes made)
(38 real changes made, 38 to missing)
(0 real changes made)
(0 real changes made)
(38 real changes made, 38 to missing)
(0 real changes made)
(0 real changes made)
(29 real changes made, 29 to missing)
(0 real changes made)
(0 real changes made)
(48 real changes made, 48 to missing)
(0 real changes made)
(0 real changes made)
(23 real changes made, 23 to missing)
(0 real changes made)
(0 real changes made)
(57 real changes made, 57 to missing)
(0 real changes made)
(0 real changes made)
(42 real changes made, 42 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(10 real changes made, 10 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1509 changes made)

. replace educ=. if educ==9
(0 real changes made)

. replace educ=.d if educ==0
(3 real changes made, 3 to missing)

. label values sex genders

. recode race (3=7)
(race: 13 changes made)

. label values race racelabels

. 
. save gallup1979-04, replace
file gallup1979-04.dta saved

. 
. 
. 
. infix 1 lines weight 1:1-1 sex 1:66-66 state 1:77-78 church 1:13 military 1:15 supcou
> rt 1:18 banks 1:14 schools 1:16 newspapers 1:17 congress 1:21 tv 1:19 labor 1:20 bigb
> us 1:22 educ 1:59 age 1:61-62 race 1:65-65 using 1186.dat, clear
(1508 observations read)

. gen date=mdy(11,23,1981)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tv 
> labor bigbus {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(13 real changes made, 13 to missing)
(0 real changes made)
(0 real changes made)
(24 real changes made, 24 to missing)
(0 real changes made)
(0 real changes made)
(53 real changes made, 53 to missing)
(0 real changes made)
(0 real changes made)
(9 real changes made, 9 to missing)
(0 real changes made)
(0 real changes made)
(16 real changes made, 16 to missing)
(0 real changes made)
(0 real changes made)
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)
(43 real changes made, 43 to missing)
(0 real changes made)
(0 real changes made)
(10 real changes made, 10 to missing)
(0 real changes made)
(0 real changes made)
(57 real changes made, 57 to missing)
(0 real changes made)
(0 real changes made)
(44 real changes made, 44 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(10 real changes made, 10 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1508 changes made)

. replace educ=. if educ==9
(0 real changes made)

. replace educ=.d if educ==0
(8 real changes made, 8 to missing)

. label values sex genders

. recode race (3=7)
(race: 35 changes made)

. label values race racelabels

. 
. save gallup1981-11, replace
file gallup1981-11.dta saved

. 
. 
. 
. infix 1 lines weight 1:1-1 sex 1:53-53 state 1:64-65 church 1:12 military 1:14 supcou
> rt 1:17 banks 1:13 schools 1:15 newspapers 1:16 congress 1:20 tv 1:18 labor 1:19 bigb
> us 1:21 educ 1:49 age 1:23-24 race 1:52-52 using 1220.dat, clear
(1497 observations read)

. gen date=mdy(8,8,1983)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tv 
> labor bigbus {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(22 real changes made, 22 to missing)
(0 real changes made)
(0 real changes made)
(74 real changes made, 74 to missing)
(0 real changes made)
(0 real changes made)
(93 real changes made, 93 to missing)
(0 real changes made)
(0 real changes made)
(25 real changes made, 25 to missing)
(0 real changes made)
(0 real changes made)
(32 real changes made, 32 to missing)
(0 real changes made)
(0 real changes made)
(27 real changes made, 27 to missing)
(0 real changes made)
(0 real changes made)
(66 real changes made, 66 to missing)
(0 real changes made)
(0 real changes made)
(13 real changes made, 13 to missing)
(0 real changes made)
(0 real changes made)
(76 real changes made, 76 to missing)
(0 real changes made)
(0 real changes made)
(68 real changes made, 68 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(7 real changes made, 7 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1497 changes made)

. replace educ=. if educ==9
(0 real changes made)

. replace educ=.d if educ==0
(10 real changes made, 10 to missing)

. label values sex genders

. recode race (3=7)
(race: 36 changes made)

. label values race racelabels

. 
. save gallup1983-08, replace
file gallup1983-08.dta saved

. 
. 
. 
. infix 1 lines weight 1:1-3 sex 1:120-120 state 1:130-131 church 1:9 military 1:10 sup
> court 1:12 banks 1:11 schools 1:13 newspapers 1:14 congress 1:15 tv 1:18 labor 1:17 b
> igbus 1:16 educ 1:115 age 1:116-117 race 1:119-119 using 84218.dat, clear
'&&' cannot be read as a number for age[45]
'&&' cannot be read as a number for age[73]
'&&' cannot be read as a number for age[183]
'&&' cannot be read as a number for age[327]
'&&' cannot be read as a number for age[547]
'&&' cannot be read as a number for age[609]
'&&' cannot be read as a number for age[635]
'&&' cannot be read as a number for age[720]
(750 observations read)

. gen date=mdy(10,10,1984)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tv 
> labor bigbus {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(0 real changes made)
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(19 real changes made, 19 to missing)
(0 real changes made)
(0 real changes made)
(31 real changes made, 31 to missing)
(0 real changes made)
(0 real changes made)
(13 real changes made, 13 to missing)
(0 real changes made)
(0 real changes made)
(10 real changes made, 10 to missing)
(0 real changes made)
(0 real changes made)
(10 real changes made, 10 to missing)
(0 real changes made)
(0 real changes made)
(25 real changes made, 25 to missing)
(0 real changes made)
(0 real changes made)
(8 real changes made, 8 to missing)
(0 real changes made)
(0 real changes made)
(23 real changes made, 23 to missing)
(0 real changes made)
(0 real changes made)
(18 real changes made, 18 to missing)
(0 real changes made)

. replace age=. if age==0
(0 real changes made)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 750 changes made)

. replace educ=. if educ==9
(0 real changes made)

. replace educ=.d if educ==0
(3 real changes made, 3 to missing)

. label values sex genders

. recode race (3=7)
(race: 29 changes made)

. replace race=. if race==0
(2 real changes made, 2 to missing)

. label values race racelabels

. replace weight = weight/100
(750 real changes made)

. save gallup1984-10, replace
file gallup1984-10.dta saved

. 
. 
. 
. infix 1 lines weight 1:5-7 sex 1:114-114 state 1:125-126 church 1:71 military 1:73 su
> pcourt 1:76 banks 1:72 schools 1:74 newspapers 1:75 congress 1:79 tv 1:77 labor 1:78 
> bigbus 1:80 educ 1:107 age 1:108-109 race 1:115-115 using 1253.dat, clear
(1528 observations read)

. gen date=mdy(5,20,1985)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tv 
> labor bigbus {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(13 real changes made, 13 to missing)
(0 real changes made)
(0 real changes made)
(39 real changes made, 39 to missing)
(0 real changes made)
(0 real changes made)
(64 real changes made, 64 to missing)
(0 real changes made)
(0 real changes made)
(21 real changes made, 21 to missing)
(0 real changes made)
(0 real changes made)
(39 real changes made, 39 to missing)
(0 real changes made)
(0 real changes made)
(26 real changes made, 26 to missing)
(0 real changes made)
(0 real changes made)
(48 real changes made, 48 to missing)
(0 real changes made)
(0 real changes made)
(19 real changes made, 19 to missing)
(0 real changes made)
(0 real changes made)
(56 real changes made, 56 to missing)
(0 real changes made)
(0 real changes made)
(59 real changes made, 59 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(7 real changes made, 7 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1528 changes made)

. replace educ=. if educ==9
(0 real changes made)

. replace educ=.d if educ==0
(17 real changes made, 17 to missing)

. label values sex genders

. recode race (3=7)
(race: 33 changes made)

. label values race racelabels

. replace weight = weight/100
(1528 real changes made)

. save gallup1985-05, replace
file gallup1985-05.dta saved

. 
. 
. 
. infix 1 lines weight 1:1-3 sex 1:183-183 state 1:194-195 church 1:128 military 1:130 
> supcourt 1:133 banks 1:129 schools 1:131 newspapers 1:132 congress 1:136 tv 1:134 lab
> or 1:135 bigbus 1:137 educ 1:176 age 1:177-178 race 1:184-184 using 1266.dat, clear
(1539 observations read)

. gen date=mdy(7,14,1986)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tv 
> labor bigbus {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(21 real changes made, 21 to missing)
(0 real changes made)
(0 real changes made)
(34 real changes made, 34 to missing)
(0 real changes made)
(0 real changes made)
(55 real changes made, 55 to missing)
(0 real changes made)
(0 real changes made)
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(24 real changes made, 24 to missing)
(0 real changes made)
(0 real changes made)
(19 real changes made, 19 to missing)
(0 real changes made)
(0 real changes made)
(44 real changes made, 44 to missing)
(0 real changes made)
(0 real changes made)
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(52 real changes made, 52 to missing)
(0 real changes made)
(0 real changes made)
(59 real changes made, 59 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(3 real changes made, 3 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1539 changes made)

. replace educ=. if educ==9
(0 real changes made)

. replace educ=.d if educ==0
(2 real changes made, 2 to missing)

. label values sex genders

. recode race (3=7)
(race: 20 changes made)

. label values race racelabels

. replace weight = weight/100
(1539 real changes made)

. save gallup1986-07, replace
file gallup1986-07.dta saved

. 
. 
. 
. infix 1 lines weight 1:1-3 sex 1:154-154 state 1:165-166 church 1:96 supcourt 1:98 ne
> wspapers 1:97 congress 1:99 educ 1:147 age 1:148-149 race 1:155-155 using 1269.dat, c
> lear
(1559 observations read)

. gen date=mdy(10,27,1986)

. label values educ education

. label values state states

. foreach var of varlist church supcourt newspapers congress {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)
(39 real changes made, 39 to missing)
(0 real changes made)
(0 real changes made)
(9 real changes made, 9 to missing)
(0 real changes made)
(0 real changes made)
(26 real changes made, 26 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(6 real changes made, 6 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1559 changes made)

. replace educ=. if educ==9
(0 real changes made)

. replace educ=.d if educ==0
(2 real changes made, 2 to missing)

. label values sex genders

. recode race (3=7)
(race: 17 changes made)

. label values race racelabels

. replace weight = weight/100
(1559 real changes made)

. save gallup1986-10, replace
file gallup1986-10.dta saved

. 
. 
. 
. infix 1 lines weight 1:5-7 sex 1:213-213 state 1:225-226 church 1:117 military 1:119 
> supcourt 1:122 banks 1:118 schools 1:120 newspapers 1:121 tv 1:123 labor 1:124 educ 1
> :206 age 1:207-208 race 1:214-214 using 1278.DAT, clear
(1607 observations read)

. gen date=mdy(7,13,1987)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers tv labor {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(9 real changes made, 9 to missing)
(0 real changes made)
(0 real changes made)
(21 real changes made, 21 to missing)
(0 real changes made)
(0 real changes made)
(63 real changes made, 63 to missing)
(0 real changes made)
(0 real changes made)
(12 real changes made, 12 to missing)
(0 real changes made)
(0 real changes made)
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)
(9 real changes made, 9 to missing)
(0 real changes made)
(0 real changes made)
(65 real changes made, 65 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(4 real changes made, 4 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1607 changes made)

. replace educ=. if educ==9
(0 real changes made)

. replace educ=.d if educ==0
(1 real change made, 1 to missing)

. label values sex genders

. recode race (3=7)
(race: 16 changes made)

. label values race racelabels

. replace weight = weight/100
(1607 real changes made)

. save gallup1987-07, replace
file gallup1987-07.dta saved

. 
. 
. 
. infix 9 lines weight 1:11-13 sex 1:83-83 state 1:107-108 church 2:34 military 2:40 co
> ngress 2:41 labor 2:42 bigbus 2:43 educ 1:79 age 1:80-81 race 1:83-83 using GIVE88.DA
> T, clear
(2775 observations read)

. gen date=mdy(3,18,1988)

. label values educ education

. label values state states

. foreach var of varlist church military congress labor bigbus {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(0 real changes made)
(211 real changes made, 211 to missing)
(0 real changes made)
(0 real changes made)
(213 real changes made, 213 to missing)
(0 real changes made)
(0 real changes made)
(171 real changes made, 171 to missing)
(0 real changes made)
(0 real changes made)
(206 real changes made, 206 to missing)
(0 real changes made)
(0 real changes made)
(234 real changes made, 234 to missing)
(0 real changes made)

. replace age=. if age==0
(28 real changes made, 28 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 2775 changes made)

. replace educ=. if educ==9
(0 real changes made)

. replace educ=.d if educ==0
(8 real changes made, 8 to missing)

. label values sex genders

. recode race (2=1) (3 4=2) (5 6=7)
(race: 1658 changes made)

. replace race=.d if race==0
(0 real changes made)

. label values race racelabels

. replace weight = weight/100
(2775 real changes made)

. save gallup1988-03, replace
file gallup1988-03.dta saved

. 
. 
. 
. infix 4 lines weight 1:13-15 sex 1:44-44 state 1:78-79 church 3:25 military 3:26 supc
> ourt 3:27 banks 3:28 schools 3:29 newspapers 3:30 congress 3:31 tv 3:32 labor 3:33 bi
> gbus 3:34 educ 1:47 age 1:45-46 race 1:48-48 using g922016.dat, clear
(1241 observations read)

. gen date=mdy(8,19,1990)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tv 
> labor bigbus {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(31 real changes made, 31 to missing)
(0 real changes made)
(0 real changes made)
(21 real changes made, 21 to missing)
(0 real changes made)
(0 real changes made)
(0 real changes made)
(0 real changes made)
(0 real changes made)
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(24 real changes made, 24 to missing)
(0 real changes made)
(0 real changes made)
(11 real changes made, 11 to missing)
(0 real changes made)
(0 real changes made)
(27 real changes made, 27 to missing)
(0 real changes made)
(0 real changes made)
(16 real changes made, 16 to missing)
(0 real changes made)
(0 real changes made)
(55 real changes made, 55 to missing)
(0 real changes made)
(0 real changes made)
(38 real changes made, 38 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(16 real changes made, 16 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1241 changes made)

. replace educ=. if educ==9
(14 real changes made, 14 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. recode race (3=7)
(race: 56 changes made)

. replace race=.d if race==4
(10 real changes made, 10 to missing)

. label values race racelabels

. replace weight = weight/100
(1241 real changes made)

. save gallup1990-08, replace
file gallup1990-08.dta saved

. 
. 
. 
. infix 3 lines weight 1:13-15 sex 1:44-44 state 1:78-79 church 3:39 military 3:40 supc
> ourt 3:41 banks 3:42 schools 3:43 newspapers 3:44 congress 3:45 tv 3:46 labor 3:47 pr
> esidency 3:49 bigbus 3:48 educ 1:47 age 1:45-46 race 1:48-48 using G122019.DAT, clear
(1012 observations read)

. gen date=mdy(3,3,1991)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tv 
> labor presidency bigbus {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(22 real changes made, 22 to missing)
(0 real changes made)
(0 real changes made)
(11 real changes made, 11 to missing)
(0 real changes made)
(0 real changes made)
(41 real changes made, 41 to missing)
(0 real changes made)
(0 real changes made)
(10 real changes made, 10 to missing)
(0 real changes made)
(0 real changes made)
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(31 real changes made, 31 to missing)
(0 real changes made)
(0 real changes made)
(9 real changes made, 9 to missing)
(0 real changes made)
(0 real changes made)
(51 real changes made, 51 to missing)
(0 real changes made)
(0 real changes made)
(10 real changes made, 10 to missing)
(0 real changes made)
(0 real changes made)
(33 real changes made, 33 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(11 real changes made, 11 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1012 changes made)

. replace educ=. if educ==9
(5 real changes made, 5 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. recode race (3=7)
(race: 51 changes made)

. replace race=.d if race==4
(1 real change made, 1 to missing)

. replace race=.r if race==5
(4 real changes made, 4 to missing)

. label values race racelabels

. replace weight = weight/100
(1012 real changes made)

. save gallup1991-03, replace
file gallup1991-03.dta saved

. 
. 
. 
. infix 4 lines weight 1:13-15 sex 1:44-44 state 1:78-79 church 3:29 military 3:30 supc
> ourt 3:31 banks 3:32 schools 3:33 newspapers 3:34 congress 3:35 tv 3:36 labor 3:37 pr
> esidency 3:39 bigbus 3:38 educ 1:47 age 1:45-46 race 1:48-48 using G222019.DAT, clear
(1000 observations read)

. gen date=mdy(10,13,1991)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tv 
> labor presidency bigbus {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(28 real changes made, 28 to missing)
(0 real changes made)
(0 real changes made)
(26 real changes made, 26 to missing)
(0 real changes made)
(0 real changes made)
(42 real changes made, 42 to missing)
(0 real changes made)
(0 real changes made)
(8 real changes made, 8 to missing)
(0 real changes made)
(0 real changes made)
(24 real changes made, 24 to missing)
(0 real changes made)
(0 real changes made)
(17 real changes made, 17 to missing)
(0 real changes made)
(0 real changes made)
(27 real changes made, 27 to missing)
(0 real changes made)
(0 real changes made)
(12 real changes made, 12 to missing)
(0 real changes made)
(0 real changes made)
(42 real changes made, 42 to missing)
(0 real changes made)
(0 real changes made)
(13 real changes made, 13 to missing)
(0 real changes made)
(0 real changes made)
(35 real changes made, 35 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(12 real changes made, 12 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1000 changes made)

. replace educ=. if educ==9
(3 real changes made, 3 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. recode race (3=4) (4=7)
(race: 42 changes made)

. replace race=.d if race==5
(1 real change made, 1 to missing)

. replace race=.r if race==6
(5 real changes made, 5 to missing)

. label values race racelabels

. replace weight = weight/100
(1000 real changes made)

. save gallup1991-10, replace
file gallup1991-10.dta saved

. 
. 
. 
. infix 5 lines weight 1:13-15 sex 1:44-44 state 1:78-79 church 5:23 military 5:24 supc
> ourt 5:25 banks 5:26 schools 5:27 newspapers 5:28 congress 5:29 tvnews 5:31 tv 5:30 l
> abor 5:32 presidency 5:34 police 5:35 medicine 5:36 justice 5:37 bigbus 5:33 educ 1:4
> 7 age 1:45-46 race 1:48-48 using A322052.DAT, clear
(1003 observations read)

. gen date=mdy(3,24,1993)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tvn
> ews tv labor presidency police medicine justice bigbus {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(11 real changes made, 11 to missing)
(0 real changes made)
(0 real changes made)
(9 real changes made, 9 to missing)
(0 real changes made)
(0 real changes made)
(23 real changes made, 23 to missing)
(0 real changes made)
(0 real changes made)
(4 real changes made, 4 to missing)
(0 real changes made)
(0 real changes made)
(10 real changes made, 10 to missing)
(0 real changes made)
(0 real changes made)
(13 real changes made, 13 to missing)
(0 real changes made)
(0 real changes made)
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)
(2 real changes made, 2 to missing)
(0 real changes made)
(0 real changes made)
(9 real changes made, 9 to missing)
(0 real changes made)
(0 real changes made)
(32 real changes made, 32 to missing)
(0 real changes made)
(0 real changes made)
(20 real changes made, 20 to missing)
(0 real changes made)
(0 real changes made)
(6 real changes made, 6 to missing)
(0 real changes made)
(0 real changes made)
(6 real changes made, 6 to missing)
(0 real changes made)
(0 real changes made)
(11 real changes made, 11 to missing)
(0 real changes made)
(0 real changes made)
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(4 real changes made, 4 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1003 changes made)

. replace educ=. if educ==9
(2 real changes made, 2 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. recode race (3=4) (4=7)
(race: 46 changes made)

. replace race=.d if race==5
(0 real changes made)

. replace race=.r if race==6
(5 real changes made, 5 to missing)

. label values race racelabels

. replace weight = weight/100
(1003 real changes made)

. save gallup1993-03, replace
file gallup1993-03.dta saved

. 
. 
. 
. infix 6 lines weight 1:13-15 sex 1:44-44 state 1:78-79 church 5:40 military 5:41 supc
> ourt 5:42 banks 5:43 schools 5:44 newspapers 5:45 congress 5:46 tvnews 5:47 labor 5:4
> 8 presidency 5:50 police 5:51 medicine 5:52 justice 5:53 bigbus 5:49 educ 1:47 age 1:
> 45-46 race 6:76-77 using A422039.DAT, clear
(1036 observations read)

. gen date=mdy(3,27,1994)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tvn
> ews labor presidency police medicine justice bigbus {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)
(23 real changes made, 23 to missing)
(0 real changes made)
(0 real changes made)
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(11 real changes made, 11 to missing)
(0 real changes made)
(0 real changes made)
(16 real changes made, 16 to missing)
(0 real changes made)
(0 real changes made)
(8 real changes made, 8 to missing)
(0 real changes made)
(0 real changes made)
(20 real changes made, 20 to missing)
(0 real changes made)
(0 real changes made)
(10 real changes made, 10 to missing)
(0 real changes made)
(0 real changes made)
(4 real changes made, 4 to missing)
(0 real changes made)
(0 real changes made)
(6 real changes made, 6 to missing)
(0 real changes made)
(0 real changes made)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(21 real changes made, 21 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(4 real changes made, 4 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1036 changes made)

. replace educ=. if educ==9
(3 real changes made, 3 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(0 real changes made)

. replace race=.r if race==3
(3 real changes made, 3 to missing)

. recode race (1=7) (6=1) (7=2) (8=3)
(race: 1033 changes made)

. label values race racelabels

. replace weight = weight/100
(1036 real changes made)

. save gallup1994-03, replace
file gallup1994-03.dta saved

. 
. 
. 
. infix 7 lines weight 1:13-15 sex 1:44-44 state 1:78-79 church 5:23 military 5:24 supc
> ourt 5:25 banks 5:26 schools 5:27 newspapers 5:28 congress 5:29 tvnews 5:30 labor 5:3
> 1 presidency 5:33 police 5:34 medicine 5:35 justice 5:36 bigbus 5:32 educ 1:47 age 1:
> 45-46 race 6:76-77 using A018A.DAT, clear
(1008 observations read)

. gen date=mdy(4,24,1995)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tvn
> ews labor presidency police medicine justice bigbus {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(27 real changes made, 27 to missing)
(0 real changes made)
(0 real changes made)
(13 real changes made, 13 to missing)
(0 real changes made)
(0 real changes made)
(23 real changes made, 23 to missing)
(0 real changes made)
(0 real changes made)
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)
(20 real changes made, 20 to missing)
(0 real changes made)
(0 real changes made)
(10 real changes made, 10 to missing)
(0 real changes made)
(0 real changes made)
(16 real changes made, 16 to missing)
(0 real changes made)
(0 real changes made)
(10 real changes made, 10 to missing)
(0 real changes made)
(0 real changes made)
(31 real changes made, 31 to missing)
(0 real changes made)
(0 real changes made)
(10 real changes made, 10 to missing)
(0 real changes made)
(0 real changes made)
(8 real changes made, 8 to missing)
(0 real changes made)
(0 real changes made)
(8 real changes made, 8 to missing)
(0 real changes made)
(0 real changes made)
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)
(22 real changes made, 22 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(6 real changes made, 6 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1008 changes made)

. replace educ=. if educ==9
(6 real changes made, 6 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(5 real changes made, 5 to missing)

. replace race=.r if race==3
(5 real changes made, 5 to missing)

. recode race (1=7) (6=1) (7=2) (8=3)
(race: 998 changes made)

. label values race racelabels

. replace weight = weight/100
(1008 real changes made)

. save gallup1995-04, replace
file gallup1995-04.dta saved

. 
. 
. 
. infix 9 lines weight 1:13-15 sex 1:44-44 state 1:78-79 church 5:27 military 5:28 supc
> ourt 5:29 banks 5:30 schools 5:31 newspapers 5:32 congress 5:33 tvnews 5:34 labor 5:3
> 5 presidency 5:37 police 5:38 medicine 5:39 justice 5:40 bigbus 5:36 educ 1:47 age 1:
> 45-46 race 6:76-77 using A9605012.DAT, clear
(1019 observations read)

. gen date=mdy(5,29,1996)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tvn
> ews labor presidency police medicine justice bigbus {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(12 real changes made, 12 to missing)
(0 real changes made)
(0 real changes made)
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)
(6 real changes made, 6 to missing)
(0 real changes made)
(0 real changes made)
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)
(5 real changes made, 5 to missing)
(0 real changes made)
(0 real changes made)
(32 real changes made, 32 to missing)
(0 real changes made)
(0 real changes made)
(12 real changes made, 12 to missing)
(0 real changes made)
(0 real changes made)
(2 real changes made, 2 to missing)
(0 real changes made)
(0 real changes made)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(9 real changes made, 9 to missing)
(0 real changes made)
(0 real changes made)
(18 real changes made, 18 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(6 real changes made, 6 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1019 changes made)

. replace educ=. if educ==9
(5 real changes made, 5 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(4 real changes made, 4 to missing)

. replace race=.r if race==3
(7 real changes made, 7 to missing)

. recode race (1=7) (6=1) (7=2) (8=3)
(race: 1008 changes made)

. label values race racelabels

. replace weight = weight/100
(1019 real changes made)

. save gallup1996-05, replace
file gallup1996-05.dta saved

. 
. 
. 
. infix 7 lines weight 1:13-15 sex 1:44-44 state 1:78-79 church 6:25 military 6:26 supc
> ourt 6:27 banks 6:28 schools 6:29 newspapers 6:30 congress 6:31 tvnews 6:32 labor 6:3
> 3 presidency 6:34 police 6:35 medicine 6:36 justice 6:37 bigbus 6:38 smallbus 6:39 ed
> uc 1:47 age 1:45-46 race 5:14-15 using g9707017.DAT, clear
(1004 observations read)

. gen date=mdy(7,27,1997)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tvn
> ews labor presidency police medicine justice bigbus smallbus {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(24 real changes made, 24 to missing)
(0 real changes made)
(0 real changes made)
(13 real changes made, 13 to missing)
(0 real changes made)
(0 real changes made)
(21 real changes made, 21 to missing)
(0 real changes made)
(0 real changes made)
(9 real changes made, 9 to missing)
(0 real changes made)
(0 real changes made)
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(4 real changes made, 4 to missing)
(0 real changes made)
(0 real changes made)
(11 real changes made, 11 to missing)
(0 real changes made)
(0 real changes made)
(5 real changes made, 5 to missing)
(0 real changes made)
(0 real changes made)
(45 real changes made, 45 to missing)
(0 real changes made)
(0 real changes made)
(11 real changes made, 11 to missing)
(0 real changes made)
(0 real changes made)
(2 real changes made, 2 to missing)
(0 real changes made)
(0 real changes made)
(9 real changes made, 9 to missing)
(0 real changes made)
(0 real changes made)
(11 real changes made, 11 to missing)
(0 real changes made)
(0 real changes made)
(13 real changes made, 13 to missing)
(0 real changes made)
(0 real changes made)
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(7 real changes made, 7 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1004 changes made)

. replace educ=. if educ==9
(2 real changes made, 2 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(2 real changes made, 2 to missing)

. replace race=.r if race==3
(7 real changes made, 7 to missing)

. recode race (1=7) (6=1) (7=2) (8=3)
(race: 995 changes made)

. label values race racelabels

. replace weight = weight/100
(1004 real changes made)

. save gallup1997-07, replace
file gallup1997-07.dta saved

. 
. 
. 
. infix 7 lines weight 1:13-15 sex 1:44-44 state 1:78-79 church 6:28 military 6:29 supc
> ourt 6:30 banks 6:31 schools 6:32 newspapers 6:33 congress 6:34 tvnews 6:35 labor 6:3
> 6 presidency 6:37 police 6:38 medicine 6:39 justice 6:40 bigbus 6:41 smallbus 6:42 ed
> uc 1:47 age 1:45-46 race 5:14-15 using A9806017.DAT, clear
(1003 observations read)

. gen date=mdy(6,7,1998)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tvn
> ews labor presidency police medicine justice bigbus smallbus {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(21 real changes made, 21 to missing)
(0 real changes made)
(0 real changes made)
(16 real changes made, 16 to missing)
(0 real changes made)
(0 real changes made)
(27 real changes made, 27 to missing)
(0 real changes made)
(0 real changes made)
(13 real changes made, 13 to missing)
(0 real changes made)
(0 real changes made)
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(19 real changes made, 19 to missing)
(0 real changes made)
(0 real changes made)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(37 real changes made, 37 to missing)
(0 real changes made)
(0 real changes made)
(12 real changes made, 12 to missing)
(0 real changes made)
(0 real changes made)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(12 real changes made, 12 to missing)
(0 real changes made)
(0 real changes made)
(11 real changes made, 11 to missing)
(0 real changes made)
(0 real changes made)
(10 real changes made, 10 to missing)
(0 real changes made)
(0 real changes made)
(3 real changes made, 3 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(3 real changes made, 3 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1003 changes made)

. replace educ=. if educ==9
(3 real changes made, 3 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(2 real changes made, 2 to missing)

. replace race=.r if race==3
(4 real changes made, 4 to missing)

. recode race (1=7) (6=1) (7=2) (8=3)
(race: 997 changes made)

. label values race racelabels

. replace weight = weight/100
(1003 real changes made)

. save gallup1998-06, replace
file gallup1998-06.dta saved

. 
. 
. 
. infix 7 lines weight 1:13-15 sex 1:44-44 state 1:78-79 church 6:47 schools 6:48 labor
>  6:53 justice 6:49 bigbus 6:54 educ 1:47 age 1:45-46 race 5:14-15 using A9807019.DAT,
>  clear
(1035 observations read)

. gen date=mdy(7,8,1998)

. label values educ education

. label values state states

. foreach var of varlist church schools labor justice bigbus {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(23 real changes made, 23 to missing)
(0 real changes made)
(0 real changes made)
(12 real changes made, 12 to missing)
(0 real changes made)
(0 real changes made)
(35 real changes made, 35 to missing)
(0 real changes made)
(0 real changes made)
(5 real changes made, 5 to missing)
(0 real changes made)
(0 real changes made)
(31 real changes made, 31 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(5 real changes made, 5 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1035 changes made)

. replace educ=. if educ==9
(5 real changes made, 5 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(0 real changes made)

. replace race=.r if race==3
(11 real changes made, 11 to missing)

. recode race (1=7) (6=1) (7=2) (8=3)
(race: 1024 changes made)

. label values race racelabels

. replace weight = weight/100
(1035 real changes made)

. save gallup1998-07, replace
file gallup1998-07.dta saved

. 
. 
. 
. infix 7 lines weight 1:13-15 sex 1:44-44 state 1:78-79 church 6:38 military 6:39 supc
> ourt 6:40 banks 6:41 schools 6:42 newspapers 6:43 congress 6:44 tvnews 6:45 labor 6:4
> 6 presidency 6:47 police 6:48 medicine 6:49 justice 6:50 bigbus 6:51 hmos 6:54 educ 1
> :47 age 1:45-46 race 5:14-15 using A9906032.DAT, clear
(1016 observations read)

. gen date=mdy(6,27,1999)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tvn
> ews labor presidency police medicine justice bigbus hmos {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(13 real changes made, 13 to missing)
(0 real changes made)
(0 real changes made)
(5 real changes made, 5 to missing)
(0 real changes made)
(0 real changes made)
(18 real changes made, 18 to missing)
(0 real changes made)
(0 real changes made)
(9 real changes made, 9 to missing)
(0 real changes made)
(0 real changes made)
(6 real changes made, 6 to missing)
(0 real changes made)
(0 real changes made)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(9 real changes made, 9 to missing)
(0 real changes made)
(0 real changes made)
(3 real changes made, 3 to missing)
(0 real changes made)
(0 real changes made)
(21 real changes made, 21 to missing)
(0 real changes made)
(0 real changes made)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(0 real changes made)
(0 real changes made)
(0 real changes made)
(6 real changes made, 6 to missing)
(0 real changes made)
(0 real changes made)
(2 real changes made, 2 to missing)
(0 real changes made)
(0 real changes made)
(11 real changes made, 11 to missing)
(0 real changes made)
(0 real changes made)
(26 real changes made, 26 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(14 real changes made, 14 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1016 changes made)

. replace educ=. if educ==9
(8 real changes made, 8 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(0 real changes made)

. replace race=.r if race==3
(13 real changes made, 13 to missing)

. recode race (1=7) (6=1) (7=2) (8=3)
(race: 1003 changes made)

. label values race racelabels

. replace weight = weight/100
(1016 real changes made)

. save gallup1999-06, replace
file gallup1999-06.dta saved

. 
. 
. 
. infix 1 lines weight 1:7-10 sex 1:57-57 state 1:14-15 military 1:96 supcourt 1:97 con
> gress 1:98 tvnews 1:100 presidency 1:99 educ 1:60 age 1:58-59 race 1:63-64 using 56na
> t.dat, clear
(1011 observations read)

. gen date=mdy(12,17,2000)

. label values educ education

. label values state states

. foreach var of varlist military supcourt congress tvnews presidency {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(6 real changes made, 6 to missing)
(0 real changes made)
(0 real changes made)
(5 real changes made, 5 to missing)
(0 real changes made)
(0 real changes made)
(13 real changes made, 13 to missing)
(0 real changes made)
(0 real changes made)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(12 real changes made, 12 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(11 real changes made, 11 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1011 changes made)

. replace educ=. if educ==9
(8 real changes made, 8 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(0 real changes made)

. replace race=.r if race==3
(9 real changes made, 9 to missing)

. recode race (1=7) (6=1) (7=2) (8=3) (9=4)
(race: 1002 changes made)

. label values race racelabels

. 
. save gallup2000-12, replace
file gallup2000-12.dta saved

. 
. 
. 
. infix 1 lines weight 1:7-10 sex 1:43-43 state 1:13-14 church 1:84 military 1:85 supco
> urt 1:86 banks 1:87 schools 1:88 newspapers 1:89 congress 1:90 tvnews 1:91 labor 1:92
>  presidency 1:93 police 1:94 medicine 1:95 justice 1:96 bigbus 1:97 hmos 1:98 educ 1:
> 49 age 1:47-48 race 1:52-53 using g200025.dat, clear
(1021 observations read)

. gen date=mdy(6,25,2000)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tvn
> ews labor presidency police medicine justice bigbus hmos {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(16 real changes made, 16 to missing)
(0 real changes made)
(0 real changes made)
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(27 real changes made, 27 to missing)
(0 real changes made)
(0 real changes made)
(11 real changes made, 11 to missing)
(0 real changes made)
(0 real changes made)
(12 real changes made, 12 to missing)
(0 real changes made)
(0 real changes made)
(10 real changes made, 10 to missing)
(0 real changes made)
(0 real changes made)
(21 real changes made, 21 to missing)
(0 real changes made)
(0 real changes made)
(13 real changes made, 13 to missing)
(0 real changes made)
(0 real changes made)
(56 real changes made, 56 to missing)
(0 real changes made)
(0 real changes made)
(10 real changes made, 10 to missing)
(0 real changes made)
(0 real changes made)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(8 real changes made, 8 to missing)
(0 real changes made)
(0 real changes made)
(13 real changes made, 13 to missing)
(0 real changes made)
(0 real changes made)
(23 real changes made, 23 to missing)
(0 real changes made)
(0 real changes made)
(39 real changes made, 39 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(6 real changes made, 6 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1021 changes made)

. replace educ=. if educ==9
(3 real changes made, 3 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(4 real changes made, 4 to missing)

. replace race=.r if race==3
(9 real changes made, 9 to missing)

. recode race (1=7) (6=1) (7=2) (8=3)
(race: 1008 changes made)

. label values race racelabels

. 
. save gallup2000-06, replace
file gallup2000-06.dta saved

. 
. 
. 
. infix 1 lines weight 1:7-10 sex 1:56-56 state 1:13-14 church 1:92 military 1:93 supco
> urt 1:94 banks 1:95 schools 1:96 newspapers 1:97 congress 1:98 tvnews 1:99 labor 1:10
> 0 presidency 1:101 police 1:102 medicine 1:103 bigbus 1:104 hmos 1:105 educ 1:59 age 
> 1:57-58 race 1:62-63 using a200121.dat, clear
(1011 observations read)

. gen date=mdy(6,10,2001)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tvn
> ews labor presidency police medicine bigbus hmos {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(12 real changes made, 12 to missing)
(0 real changes made)
(0 real changes made)
(17 real changes made, 17 to missing)
(0 real changes made)
(0 real changes made)
(24 real changes made, 24 to missing)
(0 real changes made)
(0 real changes made)
(4 real changes made, 4 to missing)
(0 real changes made)
(0 real changes made)
(9 real changes made, 9 to missing)
(0 real changes made)
(0 real changes made)
(12 real changes made, 12 to missing)
(0 real changes made)
(0 real changes made)
(21 real changes made, 21 to missing)
(0 real changes made)
(0 real changes made)
(8 real changes made, 8 to missing)
(0 real changes made)
(0 real changes made)
(42 real changes made, 42 to missing)
(0 real changes made)
(0 real changes made)
(11 real changes made, 11 to missing)
(0 real changes made)
(0 real changes made)
(3 real changes made, 3 to missing)
(0 real changes made)
(0 real changes made)
(8 real changes made, 8 to missing)
(0 real changes made)
(0 real changes made)
(22 real changes made, 22 to missing)
(0 real changes made)
(0 real changes made)
(36 real changes made, 36 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(14 real changes made, 14 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1011 changes made)

. replace educ=. if educ==9
(3 real changes made, 3 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(1 real change made, 1 to missing)

. replace race=.r if race==3
(10 real changes made, 10 to missing)

. recode race (1=7) (6=1) (7=2) (8=3) (9=4)
(race: 1000 changes made)

. label values race racelabels

. 
. save gallup2001-06, replace
file gallup2001-06.dta saved

. 
. 
. 
. infix 1 lines weight 1:7-10 sex 1:66-66 state 1:13-14 church 1:105 military 1:106 sup
> court 1:107 banks 1:108 schools 1:109 newspapers 1:110 congress 1:111 tvnews 1:112 la
> bor 1:113 presidency 1:114 police 1:115 medicine 1:116 justice 1:117 bigbus 1:118 hmo
> s 1:119 educ 1:69 age 1:67-68 race 1:72-73 using 2002_06_21x.dat, clear
(1020 observations read)

. gen date=mdy(6,23,2002)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tvn
> ews labor presidency police medicine justice bigbus hmos {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(11 real changes made, 11 to missing)
(0 real changes made)
(6 real changes made, 6 to missing)
(3 real changes made, 3 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(17 real changes made, 17 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(6 real changes made, 6 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(11 real changes made, 11 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(9 real changes made, 9 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(10 real changes made, 10 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(4 real changes made, 4 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(31 real changes made, 31 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(5 real changes made, 5 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(1 real change made, 1 to missing)
(0 real changes made)
(0 real changes made)
(5 real changes made, 5 to missing)
(0 real changes made)
(0 real changes made)
(7 real changes made, 7 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(9 real changes made, 9 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(34 real changes made, 34 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(15 real changes made, 15 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1020 changes made)

. replace educ=. if educ==9
(7 real changes made, 7 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(0 real changes made)

. replace race=.r if race==3
(8 real changes made, 8 to missing)

. recode race (1=7) (6=1) (7=2) (8=3) (9=4)
(race: 1012 changes made)

. label values race racelabels

. 
. save gallup2002-06, replace
file gallup2002-06.dta saved

. 
. 
. 
. infix 1 lines weight 1:7-10 sex 1:68-68 state 1:13-14 church 1:105 military 1:106 sup
> court 1:107 banks 1:108 schools 1:109 newspapers 1:110 congress 1:111 tvnews 1:112 la
> bor 1:113 presidency 1:114 police 1:115 medicine 1:116 justice 1:117 bigbus 1:118 hmo
> s 1:119 educ 1:71 age 1:69-70 race 1:74-75 using 2003_06_09x.dat, clear
(1029 observations read)

. gen date=mdy(6,10,2003)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tvn
> ews labor presidency police medicine justice bigbus hmos {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(10 real changes made, 10 to missing)
(0 real changes made)
(5 real changes made, 5 to missing)
(3 real changes made, 3 to missing)
(0 real changes made)
(0 real changes made)
(15 real changes made, 15 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(1 real change made, 1 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(10 real changes made, 10 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(9 real changes made, 9 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(9 real changes made, 9 to missing)
(0 real changes made)
(0 real changes made)
(3 real changes made, 3 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(30 real changes made, 30 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(9 real changes made, 9 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(2 real changes made, 2 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(2 real changes made, 2 to missing)
(0 real changes made)
(0 real changes made)
(2 real changes made, 2 to missing)
(0 real changes made)
(0 real changes made)
(11 real changes made, 11 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(21 real changes made, 21 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)

. replace age=. if age==0
(9 real changes made, 9 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1029 changes made)

. replace educ=. if educ==9
(3 real changes made, 3 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(0 real changes made)

. replace race=.r if race==3
(5 real changes made, 5 to missing)

. recode race (1=7) (6=1) (7=2) (8=3) (9=4)
(race: 1024 changes made)

. label values race racelabels

. 
. save gallup2003-06, replace
file gallup2003-06.dta saved

. 
. 
. 
. infix 1 lines weight 1:7-10 sex 1:75-75 state 1:13-14 church 1:121 military 1:122 sup
> court 1:123 banks 1:124 schools 1:125 newspapers 1:126 congress 1:127 tvnews 1:128 la
> bor 1:129 presidency 1:130 police 1:131 medicine 1:132 justice 1:133 bigbus 1:134 hmo
> s 1:135 educ 1:78 age 1:76-77 race 1:81-82 using g200418.dat, clear
(1002 observations read)

. gen date=mdy(5,23,2004)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tvn
> ews labor presidency police medicine justice bigbus hmos {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(11 real changes made, 11 to missing)
(0 real changes made)
(5 real changes made, 5 to missing)
(4 real changes made, 4 to missing)
(0 real changes made)
(4 real changes made, 4 to missing)
(11 real changes made, 11 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(6 real changes made, 6 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(11 real changes made, 11 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(4 real changes made, 4 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(8 real changes made, 8 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(6 real changes made, 6 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(20 real changes made, 20 to missing)
(0 real changes made)
(5 real changes made, 5 to missing)
(9 real changes made, 9 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(0 real changes made)
(0 real changes made)
(1 real change made, 1 to missing)
(8 real changes made, 8 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(8 real changes made, 8 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(7 real changes made, 7 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(26 real changes made, 26 to missing)
(0 real changes made)
(6 real changes made, 6 to missing)

. replace age=. if age==0
(14 real changes made, 14 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1002 changes made)

. replace educ=. if educ==9
(4 real changes made, 4 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(3 real changes made, 3 to missing)

. replace race=.r if race==3
(13 real changes made, 13 to missing)

. recode race (1=7) (6=1) (7=2) (8=3) (9=4)
(race: 986 changes made)

. label values race racelabels

. 
. save gallup2004-05, replace
file gallup2004-05.dta saved

. 
. 
. 
. infix 1 lines weight 1:7-10 sex 1:75-75 state 1:13-14 church 1:118 military 1:119 sup
> court 1:120 banks 1:121 schools 1:122 newspapers 1:123 congress 1:124 tvnews 1:125 la
> bor 1:126 presidency 1:127 police 1:128 medicine 1:129 justice 1:130 bigbus 1:131 hmo
> s 1:132 educ 1:78 age 1:76-77 race 1:81-82 using g200524.dat, clear
(1004 observations read)

. gen date=mdy(5,26,2005)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tvn
> ews labor presidency police medicine justice bigbus hmos {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(8 real changes made, 8 to missing)
(0 real changes made)
(5 real changes made, 5 to missing)
(1 real change made, 1 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(10 real changes made, 10 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(1 real change made, 1 to missing)
(0 real changes made)
(0 real changes made)
(8 real changes made, 8 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(4 real changes made, 4 to missing)
(0 real changes made)
(0 real changes made)
(6 real changes made, 6 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(6 real changes made, 6 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(32 real changes made, 32 to missing)
(0 real changes made)
(4 real changes made, 4 to missing)
(5 real changes made, 5 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(0 real changes made)
(0 real changes made)
(0 real changes made)
(6 real changes made, 6 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(14 real changes made, 14 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(25 real changes made, 25 to missing)
(0 real changes made)
(1 real change made, 1 to missing)

. replace age=. if age==0
(11 real changes made, 11 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1004 changes made)

. replace educ=. if educ==9
(3 real changes made, 3 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(1 real change made, 1 to missing)

. replace race=.r if race==3
(6 real changes made, 6 to missing)

. recode race (1=7) (6=1) (7=2) (8=3) (9=4) (10=5)
(race: 971 changes made)

. label values race racelabels

. 
. save gallup2005-05, replace
file gallup2005-05.dta saved

. 
. 
. 
. infix 1 lines weight 1:9-12 sex 1:77-77 state 1:15-16 church 1:139 military 1:140 sup
> court 1:141 banks 1:142 schools 1:143 newspapers 1:144 congress 1:145 tvnews 1:146 la
> bor 1:147 presidency 1:148 police 1:149 medicine 1:150 justice 1:151 bigbus 1:152 hmo
> s 1:153 educ 1:80 age 1:78-79 race 1:83-84 using g200621.dat, clear
(1002 observations read)

. gen date=mdy(6,4,2006)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tvn
> ews labor presidency police medicine justice bigbus hmos {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(11 real changes made, 11 to missing)
(0 real changes made)
(7 real changes made, 7 to missing)
(8 real changes made, 8 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(22 real changes made, 22 to missing)
(0 real changes made)
(4 real changes made, 4 to missing)
(13 real changes made, 13 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(19 real changes made, 19 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(12 real changes made, 12 to missing)
(0 real changes made)
(5 real changes made, 5 to missing)
(17 real changes made, 17 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(57 real changes made, 57 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(8 real changes made, 8 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(6 real changes made, 6 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(12 real changes made, 12 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(10 real changes made, 10 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(20 real changes made, 20 to missing)
(0 real changes made)
(5 real changes made, 5 to missing)
(51 real changes made, 51 to missing)
(0 real changes made)
(4 real changes made, 4 to missing)

. replace age=. if age==0
(12 real changes made, 12 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1002 changes made)

. replace educ=. if educ==9
(5 real changes made, 5 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(0 real changes made)

. replace race=.r if race==3
(6 real changes made, 6 to missing)

. recode race (1=7) (6=1) (7=2) (8=3) (9=4)
(race: 969 changes made)

. label values race racelabels

. 
. save gallup2006-06, replace
file gallup2006-06.dta saved

. 
. 
. 
. infix 1 lines weight 1:5-8 sex 1:122-122 state 1:11-12 church 1:57 military 1:58 supc
> ourt 1:59 banks 1:60 schools 1:61 newspapers 1:62 congress 1:63 tvnews 1:64 labor 1:6
> 5 presidency 1:66 police 1:67 medicine 1:68 justice 1:69 bigbus 1:70 smallbus 1:71 hm
> os 1:72 educ 1:125 age 1:123-124 race 1:128-129 using a200721.dat, clear
(1007 observations read)

. gen date=mdy(6,14,2007)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tvn
> ews labor presidency police medicine justice bigbus smallbus hmos {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(16 real changes made, 16 to missing)
(0 real changes made)
(5 real changes made, 5 to missing)
(2 real changes made, 2 to missing)
(0 real changes made)
(4 real changes made, 4 to missing)
(21 real changes made, 21 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(5 real changes made, 5 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(9 real changes made, 9 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(9 real changes made, 9 to missing)
(0 real changes made)
(0 real changes made)
(3 real changes made, 3 to missing)
(0 real changes made)
(5 real changes made, 5 to missing)
(35 real changes made, 35 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(4 real changes made, 4 to missing)
(0 real changes made)
(5 real changes made, 5 to missing)
(3 real changes made, 3 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(5 real changes made, 5 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(9 real changes made, 9 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(17 real changes made, 17 to missing)
(0 real changes made)
(0 real changes made)
(12 real changes made, 12 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(44 real changes made, 44 to missing)
(0 real changes made)
(1 real change made, 1 to missing)

. replace age=. if age==0
(19 real changes made, 19 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1007 changes made)

. replace educ=. if educ==9
(9 real changes made, 9 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(2 real changes made, 2 to missing)

. replace race=.r if race==3
(4 real changes made, 4 to missing)

. recode race (1=7) (6=1) (7=2) (8=3) (9=4) (10=5)
(race: 971 changes made)

. label values race racelabels

. 
. save gallup2007-06, replace
file gallup2007-06.dta saved

. 
. 
. 
. infix 1 lines weight 1:7-10 sex 1:69-69 state 1:11-12 church 1:153 military 1:154 sup
> court 1:155 banks 1:156 schools 1:157 newspapers 1:158 congress 1:159 tvnews 1:160 la
> bor 1:161 presidency 1:162 police 1:163 medicine 1:164 justice 1:165 bigbus 1:166 sma
> llbus 1:167 hmos 1:168 educ 1:72 age 1:70-71 white 1:75 black 1:76 other1 1:77-78 oth
> er2 1:79-80 using g200824.dat, clear
(822 observations read)

. gen date=mdy(6,12,2008)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tvn
> ews labor presidency police medicine justice bigbus smallbus hmos {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(19 real changes made, 19 to missing)
(0 real changes made)
(8 real changes made, 8 to missing)
(8 real changes made, 8 to missing)
(0 real changes made)
(7 real changes made, 7 to missing)
(43 real changes made, 43 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(11 real changes made, 11 to missing)
(0 real changes made)
(0 real changes made)
(14 real changes made, 14 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(13 real changes made, 13 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(16 real changes made, 16 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(9 real changes made, 9 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(43 real changes made, 43 to missing)
(0 real changes made)
(0 real changes made)
(8 real changes made, 8 to missing)
(0 real changes made)
(5 real changes made, 5 to missing)
(5 real changes made, 5 to missing)
(0 real changes made)
(0 real changes made)
(6 real changes made, 6 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(16 real changes made, 16 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(12 real changes made, 12 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(16 real changes made, 16 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(38 real changes made, 38 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)

. replace age=. if age==0
(10 real changes made, 10 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 822 changes made)

. replace educ=. if educ==9
(4 real changes made, 4 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. gen race=1 if white==1
(121 missing values generated)

. replace race=2 if black==1 & race==.
(65 real changes made)

. replace race=3 if race==. & (other1==20 | other2==20)
(11 real changes made)

. replace race=4 if race==. & (other1==6 | other2==6)
(20 real changes made)

. replace race=5 if race==. & (other1==7 | other2==7)
(4 real changes made)

. replace race=6 if race==. & (other1==8 | other2==8)
(0 real changes made)

. replace race=7 if race==. & (other1==1 | other2==1)
(0 real changes made)

. drop white black other1 other2

. label values race racelabels

. 
. save gallup2008-06, replace
file gallup2008-06.dta saved

. 
. 
. 
. infix 1 lines weight 1:7-10 sex 1:67-67 state 1:11-12 church 1:134 military 1:135 sup
> court 1:136 banks 1:137 schools 1:138 newspapers 1:139 congress 1:140 tvnews 1:141 la
> bor 1:142 presidency 1:143 police 1:144 medicine 1:145 justice 1:146 bigbus 1:147 sma
> llbus 1:148 hmos 1:149 educ 1:70 age 1:68-69 white 1:73 black 1:74 other1 1:75-76 oth
> er2 1:77-78 using g200911.dat, clear
(1011 observations read)

. gen date=mdy(6,17,2009)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tvn
> ews labor presidency police medicine justice bigbus smallbus hmos {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(9 real changes made, 9 to missing)
(0 real changes made)
(6 real changes made, 6 to missing)
(7 real changes made, 7 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(25 real changes made, 25 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(4 real changes made, 4 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(10 real changes made, 10 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(10 real changes made, 10 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(15 real changes made, 15 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(26 real changes made, 26 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(7 real changes made, 7 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(3 real changes made, 3 to missing)
(0 real changes made)
(0 real changes made)
(3 real changes made, 3 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(9 real changes made, 9 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(14 real changes made, 14 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(36 real changes made, 36 to missing)
(0 real changes made)
(1 real change made, 1 to missing)

. replace age=. if age==0
(15 real changes made, 15 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1011 changes made)

. replace educ=. if educ==9
(4 real changes made, 4 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. gen race=1 if white==1
(118 missing values generated)

. replace race=2 if black==1 & race==.
(70 real changes made)

. replace race=3 if race==. & (other1==20 | other2==20)
(17 real changes made)

. replace race=4 if race==. & (other1==6 | other2==6)
(9 real changes made)

. replace race=5 if race==. & (other1==7 | other2==7)
(5 real changes made)

. replace race=6 if race==. & (other1==8 | other2==8)
(1 real change made)

. replace race=7 if race==. & (other1==1 | other2==1)
(0 real changes made)

. drop white black other1 other2

. label values race racelabels

. 
. save gallup2009-06, replace
file gallup2009-06.dta saved

. 
. 
. 
. infix 1 lines weight 1:7-10 sex 1:67-67 state 1:11-12 church 1:134 military 1:135 sup
> court 1:136 banks 1:137 schools 1:138 newspapers 1:139 congress 1:140 tvnews 1:141 la
> bor 1:142 presidency 1:143 police 1:144 medicine 1:145 justice 1:146 bigbus 1:147 sma
> llbus 1:148 hmos 1:149 educ 1:70 age 1:68-69 white 1:73 black 1:74 other1 1:75-76 oth
> er2 1:77-78 using g201009.dat, clear
(1020 observations read)

. gen date=mdy(7,11,2010)

. label values educ education

. label values state states

. foreach var of varlist church military supcourt banks schools newspapers congress tvn
> ews labor presidency police medicine justice bigbus smallbus hmos {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.d if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(12 real changes made, 12 to missing)
(0 real changes made)
(10 real changes made, 10 to missing)
(6 real changes made, 6 to missing)
(0 real changes made)
(7 real changes made, 7 to missing)
(19 real changes made, 19 to missing)
(0 real changes made)
(7 real changes made, 7 to missing)
(8 real changes made, 8 to missing)
(0 real changes made)
(7 real changes made, 7 to missing)
(14 real changes made, 14 to missing)
(0 real changes made)
(7 real changes made, 7 to missing)
(13 real changes made, 13 to missing)
(0 real changes made)
(4 real changes made, 4 to missing)
(11 real changes made, 11 to missing)
(0 real changes made)
(6 real changes made, 6 to missing)
(10 real changes made, 10 to missing)
(0 real changes made)
(5 real changes made, 5 to missing)
(30 real changes made, 30 to missing)
(0 real changes made)
(7 real changes made, 7 to missing)
(2 real changes made, 2 to missing)
(0 real changes made)
(10 real changes made, 10 to missing)
(4 real changes made, 4 to missing)
(0 real changes made)
(5 real changes made, 5 to missing)
(6 real changes made, 6 to missing)
(0 real changes made)
(7 real changes made, 7 to missing)
(12 real changes made, 12 to missing)
(0 real changes made)
(4 real changes made, 4 to missing)
(7 real changes made, 7 to missing)
(0 real changes made)
(6 real changes made, 6 to missing)
(11 real changes made, 11 to missing)
(0 real changes made)
(4 real changes made, 4 to missing)
(53 real changes made, 53 to missing)
(0 real changes made)
(8 real changes made, 8 to missing)

. replace age=. if age==0
(22 real changes made, 22 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1020 changes made)

. replace educ=. if educ==9
(13 real changes made, 13 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. gen race=1 if white==1
(132 missing values generated)

. replace race=2 if black==1 & race==.
(68 real changes made)

. replace race=3 if race==. & (other1==20 | other2==20)
(11 real changes made)

. replace race=4 if race==. & (other1==6 | other2==6)
(12 real changes made)

. replace race=5 if race==. & (other1==7 | other2==7)
(4 real changes made)

. replace race=6 if race==. & (other1==8 | other2==8)
(2 real changes made)

. replace race=7 if race==. & (other1==1 | other2==1)
(1 real change made)

. drop white black other1 other2

. label values race racelabels

. 
. save gallup2010-07, replace
file gallup2010-07.dta saved

. 
. use gallup2010-07, clear

. gen str20 survey="gallup2010-07"

. for X in any 2009-06 2008-06 2007-06 2006-06 2005-05 2004-05 2003-06 2002-06 2001-06 
> 2000-12 2000-06 1999-06 1998-07 1998-06 1997-07 1996-05 1995-04 1994-03 1993-03 1991-
> 10 1991-03 1990-08 1988-03 1987-07 1986-10 1986-07 1985-05 1984-10 1983-08 1981-11 19
> 79-04 1977-01 1975-06 1973-05: append using "gallupX" \ replace survey="gallupX" if s
> urvey==""

->  append using `"gallup2009-06"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup2009-06" if survey==""
(1011 real changes made)

->  append using `"gallup2008-06"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup2008-06" if survey==""
(822 real changes made)

->  append using `"gallup2007-06"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup2007-06" if survey==""
(1007 real changes made)

->  append using `"gallup2006-06"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup2006-06" if survey==""
(1002 real changes made)

->  append using `"gallup2005-05"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup2005-05" if survey==""
(1004 real changes made)

->  append using `"gallup2004-05"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup2004-05" if survey==""
(1002 real changes made)

->  append using `"gallup2003-06"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup2003-06" if survey==""
(1029 real changes made)

->  append using `"gallup2002-06"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup2002-06" if survey==""
(1020 real changes made)

->  append using `"gallup2001-06"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup2001-06" if survey==""
(1011 real changes made)

->  append using `"gallup2000-12"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup2000-12" if survey==""
(1011 real changes made)

->  append using `"gallup2000-06"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup2000-06" if survey==""
(1021 real changes made)

->  append using `"gallup1999-06"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup1999-06" if survey==""
(1016 real changes made)

->  append using `"gallup1998-07"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup1998-07" if survey==""
(1035 real changes made)

->  append using `"gallup1998-06"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup1998-06" if survey==""
(1003 real changes made)

->  append using `"gallup1997-07"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup1997-07" if survey==""
(1004 real changes made)

->  append using `"gallup1996-05"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup1996-05" if survey==""
(1019 real changes made)

->  append using `"gallup1995-04"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup1995-04" if survey==""
(1008 real changes made)

->  append using `"gallup1994-03"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup1994-03" if survey==""
(1036 real changes made)

->  append using `"gallup1993-03"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup1993-03" if survey==""
(1003 real changes made)

->  append using `"gallup1991-10"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup1991-10" if survey==""
(1000 real changes made)

->  append using `"gallup1991-03"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup1991-03" if survey==""
(1012 real changes made)

->  append using `"gallup1990-08"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup1990-08" if survey==""
(1241 real changes made)

->  append using `"gallup1988-03"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup1988-03" if survey==""
(2775 real changes made)

->  append using `"gallup1987-07"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup1987-07" if survey==""
(1607 real changes made)

->  append using `"gallup1986-10"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup1986-10" if survey==""
(1559 real changes made)

->  append using `"gallup1986-07"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup1986-07" if survey==""
(1539 real changes made)

->  append using `"gallup1985-05"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup1985-05" if survey==""
(1528 real changes made)

->  append using `"gallup1984-10"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup1984-10" if survey==""
(750 real changes made)

->  append using `"gallup1983-08"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup1983-08" if survey==""
(1497 real changes made)

->  append using `"gallup1981-11"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup1981-11" if survey==""
(1508 real changes made)

->  append using `"gallup1979-04"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup1979-04" if survey==""
(1509 real changes made)

->  append using `"gallup1977-01"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup1977-01" if survey==""
(1500 real changes made)

->  append using `"gallup1975-06"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup1975-06" if survey==""
(1626 real changes made)

->  append using `"gallup1973-05"'
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)

->  replace survey="gallup1973-05" if survey==""
(1531 real changes made)

. cd ..
C:\Users\jwolfers\Documents\Justin@Wharton\Trust in Public Institutions\AER Archive\Gal
> lup trust

. save gallup_public_trust.dta, replace
file gallup_public_trust.dta saved

. 
end of do-file

. do "Gallup_trust_clean.do"

. clear *

. set mem 100m

Current memory allocation

                    current                                 memory usage
    settable          value     description                 (1M = 1024k)
    --------------------------------------------------------------------
    set maxvar         5000     max. variables allowed           1.947M
    set memory          100M    max. data space                100.000M
    set matsize         400     max. RHS vars in models          1.254M
                                                            -----------
                                                               103.201M

. use "gallup_public_trust.dta", clear

. 
. * Keep only variables that are in the sample for twenty surveys or more (This was act
> ually how data were collected)
. order church-hmos tv, alphabetic

. 
. global institutions ""

. foreach v of varlist banks-tv  {
  2.         qui tab survey if `v'<.
  3.         if r(r)<20 {
  4.                 di "Dropping `v'"
  5.                 drop `v'
  6.         }
  7.         else {
  8.                 global institutions "$institutions `v'"
  9.         }
 10. }
Dropping hmos
Dropping justice
Dropping medicine
Dropping police
Dropping smallbus
Dropping tv

. 
. * Clean technical variables
. rename date dt

. format dt %d

. gen str2 st=""
(42266 missing values generated)

. levelsof state, local(states)
11 12 13 14 15 16 21 22 23 24 25 26 27 31 32 33 34 41 42 43 44 45 46 47 48 51 52 53 54 
> 55 56 57 58 59 61 62 63 64 71 72 73 74 75 76 77 78 81 82 83 84 85

. qui foreach s of local states {

. drop state

. egen stid=group(st)
(10 missing values generated)

. gen wt=.
(42266 missing values generated)

. levelsof dt, local(dates)
4875 5631 6219 7038 7997 8620 9049 9271 9691 9796 10055 10304 11188 11384 11608 12136 1
> 2504 12897 13298 13722 14037 14068 14422 14786 14961 15136 15514 15866 16214 16582 16
> 956 17331 17695 18065 18454

. qui foreach d of local dates {

. drop weight 

. rename race race_orig

. gen race3=race_orig
(271 missing values generated)

. replace race3=3 if race_orig>2 & race_orig<.
(1507 real changes made)

. label define race3 1 "White" 2 "Black" 3 "Other"

. label values race3 race3

. 
. * Organizing variables
. gen year=year(dt)

. 
. * Rename and relabel and reorder variables
. order survey year dt st wt sex age educ race3 race_orig

. label define trust 0 "No opinion" 1 "None" 2 "Very little" 3 "Some" 4 "Quite a lot" 5
>  "A great deal", replace

. 
. foreach v of global institutions {
  2.         recode `v' (5=1) (4=2) (3=3) (2=4) (1=5) 
  3.         label values `v' trust
  4.         gen high_`v'=(`v'>=4) if `v'<.
  5.         tab dt high_`v' [aw=wt], row nofreq /*check against published Gallup data*
> /
  6.         drop high_`v'
  7.         replace `v'=. if `v'==0 
  8. }
(banks: 18430 changes made)
(11365 missing values generated)

           |      high_banks
        dt |         0          1 |     Total
-----------+----------------------+----------
 09apr1979 |     38.91      61.09 |    100.00 
 23nov1981 |     53.26      46.74 |    100.00 
 08aug1983 |     48.52      51.48 |    100.00 
 10oct1984 |     47.77      52.23 |    100.00 
 20may1985 |     48.38      51.62 |    100.00 
 14jul1986 |     50.22      49.78 |    100.00 
 13jul1987 |     48.59      51.41 |    100.00 
 19aug1990 |     63.69      36.31 |    100.00 
 03mar1991 |     67.83      32.17 |    100.00 
 13oct1991 |     70.05      29.95 |    100.00 
 24mar1993 |     62.51      37.49 |    100.00 
 27mar1994 |     64.85      35.15 |    100.00 
 24apr1995 |     56.32      43.68 |    100.00 
 29may1996 |     55.66      44.34 |    100.00 
 27jul1997 |     58.65      41.35 |    100.00 
 07jun1998 |     58.78      41.22 |    100.00 
 27jun1999 |     56.32      43.68 |    100.00 
 25jun2000 |     53.49      46.51 |    100.00 
 10jun2001 |     56.07      43.93 |    100.00 
 23jun2002 |     51.79      48.21 |    100.00 
 10jun2003 |     49.84      50.16 |    100.00 
 23may2004 |     46.41      53.59 |    100.00 
 26may2005 |     51.00      49.00 |    100.00 
 04jun2006 |     50.41      49.59 |    100.00 
 14jun2007 |     58.39      41.61 |    100.00 
 12jun2008 |     67.80      32.20 |    100.00 
 17jun2009 |     78.01      21.99 |    100.00 
 11jul2010 |     76.98      23.02 |    100.00 
-----------+----------------------+----------
     Total |     56.00      44.00 |    100.00 

(0 real changes made)
(bigbus: 20776 changes made)
(5897 missing values generated)

           |      high_bigbus
        dt |         0          1 |     Total
-----------+----------------------+----------
 07may1973 |     71.54      28.46 |    100.00 
 02jun1975 |     64.36      35.64 |    100.00 
 10jan1977 |     65.33      34.67 |    100.00 
 09apr1979 |     66.85      33.15 |    100.00 
 23nov1981 |     79.22      20.78 |    100.00 
 08aug1983 |     71.20      28.80 |    100.00 
 10oct1984 |     70.08      29.92 |    100.00 
 20may1985 |     67.23      32.77 |    100.00 
 14jul1986 |     70.54      29.46 |    100.00 
 18mar1988 |     76.41      23.59 |    100.00 
 19aug1990 |     74.19      25.81 |    100.00 
 03mar1991 |     73.20      26.80 |    100.00 
 13oct1991 |     76.96      23.04 |    100.00 
 24mar1993 |     77.34      22.66 |    100.00 
 27mar1994 |     73.72      26.28 |    100.00 
 24apr1995 |     78.14      21.86 |    100.00 
 29may1996 |     75.26      24.74 |    100.00 
 27jul1997 |     71.40      28.60 |    100.00 
 07jun1998 |     69.30      30.70 |    100.00 
 08jul1998 |     68.33      31.67 |    100.00 
 27jun1999 |     70.43      29.57 |    100.00 
 25jun2000 |     69.57      30.43 |    100.00 
 10jun2001 |     71.42      28.58 |    100.00 
 23jun2002 |     79.67      20.33 |    100.00 
 10jun2003 |     77.60      22.40 |    100.00 
 23may2004 |     75.98      24.02 |    100.00 
 26may2005 |     78.35      21.65 |    100.00 
 04jun2006 |     81.21      18.79 |    100.00 
 14jun2007 |     81.28      18.72 |    100.00 
 12jun2008 |     79.80      20.20 |    100.00 
 17jun2009 |     84.13      15.87 |    100.00 
 11jul2010 |     81.08      18.92 |    100.00 
-----------+----------------------+----------
     Total |     73.78      26.22 |    100.00 

(0 real changes made)
(church: 29417 changes made)
(1899 missing values generated)

           |      high_church
        dt |         0          1 |     Total
-----------+----------------------+----------
 07may1973 |     32.69      67.31 |    100.00 
 02jun1975 |     30.18      69.82 |    100.00 
 10jan1977 |     34.38      65.62 |    100.00 
 09apr1979 |     33.95      66.05 |    100.00 
 23nov1981 |     35.58      64.42 |    100.00 
 08aug1983 |     36.87      63.13 |    100.00 
 10oct1984 |     35.07      64.93 |    100.00 
 20may1985 |     33.19      66.81 |    100.00 
 14jul1986 |     41.98      58.02 |    100.00 
 27oct1986 |     39.05      60.95 |    100.00 
 13jul1987 |     38.26      61.74 |    100.00 
 18mar1988 |     52.73      47.27 |    100.00 
 19aug1990 |     42.77      57.23 |    100.00 
 03mar1991 |     39.92      60.08 |    100.00 
 13oct1991 |     42.49      57.51 |    100.00 
 24mar1993 |     46.12      53.88 |    100.00 
 27mar1994 |     45.60      54.40 |    100.00 
 24apr1995 |     42.00      58.00 |    100.00 
 29may1996 |     42.69      57.31 |    100.00 
 27jul1997 |     43.21      56.79 |    100.00 
 07jun1998 |     39.99      60.01 |    100.00 
 08jul1998 |     41.55      58.45 |    100.00 
 27jun1999 |     41.42      58.58 |    100.00 
 25jun2000 |     42.90      57.10 |    100.00 
 10jun2001 |     39.59      60.41 |    100.00 
 23jun2002 |     53.73      46.27 |    100.00 
 10jun2003 |     49.05      50.95 |    100.00 
 23may2004 |     45.82      54.18 |    100.00 
 26may2005 |     46.34      53.66 |    100.00 
 04jun2006 |     47.12      52.88 |    100.00 
 14jun2007 |     53.03      46.97 |    100.00 
 12jun2008 |     49.83      50.17 |    100.00 
 17jun2009 |     46.96      53.04 |    100.00 
 11jul2010 |     51.39      48.61 |    100.00 
-----------+----------------------+----------
     Total |     41.84      58.16 |    100.00 

(0 real changes made)
(congress: 21180 changes made)
(3712 missing values generated)

           |     high_congress
        dt |         0          1 |     Total
-----------+----------------------+----------
 07may1973 |     54.16      45.84 |    100.00 
 02jun1975 |     58.50      41.50 |    100.00 
 10jan1977 |     56.40      43.60 |    100.00 
 09apr1979 |     64.82      35.18 |    100.00 
 23nov1981 |     70.16      29.84 |    100.00 
 08aug1983 |     70.12      29.88 |    100.00 
 10oct1984 |     69.75      30.25 |    100.00 
 20may1985 |     60.08      39.92 |    100.00 
 14jul1986 |     57.48      42.52 |    100.00 
 27oct1986 |     54.43      45.57 |    100.00 
 18mar1988 |     70.13      29.87 |    100.00 
 19aug1990 |     75.34      24.66 |    100.00 
 03mar1991 |     69.15      30.85 |    100.00 
 13oct1991 |     81.35      18.65 |    100.00 
 24mar1993 |     81.28      18.72 |    100.00 
 27mar1994 |     81.16      18.84 |    100.00 
 24apr1995 |     78.70      21.30 |    100.00 
 29may1996 |     79.48      20.52 |    100.00 
 27jul1997 |     77.82      22.18 |    100.00 
 07jun1998 |     70.85      29.15 |    100.00 
 27jun1999 |     73.88      26.12 |    100.00 
 25jun2000 |     75.42      24.58 |    100.00 
 17dec2000 |     69.39      30.61 |    100.00 
 10jun2001 |     72.36      27.64 |    100.00 
 23jun2002 |     70.70      29.30 |    100.00 
 10jun2003 |     70.91      29.09 |    100.00 
 23may2004 |     69.98      30.02 |    100.00 
 26may2005 |     77.88      22.12 |    100.00 
 04jun2006 |     80.78      19.22 |    100.00 
 14jun2007 |     85.55      14.45 |    100.00 
 12jun2008 |     88.07      11.93 |    100.00 
 17jun2009 |     83.25      16.75 |    100.00 
 11jul2010 |     88.96      11.04 |    100.00 
-----------+----------------------+----------
     Total |     70.92      29.08 |    100.00 

(0 real changes made)
(labor: 21958 changes made)
(4314 missing values generated)

           |      high_labor
        dt |         0          1 |     Total
-----------+----------------------+----------
 07may1973 |     66.64      33.36 |    100.00 
 02jun1975 |     62.53      37.47 |    100.00 
 10jan1977 |     58.88      41.12 |    100.00 
 09apr1979 |     62.09      37.91 |    100.00 
 23nov1981 |     70.66      29.34 |    100.00 
 08aug1983 |     72.39      27.61 |    100.00 
 10oct1984 |     68.43      31.57 |    100.00 
 20may1985 |     70.88      29.12 |    100.00 
 14jul1986 |     70.02      29.98 |    100.00 
 13jul1987 |     72.66      27.34 |    100.00 
 18mar1988 |     75.32      24.68 |    100.00 
 19aug1990 |     71.35      28.65 |    100.00 
 03mar1991 |     73.90      26.10 |    100.00 
 13oct1991 |     77.04      22.96 |    100.00 
 24mar1993 |     72.51      27.49 |    100.00 
 27mar1994 |     74.00      26.00 |    100.00 
 24apr1995 |     73.38      26.62 |    100.00 
 29may1996 |     74.53      25.47 |    100.00 
 27jul1997 |     75.63      24.37 |    100.00 
 07jun1998 |     72.03      27.97 |    100.00 
 08jul1998 |     73.16      26.84 |    100.00 
 27jun1999 |     71.77      28.23 |    100.00 
 25jun2000 |     73.54      26.46 |    100.00 
 10jun2001 |     72.82      27.18 |    100.00 
 23jun2002 |     73.14      26.86 |    100.00 
 10jun2003 |     71.20      28.80 |    100.00 
 23may2004 |     67.77      32.23 |    100.00 
 26may2005 |     74.55      25.45 |    100.00 
 04jun2006 |     75.30      24.70 |    100.00 
 14jun2007 |     79.94      20.06 |    100.00 
 12jun2008 |     78.60      21.40 |    100.00 
 17jun2009 |     80.57      19.43 |    100.00 
 11jul2010 |     79.25      20.75 |    100.00 
-----------+----------------------+----------
     Total |     71.88      28.12 |    100.00 

(0 real changes made)
(military: 28048 changes made)
(4992 missing values generated)

           |     high_military
        dt |         0          1 |     Total
-----------+----------------------+----------
 02jun1975 |     38.95      61.05 |    100.00 
 10jan1977 |     40.07      59.93 |    100.00 
 09apr1979 |     44.59      55.41 |    100.00 
 23nov1981 |     50.15      49.85 |    100.00 
 08aug1983 |     44.45      55.55 |    100.00 
 10oct1984 |     40.44      59.56 |    100.00 
 20may1985 |     37.22      62.78 |    100.00 
 14jul1986 |     35.68      64.32 |    100.00 
 13jul1987 |     38.43      61.57 |    100.00 
 18mar1988 |     51.25      48.75 |    100.00 
 19aug1990 |     29.97      70.03 |    100.00 
 03mar1991 |     13.44      86.56 |    100.00 
 13oct1991 |     29.42      70.58 |    100.00 
 24mar1993 |     31.47      68.53 |    100.00 
 27mar1994 |     35.18      64.82 |    100.00 
 24apr1995 |     34.88      65.12 |    100.00 
 29may1996 |     33.19      66.81 |    100.00 
 27jul1997 |     39.59      60.41 |    100.00 
 07jun1998 |     34.98      65.02 |    100.00 
 27jun1999 |     32.08      67.92 |    100.00 
 25jun2000 |     35.81      64.19 |    100.00 
 17dec2000 |     27.57      72.43 |    100.00 
 10jun2001 |     33.06      66.94 |    100.00 
 23jun2002 |     21.33      78.67 |    100.00 
 10jun2003 |     18.25      81.75 |    100.00 
 23may2004 |     24.67      75.33 |    100.00 
 26may2005 |     25.95      74.05 |    100.00 
 04jun2006 |     26.26      73.74 |    100.00 
 14jun2007 |     30.87      69.13 |    100.00 
 12jun2008 |     27.85      72.15 |    100.00 
 17jun2009 |     17.31      82.69 |    100.00 
 11jul2010 |     23.15      76.85 |    100.00 
-----------+----------------------+----------
     Total |     34.32      65.68 |    100.00 

(0 real changes made)
(newspapers: 19026 changes made)
(8363 missing values generated)

           |    high_newspapers
        dt |         0          1 |     Total
-----------+----------------------+----------
 07may1973 |     59.69      40.31 |    100.00 
 09apr1979 |     48.50      51.50 |    100.00 
 23nov1981 |     64.71      35.29 |    100.00 
 08aug1983 |     61.14      38.86 |    100.00 
 10oct1984 |     65.18      34.82 |    100.00 
 20may1985 |     64.28      35.72 |    100.00 
 14jul1986 |     63.05      36.95 |    100.00 
 27oct1986 |     59.20      40.80 |    100.00 
 13jul1987 |     68.33      31.67 |    100.00 
 19aug1990 |     59.92      40.08 |    100.00 
 03mar1991 |     62.55      37.45 |    100.00 
 13oct1991 |     66.97      33.03 |    100.00 
 24mar1993 |     68.03      31.97 |    100.00 
 27mar1994 |     70.40      29.60 |    100.00 
 24apr1995 |     69.14      30.86 |    100.00 
 29may1996 |     68.08      31.92 |    100.00 
 27jul1997 |     65.08      34.92 |    100.00 
 07jun1998 |     65.60      34.40 |    100.00 
 27jun1999 |     66.29      33.71 |    100.00 
 25jun2000 |     62.36      37.64 |    100.00 
 10jun2001 |     64.18      35.82 |    100.00 
 23jun2002 |     65.07      34.93 |    100.00 
 10jun2003 |     66.44      33.56 |    100.00 
 23may2004 |     69.69      30.31 |    100.00 
 26may2005 |     72.08      27.92 |    100.00 
 04jun2006 |     68.92      31.08 |    100.00 
 14jun2007 |     76.97      23.03 |    100.00 
 12jun2008 |     75.01      24.99 |    100.00 
 17jun2009 |     74.79      25.21 |    100.00 
 11jul2010 |     75.00      25.00 |    100.00 
-----------+----------------------+----------
     Total |     65.54      34.46 |    100.00 

(0 real changes made)
(presidency: 15815 changes made)
(19849 missing values generated)

           |    high_presidency
        dt |         0          1 |     Total
-----------+----------------------+----------
 02jun1975 |     46.18      53.82 |    100.00 
 03mar1991 |     26.92      73.08 |    100.00 
 13oct1991 |     49.17      50.83 |    100.00 
 24mar1993 |     55.69      44.31 |    100.00 
 27mar1994 |     60.87      39.13 |    100.00 
 24apr1995 |     54.74      45.26 |    100.00 
 29may1996 |     59.88      40.12 |    100.00 
 27jul1997 |     50.14      49.86 |    100.00 
 07jun1998 |     46.67      53.33 |    100.00 
 27jun1999 |     51.15      48.85 |    100.00 
 25jun2000 |     58.01      41.99 |    100.00 
 17dec2000 |     51.28      48.72 |    100.00 
 10jun2001 |     50.84      49.16 |    100.00 
 23jun2002 |     40.93      59.07 |    100.00 
 10jun2003 |     44.04      55.96 |    100.00 
 23may2004 |     47.38      52.62 |    100.00 
 26may2005 |     55.45      44.55 |    100.00 
 04jun2006 |     66.00      34.00 |    100.00 
 14jun2007 |     74.37      25.63 |    100.00 
 12jun2008 |     73.97      26.03 |    100.00 
 17jun2009 |     48.30      51.70 |    100.00 
 11jul2010 |     63.44      36.56 |    100.00 
-----------+----------------------+----------
     Total |     53.07      46.93 |    100.00 

(0 real changes made)
(schools: 21937 changes made)
(7568 missing values generated)

           |     high_schools
        dt |         0          1 |     Total
-----------+----------------------+----------
 07may1973 |     39.45      60.55 |    100.00 
 10jan1977 |     44.02      55.98 |    100.00 
 09apr1979 |     46.28      53.72 |    100.00 
 23nov1981 |     57.50      42.50 |    100.00 
 08aug1983 |     60.26      39.74 |    100.00 
 10oct1984 |     52.19      47.81 |    100.00 
 20may1985 |     50.31      49.69 |    100.00 
 14jul1986 |     50.67      49.33 |    100.00 
 13jul1987 |     49.19      50.81 |    100.00 
 19aug1990 |     54.25      45.75 |    100.00 
 03mar1991 |     56.15      43.85 |    100.00 
 13oct1991 |     63.93      36.07 |    100.00 
 24mar1993 |     60.82      39.18 |    100.00 
 27mar1994 |     65.92      34.08 |    100.00 
 24apr1995 |     58.65      41.35 |    100.00 
 29may1996 |     61.40      38.60 |    100.00 
 27jul1997 |     59.73      40.27 |    100.00 
 07jun1998 |     62.59      37.41 |    100.00 
 08jul1998 |     57.05      42.95 |    100.00 
 27jun1999 |     63.89      36.11 |    100.00 
 25jun2000 |     62.75      37.25 |    100.00 
 10jun2001 |     61.50      38.50 |    100.00 
 23jun2002 |     61.47      38.53 |    100.00 
 10jun2003 |     59.42      40.58 |    100.00 
 23may2004 |     59.00      41.00 |    100.00 
 26may2005 |     62.22      37.78 |    100.00 
 04jun2006 |     62.01      37.99 |    100.00 
 14jun2007 |     67.38      32.62 |    100.00 
 12jun2008 |     66.38      33.62 |    100.00 
 17jun2009 |     61.54      38.46 |    100.00 
 11jul2010 |     64.94      35.06 |    100.00 
-----------+----------------------+----------
     Total |     57.18      42.82 |    100.00 

(0 real changes made)
(supcourt: 23745 changes made)
(5073 missing values generated)

           |     high_supcourt
        dt |         0          1 |     Total
-----------+----------------------+----------
 07may1973 |     50.56      49.44 |    100.00 
 02jun1975 |     47.46      52.54 |    100.00 
 10jan1977 |     50.65      49.35 |    100.00 
 09apr1979 |     53.99      46.01 |    100.00 
 23nov1981 |     52.13      47.87 |    100.00 
 08aug1983 |     55.10      44.90 |    100.00 
 10oct1984 |     45.99      54.01 |    100.00 
 20may1985 |     42.29      57.71 |    100.00 
 14jul1986 |     44.81      55.19 |    100.00 
 27oct1986 |     44.33      55.67 |    100.00 
 13jul1987 |     45.79      54.21 |    100.00 
 19aug1990 |     52.42      47.58 |    100.00 
 03mar1991 |     49.76      50.24 |    100.00 
 13oct1991 |     58.82      41.18 |    100.00 
 24mar1993 |     54.84      45.16 |    100.00 
 27mar1994 |     56.39      43.61 |    100.00 
 24apr1995 |     54.85      45.15 |    100.00 
 29may1996 |     54.75      45.25 |    100.00 
 27jul1997 |     49.17      50.83 |    100.00 
 07jun1998 |     48.71      51.29 |    100.00 
 27jun1999 |     49.18      50.82 |    100.00 
 25jun2000 |     51.50      48.50 |    100.00 
 17dec2000 |     50.29      49.71 |    100.00 
 10jun2001 |     48.46      51.54 |    100.00 
 23jun2002 |     49.37      50.63 |    100.00 
 10jun2003 |     51.91      48.09 |    100.00 
 23may2004 |     52.71      47.29 |    100.00 
 26may2005 |     58.04      41.96 |    100.00 
 04jun2006 |     59.49      40.51 |    100.00 
 14jun2007 |     65.72      34.28 |    100.00 
 12jun2008 |     66.28      33.72 |    100.00 
 17jun2009 |     60.65      39.35 |    100.00 
 11jul2010 |     62.75      37.25 |    100.00 
-----------+----------------------+----------
     Total |     52.12      47.88 |    100.00 

(0 real changes made)

. 
. 
. * Label variables fully
. la var church "Church or org. religion"

. la var military "The military"

. la var supcourt "U.S. Supreme Court"

. la var banks "Banks"

. la var schools "The public schools"

. la var newspapers "Newspapers"

. la var congress "Congress"

. la var tvnews "Television news"

. la var labor "Organized labor" 

. la var presidency "The presidency"

. cap la var police "The police"

. cap la var medicine "The medical system"

. cap la var justice "Criminal justice system"

. la var bigbus "Big business"

. cap la var smallbus "Small business"

. cap la var hmos "HMO's"

. 
. 
. * Merge in state economic data
. sort st year

. merge m:1 st year using "..\State economic conditions\Unemployment", keep(match maste
> r)

    Result                           # of obs.
    -----------------------------------------
    not matched                         3,167
        from master                     3,167  (_merge==1)
        from using                          0  (_merge==2)

    matched                            39,099  (_merge==3)
    -----------------------------------------

. drop _merge

. 
. la data "Now I am going to read you a list of institutions in American society.  Plea
> se tell me how much confidence you, yourself, have in each one..."
note: label truncated to 80 characters

. 
. save "Trust_gallup", replace
file Trust_gallup.dta saved

. 
. 
end of do-file

. cd "$project"
C:\Users\jwolfers\Documents\Justin@Wharton\Trust in Public Institutions\AER Archive

. 
. * Compile and clean the Gallup honesty data
. cd "Gallup honesty"
C:\Users\jwolfers\Documents\Justin@Wharton\Trust in Public Institutions\AER Archive\Gal
> lup honesty

. do "gallup_honesty_compile.do"

. ** Script to compile the gallup ethical standards & honesty data
. cd "data"
C:\Users\jwolfers\Documents\Justin@Wharton\Trust in Public Institutions\AER Archive\Gal
> lup honesty\data

. set more off

. clear *

. 
. label define trust 1 "Very High" 2 "High" 3 "Average" 4 "Low" 5 "Very Low"

. label define states 58 "AL" 85 "AK" 72 "AZ" 61 "AR" 81 "CA" 73 "CO" 16 "CT" 25 "DE" 2
> 7 "DC" 55 "FL" 54 "GA" 84 "HI" 74 "ID" 34 "IL" 33 "IN" 43 "IA" 48 "KS" 56 "KY" 62 "LA
> " 11 "ME" 24 "MD" 14 "MA" 32 "MI" 42 "MN" 59 "MS" 44 "MO" 71 "MT" 47 "NE" 77 "NV" 12 
> "NH" 22 "NJ" 78 "NM" 21 "NY" 52 "NC" 45 "ND" 31 "OH" 63 "OK" 82 "OR" 23 "PA" 15 "RI" 
> 53 "SC" 46 "SD" 57 "TN" 64 "TX" 76 "UT" 13 "VT" 51 "VA" 83 "WA" 26 "WV" 41 "WI" 75 "W
> Y"

. label define education 1 "None or grade 1 - 4" 2 "Grade 5 6 or 7" 3 "Grade 8" 4 "High
>  school incomplete (Grades 9 - 11)" 5 "High school graduate Grade 12" 6 "Technical tr
> ade or business after high school" 7 "College/university incomplete" 8 "College/unive
> rsity graduate or more"

. label define genders 0 "Male" 1 "Female"

. label define racelabels 1 "White" 2 "Black" 3 "Hispanic" 4 "Asian" 5 "American Indian
> " 6 "Pacific Islander" 7 "Other Race"

. 
. infix 1 lines weight 1:1-1 sex 1:52-52 state 1:58-59 doctors 1:21 advertisers 1:22 la
> wyers 1:23 congressmen 1:24 busexecs 1:25 journalists 1:26 senators 1:27 unionleaders
>  1:28 collegeteachers 1:29 engineers 1:32 buildingcontractors 1:33 educ 1:47 age 1:48
> -49 race 1:52-52 using 953.DAT, clear
(1524 observations read)

. gen date=mdy(6,11,1976)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs journalists s
> enators unionleaders collegeteachers engineers buildingcontractors {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(0 real changes made)
(6 real changes made, 6 to missing)
(0 real changes made)
(0 real changes made)
(35 real changes made, 35 to missing)
(0 real changes made)
(0 real changes made)
(19 real changes made, 19 to missing)
(0 real changes made)
(0 real changes made)
(16 real changes made, 16 to missing)
(0 real changes made)
(0 real changes made)
(28 real changes made, 28 to missing)
(0 real changes made)
(0 real changes made)
(27 real changes made, 27 to missing)
(0 real changes made)
(0 real changes made)
(21 real changes made, 21 to missing)
(0 real changes made)
(0 real changes made)
(30 real changes made, 30 to missing)
(0 real changes made)
(0 real changes made)
(45 real changes made, 45 to missing)
(0 real changes made)
(0 real changes made)
(59 real changes made, 59 to missing)
(0 real changes made)
(0 real changes made)
(25 real changes made, 25 to missing)
(0 real changes made)

. replace age=. if age==0
(10 real changes made, 10 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1524 changes made)

. replace educ=. if educ==9
(0 real changes made)

. replace educ=.d if educ==0
(3 real changes made, 3 to missing)

. label values sex genders

. recode race (2=1) (3 4=2) (5 6=7)
(race: 830 changes made)

. replace race=.d if race==0
(0 real changes made)

. label values race racelabels

. 
. save gallup1976-06, replace
file gallup1976-06.dta saved

. 
. 
. 
. infix 1 lines weight 1:1-1 sex 1:97-97 state 1:106-107 doctors 1:75 advertisers 1:76 
> lawyers 1:77 congressmen 1:78 busexecs 1:79 journalists 1:80 senators 1:81 unionleade
> rs 1:82 collegeteachers 1:83 engineers 1:84 buildingcontractors 1:85 realtors 1:86 cl
> ergy 1:87 carsalesmen 1:88 insurancesales 1:89 educ 1:94 age 1:95-96 race 1:97-97 usi
> ng 980.dat, clear
(1516 observations read)

. gen date=mdy(7,22,1977)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs journalists s
> enators unionleaders collegeteachers engineers buildingcontractors realtors clergy ca
> rsalesmen insurancesales {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(0 real changes made)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(55 real changes made, 55 to missing)
(0 real changes made)
(0 real changes made)
(56 real changes made, 56 to missing)
(0 real changes made)
(0 real changes made)
(35 real changes made, 35 to missing)
(0 real changes made)
(0 real changes made)
(48 real changes made, 48 to missing)
(0 real changes made)
(0 real changes made)
(52 real changes made, 52 to missing)
(0 real changes made)
(0 real changes made)
(38 real changes made, 38 to missing)
(0 real changes made)
(0 real changes made)
(59 real changes made, 59 to missing)
(0 real changes made)
(0 real changes made)
(83 real changes made, 83 to missing)
(0 real changes made)
(0 real changes made)
(89 real changes made, 89 to missing)
(0 real changes made)
(0 real changes made)
(50 real changes made, 50 to missing)
(0 real changes made)
(0 real changes made)
(56 real changes made, 56 to missing)
(0 real changes made)
(0 real changes made)
(30 real changes made, 30 to missing)
(0 real changes made)
(0 real changes made)
(55 real changes made, 55 to missing)
(0 real changes made)
(0 real changes made)
(41 real changes made, 41 to missing)
(0 real changes made)

. replace age=. if age==0
(9 real changes made, 9 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1516 changes made)

. replace educ=. if educ==9
(0 real changes made)

. replace educ=.d if educ==0
(7 real changes made, 7 to missing)

. label values sex genders

. recode race (2=1) (3 4=2) (5 6=7)
(race: 853 changes made)

. replace race=.d if race==0
(0 real changes made)

. label values race racelabels

. 
. save gallup1977-07, replace
file gallup1977-07.dta saved

. 
. 
. 
. infix 1 lines weight 1:1-1 sex 1:128-128 state 1:135-136 doctors 1:38 realtors 1:40 p
> olicemen 1:39 bankers 1:41 statepoliticians 1:42 localpoliticians 1:43 educ 1:123 age
>  1:124-125 race 1:126-126 using 982.dat, clear
(1507 observations read)

. gen date=mdy(8,19,1977)

. label values educ education

. label values state states

. foreach var of varlist doctors realtors policemen bankers statepoliticians localpolit
> icians {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(13 real changes made, 13 to missing)
(0 real changes made)
(0 real changes made)
(74 real changes made, 74 to missing)
(0 real changes made)
(0 real changes made)
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)
(30 real changes made, 30 to missing)
(0 real changes made)
(0 real changes made)
(32 real changes made, 32 to missing)
(0 real changes made)
(0 real changes made)
(38 real changes made, 38 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(15 real changes made, 15 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1507 changes made)

. replace educ=. if educ==9
(0 real changes made)

. replace educ=.d if educ==0
(3 real changes made, 3 to missing)

. label values sex genders

. recode race (2=1) (3 4=2) (5 6=7)
(race: 868 changes made)

. replace race=.d if race==0
(0 real changes made)

. label values race racelabels

. 
. save gallup1977-08, replace
file gallup1977-08.dta saved

. 
. 
. 
. infix 1 lines weight 1:1-1 sex 1:136-136 state 1:144-145 doctors 1:8 advertisers 1:9 
> lawyers 1:10 congressmen 1:11 busexecs 1:12 journalists 1:13 senators 1:14 unionleade
> rs 1:15 collegeteachers 1:16 engineers 1:17 buildingcontractors 1:18 realtors 1:19 cl
> ergy 1:20 carsalesmen 1:21 insurancesales 1:22 funeraldirectors 1:23 policemen 1:24 b
> ankers 1:25 statepoliticians 1:26 localpoliticians 1:27 pharmacists 1:28 stockbrokers
>  1:29 dentists 1:30 tvreporters 1:31 newspaperreporters 1:32 educ 1:129 age 1:130-131
>  race 1:134-134 using 1178.dat, clear
(1564 observations read)

. gen date=mdy(7,27,1981)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs journalists s
> enators unionleaders collegeteachers engineers buildingcontractors realtors clergy ca
> rsalesmen insurancesales funeraldirectors policemen bankers statepoliticians localpol
> iticians pharmacists stockbrokers dentists tvreporters newspaperreporters {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(27 real changes made, 27 to missing)
(0 real changes made)
(0 real changes made)
(169 real changes made, 169 to missing)
(0 real changes made)
(0 real changes made)
(109 real changes made, 109 to missing)
(0 real changes made)
(0 real changes made)
(79 real changes made, 79 to missing)
(0 real changes made)
(0 real changes made)
(137 real changes made, 137 to missing)
(0 real changes made)
(0 real changes made)
(122 real changes made, 122 to missing)
(0 real changes made)
(0 real changes made)
(71 real changes made, 71 to missing)
(0 real changes made)
(0 real changes made)
(122 real changes made, 122 to missing)
(0 real changes made)
(0 real changes made)
(164 real changes made, 164 to missing)
(0 real changes made)
(0 real changes made)
(187 real changes made, 187 to missing)
(0 real changes made)
(0 real changes made)
(102 real changes made, 102 to missing)
(0 real changes made)
(0 real changes made)
(115 real changes made, 115 to missing)
(0 real changes made)
(0 real changes made)
(49 real changes made, 49 to missing)
(0 real changes made)
(0 real changes made)
(87 real changes made, 87 to missing)
(0 real changes made)
(0 real changes made)
(67 real changes made, 67 to missing)
(0 real changes made)
(0 real changes made)
(153 real changes made, 153 to missing)
(0 real changes made)
(0 real changes made)
(32 real changes made, 32 to missing)
(0 real changes made)
(0 real changes made)
(65 real changes made, 65 to missing)
(0 real changes made)
(0 real changes made)
(101 real changes made, 101 to missing)
(0 real changes made)
(0 real changes made)
(76 real changes made, 76 to missing)
(0 real changes made)
(0 real changes made)
(43 real changes made, 43 to missing)
(0 real changes made)
(0 real changes made)
(405 real changes made, 405 to missing)
(0 real changes made)
(0 real changes made)
(44 real changes made, 44 to missing)
(0 real changes made)
(0 real changes made)
(58 real changes made, 58 to missing)
(0 real changes made)
(0 real changes made)
(72 real changes made, 72 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(6 real changes made, 6 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1564 changes made)

. replace educ=. if educ==9
(0 real changes made)

. replace educ=.d if educ==0
(1 real change made, 1 to missing)

. label values sex genders

. recode race (2=1) (3 4=2) (5 6=7)
(race: 866 changes made)

. replace race=.d if race==0
(0 real changes made)

. label values race racelabels

. 
. save gallup1981-07, replace
file gallup1981-07.dta saved

. 
. 
. 
. infix 1 lines weight 1:1-1 sex 1:126-126 state 1:138-139 doctors 1:29 advertisers 1:3
> 0 lawyers 1:31 congressmen 1:32 busexecs 1:33 journalists 1:34 senators 1:35 unionlea
> ders 1:36 collegeteachers 1:37 engineers 1:38 buildingcontractors 1:39 realtors 1:40 
> clergy 1:41 carsalesmen 1:42 insurancesales 1:43 funeraldirectors 1:44 policemen 1:45
>  bankers 1:46 statepoliticians 1:47 localpoliticians 1:48 pharmacists 1:49 stockbroke
> rs 1:50 dentists 1:51 tvreporters 1:52 newspaperreporters 1:53 educ 1:121 age 1:122-1
> 23 race 1:125-125 using 1215.dat, clear
(1534 observations read)

. gen date=mdy(5,20,1983)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs journalists s
> enators unionleaders collegeteachers engineers buildingcontractors realtors clergy ca
> rsalesmen insurancesales funeraldirectors policemen bankers statepoliticians localpol
> iticians pharmacists stockbrokers dentists tvreporters newspaperreporters {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(29 real changes made, 29 to missing)
(0 real changes made)
(0 real changes made)
(157 real changes made, 157 to missing)
(0 real changes made)
(0 real changes made)
(80 real changes made, 80 to missing)
(0 real changes made)
(0 real changes made)
(72 real changes made, 72 to missing)
(0 real changes made)
(0 real changes made)
(99 real changes made, 99 to missing)
(0 real changes made)
(0 real changes made)
(119 real changes made, 119 to missing)
(0 real changes made)
(0 real changes made)
(80 real changes made, 80 to missing)
(0 real changes made)
(0 real changes made)
(114 real changes made, 114 to missing)
(0 real changes made)
(0 real changes made)
(152 real changes made, 152 to missing)
(0 real changes made)
(0 real changes made)
(178 real changes made, 178 to missing)
(0 real changes made)
(0 real changes made)
(85 real changes made, 85 to missing)
(0 real changes made)
(0 real changes made)
(96 real changes made, 96 to missing)
(0 real changes made)
(0 real changes made)
(67 real changes made, 67 to missing)
(0 real changes made)
(0 real changes made)
(70 real changes made, 70 to missing)
(0 real changes made)
(0 real changes made)
(67 real changes made, 67 to missing)
(0 real changes made)
(0 real changes made)
(145 real changes made, 145 to missing)
(0 real changes made)
(0 real changes made)
(39 real changes made, 39 to missing)
(0 real changes made)
(0 real changes made)
(56 real changes made, 56 to missing)
(0 real changes made)
(0 real changes made)
(95 real changes made, 95 to missing)
(0 real changes made)
(0 real changes made)
(85 real changes made, 85 to missing)
(0 real changes made)
(0 real changes made)
(37 real changes made, 37 to missing)
(0 real changes made)
(0 real changes made)
(368 real changes made, 368 to missing)
(0 real changes made)
(0 real changes made)
(44 real changes made, 44 to missing)
(0 real changes made)
(0 real changes made)
(68 real changes made, 68 to missing)
(0 real changes made)
(0 real changes made)
(80 real changes made, 80 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(10 real changes made, 10 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1534 changes made)

. replace educ=. if educ==9
(0 real changes made)

. replace educ=.d if educ==0
(3 real changes made, 3 to missing)

. label values sex genders

. recode race (2=1) (3 4=2) (5 6=7)
(race: 870 changes made)

. replace race=.d if race==0
(0 real changes made)

. label values race racelabels

. 
. save gallup1983-05, replace
file gallup1983-05.dta saved

. 
. 
. 
. infix 1 lines weight 1:5-7 sex 1:144-144 state 1:155-156 doctors 1:62 advertisers 1:6
> 3 lawyers 1:64 congressmen 1:65 busexecs 1:66 journalists 1:67 senators 1:68 unionlea
> ders 1:69 collegeteachers 1:70 engineers 1:71 buildingcontractors 1:72 realtors 1:73 
> clergy 1:74 carsalesmen 1:75 insurancesales 1:76 funeraldirectors 1:77 policemen 1:78
>  bankers 1:79 statepoliticians 1:80 localpoliticians 1:81 pharmacists 1:82 stockbroke
> rs 1:83 dentists 1:84 tvreporters 1:85 newspaperreporters 1:86 educ 1:137 age 1:138-1
> 39 race 1:143-143 using 1255.dat, clear
(1536 observations read)

. gen date=mdy(7,12,1985)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs journalists s
> enators unionleaders collegeteachers engineers buildingcontractors realtors clergy ca
> rsalesmen insurancesales funeraldirectors policemen bankers statepoliticians localpol
> iticians pharmacists stockbrokers dentists tvreporters newspaperreporters {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(110 real changes made, 110 to missing)
(0 real changes made)
(0 real changes made)
(48 real changes made, 48 to missing)
(0 real changes made)
(0 real changes made)
(59 real changes made, 59 to missing)
(0 real changes made)
(0 real changes made)
(86 real changes made, 86 to missing)
(0 real changes made)
(0 real changes made)
(80 real changes made, 80 to missing)
(0 real changes made)
(0 real changes made)
(48 real changes made, 48 to missing)
(0 real changes made)
(0 real changes made)
(102 real changes made, 102 to missing)
(0 real changes made)
(0 real changes made)
(95 real changes made, 95 to missing)
(0 real changes made)
(0 real changes made)
(128 real changes made, 128 to missing)
(0 real changes made)
(0 real changes made)
(95 real changes made, 95 to missing)
(0 real changes made)
(0 real changes made)
(85 real changes made, 85 to missing)
(0 real changes made)
(0 real changes made)
(44 real changes made, 44 to missing)
(0 real changes made)
(0 real changes made)
(63 real changes made, 63 to missing)
(0 real changes made)
(0 real changes made)
(46 real changes made, 46 to missing)
(0 real changes made)
(0 real changes made)
(145 real changes made, 145 to missing)
(0 real changes made)
(0 real changes made)
(27 real changes made, 27 to missing)
(0 real changes made)
(0 real changes made)
(50 real changes made, 50 to missing)
(0 real changes made)
(0 real changes made)
(80 real changes made, 80 to missing)
(0 real changes made)
(0 real changes made)
(80 real changes made, 80 to missing)
(0 real changes made)
(0 real changes made)
(34 real changes made, 34 to missing)
(0 real changes made)
(0 real changes made)
(304 real changes made, 304 to missing)
(0 real changes made)
(0 real changes made)
(40 real changes made, 40 to missing)
(0 real changes made)
(0 real changes made)
(55 real changes made, 55 to missing)
(0 real changes made)
(0 real changes made)
(54 real changes made, 54 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(2 real changes made, 2 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1536 changes made)

. replace educ=. if educ==9
(0 real changes made)

. replace educ=.d if educ==0
(6 real changes made, 6 to missing)

. label values sex genders

. recode race (2=1) (3 4=2) (5 6=7)
(race: 844 changes made)

. replace race=.d if race==0
(0 real changes made)

. label values race racelabels

. replace weight = weight/100
(1536 real changes made)

. save gallup1985-07, replace
file gallup1985-07.dta saved

. 
. 
. 
. infix 1 lines weight 1:7-9 sex 1:35-35 state 1:39-40 doctors 1:79 advertisers 1:99 la
> wyers 1:90 congressmen 1:92 busexecs 1:91 journalists 1:85 senators 1:89 unionleaders
>  1:94 collegeteachers 1:78 engineers 1:81 buildingcontractors 1:88 realtors 1:95 cler
> gy 1:77 carsalesmen 1:100 insurancesales 1:98 funeraldirectors 1:84 policemen 1:82 ba
> nkers 1:83 statepoliticians 1:97 localpoliticians 1:93 pharmacists 1:76 stockbrokers 
> 1:96 dentists 1:80 tvreporters 1:86 newspaperreporters 1:87 educ 1:25 age 1:23-24 rac
> e 1:33-33 using g933003w1.dat, clear
(1228 observations read)

. gen date=mdy(2,8,1990)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs journalists s
> enators unionleaders collegeteachers engineers buildingcontractors realtors clergy ca
> rsalesmen insurancesales funeraldirectors policemen bankers statepoliticians localpol
> iticians pharmacists stockbrokers dentists tvreporters newspaperreporters {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(0 real changes made)
(12 real changes made, 12 to missing)
(0 real changes made)
(0 real changes made)
(95 real changes made, 95 to missing)
(0 real changes made)
(0 real changes made)
(37 real changes made, 37 to missing)
(0 real changes made)
(0 real changes made)
(45 real changes made, 45 to missing)
(0 real changes made)
(0 real changes made)
(62 real changes made, 62 to missing)
(0 real changes made)
(0 real changes made)
(37 real changes made, 37 to missing)
(0 real changes made)
(0 real changes made)
(45 real changes made, 45 to missing)
(0 real changes made)
(0 real changes made)
(99 real changes made, 99 to missing)
(0 real changes made)
(0 real changes made)
(88 real changes made, 88 to missing)
(0 real changes made)
(0 real changes made)
(109 real changes made, 109 to missing)
(0 real changes made)
(0 real changes made)
(89 real changes made, 89 to missing)
(0 real changes made)
(0 real changes made)
(47 real changes made, 47 to missing)
(0 real changes made)
(0 real changes made)
(39 real changes made, 39 to missing)
(0 real changes made)
(0 real changes made)
(53 real changes made, 53 to missing)
(0 real changes made)
(0 real changes made)
(41 real changes made, 41 to missing)
(0 real changes made)
(0 real changes made)
(119 real changes made, 119 to missing)
(0 real changes made)
(0 real changes made)
(12 real changes made, 12 to missing)
(0 real changes made)
(0 real changes made)
(34 real changes made, 34 to missing)
(0 real changes made)
(0 real changes made)
(42 real changes made, 42 to missing)
(0 real changes made)
(0 real changes made)
(34 real changes made, 34 to missing)
(0 real changes made)
(0 real changes made)
(24 real changes made, 24 to missing)
(0 real changes made)
(0 real changes made)
(162 real changes made, 162 to missing)
(0 real changes made)
(0 real changes made)
(33 real changes made, 33 to missing)
(0 real changes made)
(0 real changes made)
(20 real changes made, 20 to missing)
(0 real changes made)
(0 real changes made)
(39 real changes made, 39 to missing)
(0 real changes made)

. replace age=. if age==0
(20 real changes made, 20 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1228 changes made)

. replace educ=. if educ==9
(0 real changes made)

. replace educ=.d if educ==0
(11 real changes made, 11 to missing)

. label values sex genders

. recode race (3=7)
(race: 59 changes made)

. replace race=.d if race==4
(0 real changes made)

. replace race=.d if race==0
(15 real changes made, 15 to missing)

. replace race=.r if race==5
(0 real changes made)

. label values race racelabels

. replace weight = weight/100
(1228 real changes made)

. save gallup1990-02, replace
file gallup1990-02.dta saved

. 
. 
. 
. infix 1 lines weight 1:7-9 sex 1:15-15 state 1:33-34 doctors 1:142 advertisers 1:162 
> lawyers 1:153 congressmen 1:155 busexecs 1:154 journalists 1:148 senators 1:152 union
> leaders 1:157 collegeteachers 1:141 engineers 1:144 buildingcontractors 1:151 realtor
> s 1:158 clergy 1:140 carsalesmen 1:163 insurancesales 1:161 funeraldirectors 1:147 po
> licemen 1:145 bankers 1:146 statepoliticians 1:160 localpoliticians 1:156 pharmacists
>  1:139 stockbrokers 1:159 dentists 1:143 tvreporters 1:149 newspaperreporters 1:150 e
> duc 1:18 age 1:16-17 race 1:19-19 using g122034.dat, clear
(1002 observations read)

. gen date=mdy(5,16,1991)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs journalists s
> enators unionleaders collegeteachers engineers buildingcontractors realtors clergy ca
> rsalesmen insurancesales funeraldirectors policemen bankers statepoliticians localpol
> iticians pharmacists stockbrokers dentists tvreporters newspaperreporters {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(13 real changes made, 13 to missing)
(0 real changes made)
(0 real changes made)
(87 real changes made, 87 to missing)
(0 real changes made)
(0 real changes made)
(42 real changes made, 42 to missing)
(0 real changes made)
(0 real changes made)
(41 real changes made, 41 to missing)
(0 real changes made)
(0 real changes made)
(68 real changes made, 68 to missing)
(0 real changes made)
(0 real changes made)
(47 real changes made, 47 to missing)
(0 real changes made)
(0 real changes made)
(30 real changes made, 30 to missing)
(0 real changes made)
(0 real changes made)
(112 real changes made, 112 to missing)
(0 real changes made)
(0 real changes made)
(111 real changes made, 111 to missing)
(0 real changes made)
(0 real changes made)
(106 real changes made, 106 to missing)
(0 real changes made)
(0 real changes made)
(81 real changes made, 81 to missing)
(0 real changes made)
(0 real changes made)
(62 real changes made, 62 to missing)
(0 real changes made)
(0 real changes made)
(37 real changes made, 37 to missing)
(0 real changes made)
(0 real changes made)
(51 real changes made, 51 to missing)
(0 real changes made)
(0 real changes made)
(48 real changes made, 48 to missing)
(0 real changes made)
(0 real changes made)
(112 real changes made, 112 to missing)
(0 real changes made)
(0 real changes made)
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)
(31 real changes made, 31 to missing)
(0 real changes made)
(0 real changes made)
(40 real changes made, 40 to missing)
(0 real changes made)
(0 real changes made)
(36 real changes made, 36 to missing)
(0 real changes made)
(0 real changes made)
(30 real changes made, 30 to missing)
(0 real changes made)
(0 real changes made)
(172 real changes made, 172 to missing)
(0 real changes made)
(0 real changes made)
(28 real changes made, 28 to missing)
(0 real changes made)
(0 real changes made)
(26 real changes made, 26 to missing)
(0 real changes made)
(0 real changes made)
(46 real changes made, 46 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(7 real changes made, 7 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1002 changes made)

. replace educ=. if educ==9
(4 real changes made, 4 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. recode race (3=7)
(race: 53 changes made)

. replace race=.d if race==4
(1 real change made, 1 to missing)

. replace race=.d if race==0
(0 real changes made)

. replace race=.r if race==5
(7 real changes made, 7 to missing)

. label values race racelabels

. replace weight = weight/100
(1002 real changes made)

. save gallup1991-05, replace
file gallup1991-05.dta saved

. 
. 
. 
. infix 1 lines weight 1:7-9 sex 1:17-17 state 1:28-29 doctors 1:50 advertisers 1:70 la
> wyers 1:61 congressmen 1:63 busexecs 1:62 journalists 1:56 senators 1:60 unionleaders
>  1:65 collegeteachers 1:49 engineers 1:52 buildingcontractors 1:59 realtors 1:66 cler
> gy 1:48 carsalesmen 1:71 insurancesales 1:69 funeraldirectors 1:55 policemen 1:53 ban
> kers 1:54 statepoliticians 1:68 localpoliticians 1:64 pharmacists 1:47 stockbrokers 1
> :67 dentists 1:51 tvreporters 1:57 newspaperreporters 1:58 educ 1:20 age 1:18-19 race
>  1:21-21 using g322002.dat, clear
(1206 observations read)

. gen date=mdy(6,26,1992)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs journalists s
> enators unionleaders collegeteachers engineers buildingcontractors realtors clergy ca
> rsalesmen insurancesales funeraldirectors policemen bankers statepoliticians localpol
> iticians pharmacists stockbrokers dentists tvreporters newspaperreporters {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(0 real changes made)
(17 real changes made, 17 to missing)
(0 real changes made)
(0 real changes made)
(95 real changes made, 95 to missing)
(0 real changes made)
(0 real changes made)
(31 real changes made, 31 to missing)
(0 real changes made)
(0 real changes made)
(31 real changes made, 31 to missing)
(0 real changes made)
(0 real changes made)
(61 real changes made, 61 to missing)
(0 real changes made)
(0 real changes made)
(45 real changes made, 45 to missing)
(0 real changes made)
(0 real changes made)
(37 real changes made, 37 to missing)
(0 real changes made)
(0 real changes made)
(80 real changes made, 80 to missing)
(0 real changes made)
(0 real changes made)
(77 real changes made, 77 to missing)
(0 real changes made)
(0 real changes made)
(102 real changes made, 102 to missing)
(0 real changes made)
(0 real changes made)
(86 real changes made, 86 to missing)
(0 real changes made)
(0 real changes made)
(53 real changes made, 53 to missing)
(0 real changes made)
(0 real changes made)
(43 real changes made, 43 to missing)
(0 real changes made)
(0 real changes made)
(41 real changes made, 41 to missing)
(0 real changes made)
(0 real changes made)
(44 real changes made, 44 to missing)
(0 real changes made)
(0 real changes made)
(114 real changes made, 114 to missing)
(0 real changes made)
(0 real changes made)
(23 real changes made, 23 to missing)
(0 real changes made)
(0 real changes made)
(37 real changes made, 37 to missing)
(0 real changes made)
(0 real changes made)
(40 real changes made, 40 to missing)
(0 real changes made)
(0 real changes made)
(35 real changes made, 35 to missing)
(0 real changes made)
(0 real changes made)
(26 real changes made, 26 to missing)
(0 real changes made)
(0 real changes made)
(136 real changes made, 136 to missing)
(0 real changes made)
(0 real changes made)
(37 real changes made, 37 to missing)
(0 real changes made)
(0 real changes made)
(26 real changes made, 26 to missing)
(0 real changes made)
(0 real changes made)
(45 real changes made, 45 to missing)
(0 real changes made)

. replace age=. if age==0
(20 real changes made, 20 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1206 changes made)

. replace educ=. if educ==9
(8 real changes made, 8 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. recode race (3=4) (4=7)
(race: 45 changes made)

. replace race=.d if race==5
(0 real changes made)

. replace race=.r if race==6
(9 real changes made, 9 to missing)

. label values race racelabels

. replace weight = weight/100
(1206 real changes made)

. save gallup1992-06, replace
file gallup1992-06.dta saved

. 
. 
. 
. infix 5 lines weight 1:13-15 sex 1:44-44 state 1:78-79 doctors 5:40 advertisers 5:60 
> lawyers 5:51 congressmen 5:53 busexecs 5:52 journalists 5:46 senators 5:50 unionleade
> rs 5:55 collegeteachers 5:39 engineers 5:42 buildingcontractors 5:49 realtors 5:56 cl
> ergy 5:38 carsalesmen 5:61 insurancesales 5:59 funeraldirectors 5:45 policemen 5:43 b
> ankers 5:44 statepoliticians 5:58 localpoliticians 5:54 pharmacists 5:37 stockbrokers
>  5:57 dentists 5:41 tvreporters 5:47 newspaperreporters 5:48 educ 1:47 age 1:45-46 ra
> ce 1:48-48 using A422003.DAT, clear
(1011 observations read)

. gen date=mdy(7,19,1993)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs journalists s
> enators unionleaders collegeteachers engineers buildingcontractors realtors clergy ca
> rsalesmen insurancesales funeraldirectors policemen bankers statepoliticians localpol
> iticians pharmacists stockbrokers dentists tvreporters newspaperreporters {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(0 real changes made)
(9 real changes made, 9 to missing)
(0 real changes made)
(0 real changes made)
(65 real changes made, 65 to missing)
(0 real changes made)
(0 real changes made)
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)
(18 real changes made, 18 to missing)
(0 real changes made)
(0 real changes made)
(35 real changes made, 35 to missing)
(0 real changes made)
(0 real changes made)
(23 real changes made, 23 to missing)
(0 real changes made)
(0 real changes made)
(19 real changes made, 19 to missing)
(0 real changes made)
(0 real changes made)
(41 real changes made, 41 to missing)
(0 real changes made)
(0 real changes made)
(40 real changes made, 40 to missing)
(0 real changes made)
(0 real changes made)
(56 real changes made, 56 to missing)
(0 real changes made)
(0 real changes made)
(40 real changes made, 40 to missing)
(0 real changes made)
(0 real changes made)
(33 real changes made, 33 to missing)
(0 real changes made)
(0 real changes made)
(22 real changes made, 22 to missing)
(0 real changes made)
(0 real changes made)
(22 real changes made, 22 to missing)
(0 real changes made)
(0 real changes made)
(23 real changes made, 23 to missing)
(0 real changes made)
(0 real changes made)
(55 real changes made, 55 to missing)
(0 real changes made)
(0 real changes made)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(13 real changes made, 13 to missing)
(0 real changes made)
(0 real changes made)
(27 real changes made, 27 to missing)
(0 real changes made)
(0 real changes made)
(22 real changes made, 22 to missing)
(0 real changes made)
(0 real changes made)
(11 real changes made, 11 to missing)
(0 real changes made)
(0 real changes made)
(103 real changes made, 103 to missing)
(0 real changes made)
(0 real changes made)
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)
(17 real changes made, 17 to missing)
(0 real changes made)
(0 real changes made)
(11 real changes made, 11 to missing)
(0 real changes made)

. replace age=. if age==0
(14 real changes made, 14 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1011 changes made)

. replace educ=. if educ==9
(7 real changes made, 7 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. recode race (3=4) (4=7)
(race: 58 changes made)

. replace race=.d if race==5
(1 real change made, 1 to missing)

. replace race=.r if race==6
(11 real changes made, 11 to missing)

. label values race racelabels

. replace weight = weight/100
(1011 real changes made)

. save gallup1993-07, replace
file gallup1993-07.dta saved

. 
. 
. 
. infix 6 lines weight 1:13-15 sex 1:44-44 state 1:78-79 doctors 5:41 advertisers 5:61 
> lawyers 5:52 congressmen 5:54 busexecs 5:53 journalists 5:47 senators 5:51 unionleade
> rs 5:56 collegeteachers 5:40 engineers 5:43 buildingcontractors 5:50 realtors 5:57 cl
> ergy 5:39 carsalesmen 5:62 insurancesales 5:60 funeraldirectors 5:46 policemen 5:44 b
> ankers 5:45 statepoliticians 5:59 localpoliticians 5:55 pharmacists 5:38 stockbrokers
>  5:58 dentists 5:42 tvreporters 5:48 newspaperreporters 5:49 educ 1:47 age 1:45-46 ra
> ce 6:76-77 using A0807024.DAT, clear
(1009 observations read)

. gen date=mdy(9,23,1994)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs journalists s
> enators unionleaders collegeteachers engineers buildingcontractors realtors clergy ca
> rsalesmen insurancesales funeraldirectors policemen bankers statepoliticians localpol
> iticians pharmacists stockbrokers dentists tvreporters newspaperreporters {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(4 real changes made, 4 to missing)
(0 real changes made)
(0 real changes made)
(24 real changes made, 24 to missing)
(0 real changes made)
(0 real changes made)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(4 real changes made, 4 to missing)
(0 real changes made)
(0 real changes made)
(12 real changes made, 12 to missing)
(0 real changes made)
(0 real changes made)
(6 real changes made, 6 to missing)
(0 real changes made)
(0 real changes made)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(18 real changes made, 18 to missing)
(0 real changes made)
(0 real changes made)
(20 real changes made, 20 to missing)
(0 real changes made)
(0 real changes made)
(36 real changes made, 36 to missing)
(0 real changes made)
(0 real changes made)
(19 real changes made, 19 to missing)
(0 real changes made)
(0 real changes made)
(16 real changes made, 16 to missing)
(0 real changes made)
(0 real changes made)
(16 real changes made, 16 to missing)
(0 real changes made)
(0 real changes made)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(43 real changes made, 43 to missing)
(0 real changes made)
(0 real changes made)
(5 real changes made, 5 to missing)
(0 real changes made)
(0 real changes made)
(9 real changes made, 9 to missing)
(0 real changes made)
(0 real changes made)
(9 real changes made, 9 to missing)
(0 real changes made)
(0 real changes made)
(13 real changes made, 13 to missing)
(0 real changes made)
(0 real changes made)
(8 real changes made, 8 to missing)
(0 real changes made)
(0 real changes made)
(42 real changes made, 42 to missing)
(0 real changes made)
(0 real changes made)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(8 real changes made, 8 to missing)
(0 real changes made)
(0 real changes made)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(4 real changes made, 4 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1009 changes made)

. replace educ=. if educ==9
(1 real change made, 1 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(0 real changes made)

. replace race=.r if race==3
(3 real changes made, 3 to missing)

. replace race=.r if race==4
(0 real changes made)

. replace race=.r if race==5
(0 real changes made)

. recode race (1=7) (6=1) (7=2) (8=3)
(race: 1006 changes made)

. label values race racelabels

. replace weight = weight/100
(1009 real changes made)

. save gallup1994-09, replace
file gallup1994-09.dta saved

. 
. 
. 
. infix 6 lines weight 1:13-15 sex 1:44-44 state 1:78-79 doctors 5:48 advertisers 5:68 
> lawyers 5:59 congressmen 5:61 busexecs 5:60 journalists 5:54 senators 5:58 unionleade
> rs 5:63 collegeteachers 5:47 engineers 5:50 buildingcontractors 5:57 realtors 5:64 cl
> ergy 5:46 carsalesmen 5:69 insurancesales 5:67 funeraldirectors 5:53 policemen 5:51 b
> ankers 5:52 statepoliticians 5:66 localpoliticians 5:62 pharmacists 5:45 stockbrokers
>  5:65 dentists 5:49 tvreporters 5:55 newspaperreporters 5:56 educ 1:47 age 1:45-46 ra
> ce 1:48-48 using 9510017.DAT, clear
(1229 observations read)

. gen date=mdy(10,19,1995)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs journalists s
> enators unionleaders collegeteachers engineers buildingcontractors realtors clergy ca
> rsalesmen insurancesales funeraldirectors policemen bankers statepoliticians localpol
> iticians pharmacists stockbrokers dentists tvreporters newspaperreporters {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(9 real changes made, 9 to missing)
(0 real changes made)
(0 real changes made)
(57 real changes made, 57 to missing)
(0 real changes made)
(0 real changes made)
(23 real changes made, 23 to missing)
(0 real changes made)
(0 real changes made)
(20 real changes made, 20 to missing)
(0 real changes made)
(0 real changes made)
(35 real changes made, 35 to missing)
(0 real changes made)
(0 real changes made)
(29 real changes made, 29 to missing)
(0 real changes made)
(0 real changes made)
(20 real changes made, 20 to missing)
(0 real changes made)
(0 real changes made)
(63 real changes made, 63 to missing)
(0 real changes made)
(0 real changes made)
(44 real changes made, 44 to missing)
(0 real changes made)
(0 real changes made)
(56 real changes made, 56 to missing)
(0 real changes made)
(0 real changes made)
(35 real changes made, 35 to missing)
(0 real changes made)
(0 real changes made)
(32 real changes made, 32 to missing)
(0 real changes made)
(0 real changes made)
(41 real changes made, 41 to missing)
(0 real changes made)
(0 real changes made)
(20 real changes made, 20 to missing)
(0 real changes made)
(0 real changes made)
(22 real changes made, 22 to missing)
(0 real changes made)
(0 real changes made)
(69 real changes made, 69 to missing)
(0 real changes made)
(0 real changes made)
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(27 real changes made, 27 to missing)
(0 real changes made)
(0 real changes made)
(27 real changes made, 27 to missing)
(0 real changes made)
(0 real changes made)
(27 real changes made, 27 to missing)
(0 real changes made)
(0 real changes made)
(12 real changes made, 12 to missing)
(0 real changes made)
(0 real changes made)
(112 real changes made, 112 to missing)
(0 real changes made)
(0 real changes made)
(19 real changes made, 19 to missing)
(0 real changes made)
(0 real changes made)
(12 real changes made, 12 to missing)
(0 real changes made)
(0 real changes made)
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(9 real changes made, 9 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1229 changes made)

. replace educ=. if educ==9
(6 real changes made, 6 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. recode race (3=7)
(race: 65 changes made)

. replace race=.d if race==4
(10 real changes made, 10 to missing)

. replace race=.r if race==5
(0 real changes made)

. label values race racelabels

. replace weight = weight/100
(1229 real changes made)

. save gallup1995-10, replace
file gallup1995-10.dta saved

. 
. 
. 
. infix 6 lines weight 1:13-15 sex 1:44-44 state 1:78-79 doctors 6:27 advertisers 6:47 
> lawyers 6:38 congressmen 6:40 busexecs 6:39 journalists 6:33 senators 6:37 unionleade
> rs 6:42 collegeteachers 6:26 engineers 6:29 buildingcontractors 6:36 realtors 6:43 cl
> ergy 6:25 carsalesmen 6:48 insurancesales 6:46 funeraldirectors 6:32 policemen 6:30 b
> ankers 6:31 statepoliticians 6:45 localpoliticians 6:41 pharmacists 6:24 stockbrokers
>  6:44 dentists 6:28 tvreporters 6:34 newspaperreporters 6:35 educ 1:47 age 1:45-46 ra
> ce 5:14-15 using A9612037.DAT, clear
(813 observations read)

. gen date=mdy(12,9,1996)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs journalists s
> enators unionleaders collegeteachers engineers buildingcontractors realtors clergy ca
> rsalesmen insurancesales funeraldirectors policemen bankers statepoliticians localpol
> iticians pharmacists stockbrokers dentists tvreporters newspaperreporters {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(47 real changes made, 47 to missing)
(0 real changes made)
(0 real changes made)
(21 real changes made, 21 to missing)
(0 real changes made)
(0 real changes made)
(20 real changes made, 20 to missing)
(0 real changes made)
(0 real changes made)
(37 real changes made, 37 to missing)
(0 real changes made)
(0 real changes made)
(29 real changes made, 29 to missing)
(0 real changes made)
(0 real changes made)
(25 real changes made, 25 to missing)
(0 real changes made)
(0 real changes made)
(50 real changes made, 50 to missing)
(0 real changes made)
(0 real changes made)
(52 real changes made, 52 to missing)
(0 real changes made)
(0 real changes made)
(65 real changes made, 65 to missing)
(0 real changes made)
(0 real changes made)
(42 real changes made, 42 to missing)
(0 real changes made)
(0 real changes made)
(30 real changes made, 30 to missing)
(0 real changes made)
(0 real changes made)
(36 real changes made, 36 to missing)
(0 real changes made)
(0 real changes made)
(28 real changes made, 28 to missing)
(0 real changes made)
(0 real changes made)
(22 real changes made, 22 to missing)
(0 real changes made)
(0 real changes made)
(47 real changes made, 47 to missing)
(0 real changes made)
(0 real changes made)
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(20 real changes made, 20 to missing)
(0 real changes made)
(0 real changes made)
(30 real changes made, 30 to missing)
(0 real changes made)
(0 real changes made)
(30 real changes made, 30 to missing)
(0 real changes made)
(0 real changes made)
(11 real changes made, 11 to missing)
(0 real changes made)
(0 real changes made)
(87 real changes made, 87 to missing)
(0 real changes made)
(0 real changes made)
(17 real changes made, 17 to missing)
(0 real changes made)
(0 real changes made)
(19 real changes made, 19 to missing)
(0 real changes made)
(0 real changes made)
(26 real changes made, 26 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(5 real changes made, 5 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 813 changes made)

. replace educ=. if educ==9
(6 real changes made, 6 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(1 real change made, 1 to missing)

. replace race=.r if race==3
(7 real changes made, 7 to missing)

. replace race=.r if race==4
(0 real changes made)

. replace race=.r if race==5
(0 real changes made)

. recode race (1=7) (6=1) (7=2) (8=3)
(race: 805 changes made)

. label values race racelabels

. replace weight = weight/100
(813 real changes made)

. save gallup1996-12, replace
file gallup1996-12.dta saved

. 
. 
. 
. infix 7 lines weight 1:13-15 sex 1:44-44 state 1:78-79 doctors 6:26 advertisers 6:46 
> lawyers 6:37 congressmen 6:39 busexecs 6:38 journalists 6:32 senators 6:36 unionleade
> rs 6:41 collegeteachers 6:25 engineers 6:28 buildingcontractors 6:35 realtors 6:42 cl
> ergy 6:24 carsalesmen 6:47 insurancesales 6:45 funeraldirectors 6:31 policemen 6:29 b
> ankers 6:30 statepoliticians 6:44 localpoliticians 6:40 pharmacists 6:23 stockbrokers
>  6:43 dentists 6:27 tvreporters 6:33 newspaperreporters 6:34 educ 1:47 age 1:45-46 ra
> ce 5:14-15 using g9711028.DAT, clear
(1003 observations read)

. gen date=mdy(11,6,1997)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs journalists s
> enators unionleaders collegeteachers engineers buildingcontractors realtors clergy ca
> rsalesmen insurancesales funeraldirectors policemen bankers statepoliticians localpol
> iticians pharmacists stockbrokers dentists tvreporters newspaperreporters {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(10 real changes made, 10 to missing)
(0 real changes made)
(0 real changes made)
(71 real changes made, 71 to missing)
(0 real changes made)
(0 real changes made)
(28 real changes made, 28 to missing)
(0 real changes made)
(0 real changes made)
(31 real changes made, 31 to missing)
(0 real changes made)
(0 real changes made)
(47 real changes made, 47 to missing)
(0 real changes made)
(0 real changes made)
(37 real changes made, 37 to missing)
(0 real changes made)
(0 real changes made)
(34 real changes made, 34 to missing)
(0 real changes made)
(0 real changes made)
(71 real changes made, 71 to missing)
(0 real changes made)
(0 real changes made)
(67 real changes made, 67 to missing)
(0 real changes made)
(0 real changes made)
(75 real changes made, 75 to missing)
(0 real changes made)
(0 real changes made)
(56 real changes made, 56 to missing)
(0 real changes made)
(0 real changes made)
(43 real changes made, 43 to missing)
(0 real changes made)
(0 real changes made)
(43 real changes made, 43 to missing)
(0 real changes made)
(0 real changes made)
(24 real changes made, 24 to missing)
(0 real changes made)
(0 real changes made)
(28 real changes made, 28 to missing)
(0 real changes made)
(0 real changes made)
(91 real changes made, 91 to missing)
(0 real changes made)
(0 real changes made)
(12 real changes made, 12 to missing)
(0 real changes made)
(0 real changes made)
(16 real changes made, 16 to missing)
(0 real changes made)
(0 real changes made)
(27 real changes made, 27 to missing)
(0 real changes made)
(0 real changes made)
(28 real changes made, 28 to missing)
(0 real changes made)
(0 real changes made)
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(109 real changes made, 109 to missing)
(0 real changes made)
(0 real changes made)
(18 real changes made, 18 to missing)
(0 real changes made)
(0 real changes made)
(20 real changes made, 20 to missing)
(0 real changes made)
(0 real changes made)
(29 real changes made, 29 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(10 real changes made, 10 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1003 changes made)

. replace educ=. if educ==9
(10 real changes made, 10 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(3 real changes made, 3 to missing)

. replace race=.r if race==3
(8 real changes made, 8 to missing)

. replace race=.r if race==4
(0 real changes made)

. replace race=.r if race==5
(0 real changes made)

. recode race (1=7) (6=1) (7=2) (8=3)
(race: 992 changes made)

. label values race racelabels

. replace weight = weight/100
(1003 real changes made)

. save gallup1997-11, replace
file gallup1997-11.dta saved

. 
. 
. 
. infix 7 lines weight 1:13-15 sex 1:44-44 state 1:78-79 doctors 6:39 advertisers 6:59 
> lawyers 6:50 congressmen 6:52 busexecs 6:51 journalists 6:45 senators 6:49 unionleade
> rs 6:54 collegeteachers 6:38 engineers 6:41 buildingcontractors 6:48 realtors 6:55 cl
> ergy 6:37 carsalesmen 6:60 insurancesales 6:58 funeraldirectors 6:44 policemen 6:42 b
> ankers 6:43 statepoliticians 6:57 localpoliticians 6:53 pharmacists 6:36 stockbrokers
>  6:56 dentists 6:40 tvreporters 6:46 newspaperreporters 6:47 educ 1:47 age 1:45-46 ra
> ce 5:14-15 using A9810040.DAT, clear
(1013 observations read)

. gen date=mdy(10,23,1998)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs journalists s
> enators unionleaders collegeteachers engineers buildingcontractors realtors clergy ca
> rsalesmen insurancesales funeraldirectors policemen bankers statepoliticians localpol
> iticians pharmacists stockbrokers dentists tvreporters newspaperreporters {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(9 real changes made, 9 to missing)
(0 real changes made)
(0 real changes made)
(42 real changes made, 42 to missing)
(0 real changes made)
(0 real changes made)
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(11 real changes made, 11 to missing)
(0 real changes made)
(0 real changes made)
(25 real changes made, 25 to missing)
(0 real changes made)
(0 real changes made)
(22 real changes made, 22 to missing)
(0 real changes made)
(0 real changes made)
(17 real changes made, 17 to missing)
(0 real changes made)
(0 real changes made)
(42 real changes made, 42 to missing)
(0 real changes made)
(0 real changes made)
(25 real changes made, 25 to missing)
(0 real changes made)
(0 real changes made)
(40 real changes made, 40 to missing)
(0 real changes made)
(0 real changes made)
(35 real changes made, 35 to missing)
(0 real changes made)
(0 real changes made)
(25 real changes made, 25 to missing)
(0 real changes made)
(0 real changes made)
(33 real changes made, 33 to missing)
(0 real changes made)
(0 real changes made)
(18 real changes made, 18 to missing)
(0 real changes made)
(0 real changes made)
(17 real changes made, 17 to missing)
(0 real changes made)
(0 real changes made)
(51 real changes made, 51 to missing)
(0 real changes made)
(0 real changes made)
(11 real changes made, 11 to missing)
(0 real changes made)
(0 real changes made)
(21 real changes made, 21 to missing)
(0 real changes made)
(0 real changes made)
(20 real changes made, 20 to missing)
(0 real changes made)
(0 real changes made)
(10 real changes made, 10 to missing)
(0 real changes made)
(0 real changes made)
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(68 real changes made, 68 to missing)
(0 real changes made)
(0 real changes made)
(16 real changes made, 16 to missing)
(0 real changes made)
(0 real changes made)
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(7 real changes made, 7 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1013 changes made)

. replace educ=. if educ==9
(5 real changes made, 5 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(1 real change made, 1 to missing)

. replace race=.r if race==3
(12 real changes made, 12 to missing)

. replace race=.r if race==4
(0 real changes made)

. replace race=.r if race==5
(0 real changes made)

. recode race (1=7) (6=1) (7=2) (8=3)
(race: 1000 changes made)

. label values race racelabels

. replace weight = weight/100
(1013 real changes made)

. save gallup1998-10, replace
file gallup1998-10.dta saved

. 
. * Note that 1999 had a split sample
. infix 8 lines weight 1:13-15 sex 1:44-44 state 1:78-79 doctors_a 6:34 busexecs_a 6:46
>  carsalesmen_a 6:55 pharmacists_a 6:31 doctors_b 7:13 busexecs_b 7:14 carsalesmen_b 7
> :15 pharmacists_b 7:12 advertisers 6:54 lawyers 6:45 congressmen 6:47 journalists 6:4
> 0 senators 6:44 unionleaders 6:49 collegeteachers 6:33 engineers 6:36 buildingcontrac
> tors 6:43 realtors 6:50 clergy 6:32  insurancesales 6:53 funeraldirectors 6:39 police
> men 6:37 bankers 6:38 statepoliticians 6:52 localpoliticians 6:48  stockbrokers 6:51 
> dentists 6:35 tvreporters 6:41 newspaperreporters 6:42 educ 1:47 age 1:45-46 race 5:1
> 4-15 using A9911044.dat, clear
(1011 observations read)

. replace doctors_a=doctors_b if doctors_a==.
(522 real changes made)

. replace busexecs_a=busexecs_b if busexecs_a==.
(522 real changes made)

. replace carsalesmen_a=carsalesmen_b if carsalesmen_a==.
(522 real changes made)

. replace pharmacists_a=pharmacists_b if pharmacists_a==.
(522 real changes made)

. rename doctors_a doctors

. rename busexecs_a busexecs

. rename carsalesmen_a carsalesmen

. rename pharmacists_a pharmacists

. drop doctors_b busexecs_b carsalesmen_b pharmacists_b

. gen date=mdy(11,4,1999)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs journalists s
> enators unionleaders collegeteachers engineers buildingcontractors realtors clergy ca
> rsalesmen insurancesales funeraldirectors policemen bankers statepoliticians localpol
> iticians pharmacists stockbrokers dentists tvreporters newspaperreporters {
  2.     label values `var' trust
  3.     replace `var'=.d if `var'==6
  4.     replace `var'=.r if `var'==0
  5.     replace `var'=.r if `var'==7
  6. }
(5 real changes made, 5 to missing)
(0 real changes made)
(0 real changes made)
(11 real changes made, 11 to missing)
(0 real changes made)
(0 real changes made)
(6 real changes made, 6 to missing)
(0 real changes made)
(0 real changes made)
(1 real change made, 1 to missing)
(0 real changes made)
(0 real changes made)
(24 real changes made, 24 to missing)
(0 real changes made)
(0 real changes made)
(3 real changes made, 3 to missing)
(0 real changes made)
(0 real changes made)
(4 real changes made, 4 to missing)
(0 real changes made)
(0 real changes made)
(16 real changes made, 16 to missing)
(0 real changes made)
(0 real changes made)
(10 real changes made, 10 to missing)
(0 real changes made)
(0 real changes made)
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(9 real changes made, 9 to missing)
(0 real changes made)
(0 real changes made)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(18 real changes made, 18 to missing)
(0 real changes made)
(0 real changes made)
(2 real changes made, 2 to missing)
(0 real changes made)
(0 real changes made)
(4 real changes made, 4 to missing)
(0 real changes made)
(0 real changes made)
(3 real changes made, 3 to missing)
(0 real changes made)
(0 real changes made)
(4 real changes made, 4 to missing)
(0 real changes made)
(0 real changes made)
(6 real changes made, 6 to missing)
(0 real changes made)
(0 real changes made)
(22 real changes made, 22 to missing)
(0 real changes made)
(0 real changes made)
(2 real changes made, 2 to missing)
(0 real changes made)
(0 real changes made)
(1 real change made, 1 to missing)
(0 real changes made)
(0 real changes made)
(2 real changes made, 2 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(6 real changes made, 6 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1011 changes made)

. replace educ=. if educ==9
(3 real changes made, 3 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(0 real changes made)

. replace race=.r if race==3
(8 real changes made, 8 to missing)

. replace race=.r if race==4
(0 real changes made)

. replace race=.r if race==5
(0 real changes made)

. recode race (1=7) (6=1) (7=2) (8=3)
(race: 1003 changes made)

. label values race racelabels

. replace weight = weight/100
(1011 real changes made)

. save gallup1999-11, replace
file gallup1999-11.dta saved

. 
. 
. 
. infix 1 lines weight 1:7-10 sex 1:56-56 state 1:13-14 doctors 1:99 advertisers 1:119 
> lawyers 1:110 congressmen 1:112 busexecs 1:111 journalists 1:105 senators 1:109 union
> leaders 1:114 collegeteachers 1:98 engineers 1:101 buildingcontractors 1:108 realtors
>  1:115 clergy 1:97 carsalesmen 1:120 insurancesales 1:118 funeraldirectors 1:104 poli
> cemen 1:102 bankers 1:103 statepoliticians 1:117 localpoliticians 1:113 pharmacists 1
> :96 stockbrokers 1:116 dentists 1:100 tvreporters 1:106 newspaperreporters 1:107 nurs
> es 1:125 educ 1:59 age 1:57-58 race 1:62-63 using G2000-49.DAT, clear
(1028 observations read)

. gen date=mdy(11,13,2000)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs journalists s
> enators unionleaders collegeteachers engineers buildingcontractors realtors clergy ca
> rsalesmen insurancesales funeraldirectors policemen bankers statepoliticians localpol
> iticians pharmacists stockbrokers dentists tvreporters newspaperreporters nurses {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(3 real changes made, 3 to missing)
(0 real changes made)
(0 real changes made)
(48 real changes made, 48 to missing)
(0 real changes made)
(0 real changes made)
(13 real changes made, 13 to missing)
(0 real changes made)
(0 real changes made)
(19 real changes made, 19 to missing)
(0 real changes made)
(0 real changes made)
(34 real changes made, 34 to missing)
(0 real changes made)
(0 real changes made)
(22 real changes made, 22 to missing)
(0 real changes made)
(0 real changes made)
(21 real changes made, 21 to missing)
(0 real changes made)
(0 real changes made)
(59 real changes made, 59 to missing)
(0 real changes made)
(0 real changes made)
(46 real changes made, 46 to missing)
(0 real changes made)
(0 real changes made)
(48 real changes made, 48 to missing)
(0 real changes made)
(0 real changes made)
(35 real changes made, 35 to missing)
(0 real changes made)
(0 real changes made)
(19 real changes made, 19 to missing)
(0 real changes made)
(0 real changes made)
(32 real changes made, 32 to missing)
(0 real changes made)
(0 real changes made)
(11 real changes made, 11 to missing)
(0 real changes made)
(0 real changes made)
(10 real changes made, 10 to missing)
(0 real changes made)
(0 real changes made)
(52 real changes made, 52 to missing)
(0 real changes made)
(0 real changes made)
(5 real changes made, 5 to missing)
(0 real changes made)
(0 real changes made)
(10 real changes made, 10 to missing)
(0 real changes made)
(0 real changes made)
(21 real changes made, 21 to missing)
(0 real changes made)
(0 real changes made)
(23 real changes made, 23 to missing)
(0 real changes made)
(0 real changes made)
(3 real changes made, 3 to missing)
(0 real changes made)
(0 real changes made)
(64 real changes made, 64 to missing)
(0 real changes made)
(0 real changes made)
(13 real changes made, 13 to missing)
(0 real changes made)
(0 real changes made)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(6 real changes made, 6 to missing)
(0 real changes made)
(0 real changes made)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(11 real changes made, 11 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1028 changes made)

. replace educ=. if educ==9
(4 real changes made, 4 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(1 real change made, 1 to missing)

. replace race=.r if race==3
(5 real changes made, 5 to missing)

. replace race=.r if race==4
(0 real changes made)

. replace race=.r if race==5
(0 real changes made)

. recode race (1=7) (6=1) (7=2) (8=3) (9=4)
(race: 1022 changes made)

. label values race racelabels

. 
. save gallup2000-11, replace
file gallup2000-11.dta saved

. 
. 
. 
. infix 1 lines weight 1:7-10 sex 1:58-58 state 1:13-14 doctors 1:101 advertisers 1:114
>  lawyers 1:108 congressmen 1:110 busexecs 1:109 journalists 1:106 senators 1:107 unio
> nleaders 1:111 collegeteachers 1:100 engineers 1:103 clergy 1:99 carsalesmen 1:115 in
> surancesales 1:113 policemen 1:104 bankers 1:105 pharmacists 1:98 stockbrokers 1:112 
> dentists 1:102 nurses 1:117 educ 1:61 age 1:59-60 race 1:64-65 using 200144.dat, clea
> r
(1025 observations read)

. gen date=mdy(11,26,2001)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs journalists s
> enators unionleaders collegeteachers engineers clergy carsalesmen insurancesales poli
> cemen bankers pharmacists stockbrokers dentists nurses {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(4 real changes made, 4 to missing)
(0 real changes made)
(0 real changes made)
(51 real changes made, 51 to missing)
(0 real changes made)
(0 real changes made)
(11 real changes made, 11 to missing)
(0 real changes made)
(0 real changes made)
(10 real changes made, 10 to missing)
(0 real changes made)
(0 real changes made)
(29 real changes made, 29 to missing)
(0 real changes made)
(0 real changes made)
(12 real changes made, 12 to missing)
(0 real changes made)
(0 real changes made)
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(56 real changes made, 56 to missing)
(0 real changes made)
(0 real changes made)
(37 real changes made, 37 to missing)
(0 real changes made)
(0 real changes made)
(38 real changes made, 38 to missing)
(0 real changes made)
(0 real changes made)
(30 real changes made, 30 to missing)
(0 real changes made)
(0 real changes made)
(22 real changes made, 22 to missing)
(0 real changes made)
(0 real changes made)
(15 real changes made, 15 to missing)
(0 real changes made)
(0 real changes made)
(3 real changes made, 3 to missing)
(0 real changes made)
(0 real changes made)
(22 real changes made, 22 to missing)
(0 real changes made)
(0 real changes made)
(8 real changes made, 8 to missing)
(0 real changes made)
(0 real changes made)
(68 real changes made, 68 to missing)
(0 real changes made)
(0 real changes made)
(11 real changes made, 11 to missing)
(0 real changes made)
(0 real changes made)
(9 real changes made, 9 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(7 real changes made, 7 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1025 changes made)

. replace educ=. if educ==9
(1 real change made, 1 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(1 real change made, 1 to missing)

. replace race=.r if race==3
(6 real changes made, 6 to missing)

. replace race=.r if race==4
(0 real changes made)

. replace race=.r if race==5
(0 real changes made)

. recode race (1=7) (6=1) (7=2) (8=3) (9=4)
(race: 1018 changes made)

. label values race racelabels

. 
. save gallup2001-11, replace
file gallup2001-11.dta saved

. 
. 
. 
. infix 1 lines weight 1:7-10 sex 1:65-65 state 1:13-14 advertisers 1:88 busexecs 1:86 
> collegeteachers 1:85 policemen 1:87 nurses 1:89 educ 1:68 age 1:66-67 race 1:71-72 us
> ing 20020207.dat, clear
(1001 observations read)

. gen date=mdy(2,8,2002)

. label values educ education

. label values state states

. foreach var of varlist advertisers busexecs collegeteachers policemen nurses {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(39 real changes made, 39 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(16 real changes made, 16 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(36 real changes made, 36 to missing)
(0 real changes made)
(0 real changes made)
(7 real changes made, 7 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(4 real changes made, 4 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(16 real changes made, 16 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1001 changes made)

. replace educ=. if educ==9
(6 real changes made, 6 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(1 real change made, 1 to missing)

. replace race=.r if race==3
(11 real changes made, 11 to missing)

. replace race=.r if race==4
(0 real changes made)

. replace race=.r if race==5
(0 real changes made)

. recode race (1=7) (6=1) (7=2) (8=3) (9=4)
(race: 989 changes made)

. label values race racelabels

. 
. save gallup2002-02, replace
file gallup2002-02.dta saved

. 
. 
. 
. infix 1 lines weight 1:7-10 sex 1:66-66 state 1:13-14 doctors 1:111 advertisers 1:103
>  lawyers 1:110 congressmen 1:108 busexecs 1:105 journalists 1:118 unionleaders 1:119 
> buildingcontractors 1:115 realtors 1:120 clergy 1:107 carsalesmen 1:106 funeraldirect
> ors 1:116 policemen 1:113 bankers 1:104 pharmacists 1:109 stockbrokers 1:121 nurses 1
> :112 educ 1:69 age 1:67-68 race 1:72-73 using 2002_11_22x.dat, clear
(1017 observations read)

. gen date=mdy(11,22,2002)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs journalists u
> nionleaders buildingcontractors realtors clergy carsalesmen funeraldirectors policeme
> n bankers pharmacists stockbrokers nurses {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(3 real changes made, 3 to missing)
(0 real changes made)
(0 real changes made)
(52 real changes made, 52 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(19 real changes made, 19 to missing)
(0 real changes made)
(0 real changes made)
(17 real changes made, 17 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(20 real changes made, 20 to missing)
(0 real changes made)
(0 real changes made)
(17 real changes made, 17 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(52 real changes made, 52 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(32 real changes made, 32 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(22 real changes made, 22 to missing)
(0 real changes made)
(0 real changes made)
(28 real changes made, 28 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(14 real changes made, 14 to missing)
(0 real changes made)
(0 real changes made)
(65 real changes made, 65 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(4 real changes made, 4 to missing)
(0 real changes made)
(0 real changes made)
(8 real changes made, 8 to missing)
(0 real changes made)
(0 real changes made)
(9 real changes made, 9 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(56 real changes made, 56 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(5 real changes made, 5 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(14 real changes made, 14 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1017 changes made)

. replace educ=. if educ==9
(4 real changes made, 4 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(1 real change made, 1 to missing)

. replace race=.r if race==3
(7 real changes made, 7 to missing)

. replace race=.r if race==4
(0 real changes made)

. replace race=.r if race==5
(0 real changes made)

. recode race (1=7) (6=1) (7=2) (8=3) (9=4)
(race: 1009 changes made)

. label values race racelabels

. 
. save gallup2002-11, replace
file gallup2002-11.dta saved

. 
. 
. 
. infix 1 lines weight 1:7-10 sex 1:73-73 state 1:13-14 doctors 1:119 advertisers 1:111
>  lawyers 1:118 congressmen 1:116 busexecs 1:113 journalists 1:128 senators 1:130 coll
> egeteachers 1:123 engineers 1:125 clergy 1:115 carsalesmen 1:114 insurancesales 1:127
>  policemen 1:121 bankers 1:112 pharmacists 1:117 stockbrokers 1:133 dentists 1:124 nu
> rses 1:120 educ 1:76 age 1:74-75 race 1:79-80 using ga200351.dat, clear
(1004 observations read)

. gen date=mdy(11,16,2003)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs journalists s
> enators collegeteachers engineers clergy carsalesmen insurancesales policemen bankers
>  pharmacists stockbrokers dentists nurses {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(0 real changes made)
(0 real changes made)
(3 real changes made, 3 to missing)
(35 real changes made, 35 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(7 real changes made, 7 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(6 real changes made, 6 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(12 real changes made, 12 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(7 real changes made, 7 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(4 real changes made, 4 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(17 real changes made, 17 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(25 real changes made, 25 to missing)
(0 real changes made)
(4 real changes made, 4 to missing)
(8 real changes made, 8 to missing)
(0 real changes made)
(4 real changes made, 4 to missing)
(13 real changes made, 13 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(13 real changes made, 13 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(1 real change made, 1 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(9 real changes made, 9 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(4 real changes made, 4 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(19 real changes made, 19 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(5 real changes made, 5 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(4 real changes made, 4 to missing)
(0 real changes made)
(1 real change made, 1 to missing)

. replace age=. if age==0
(16 real changes made, 16 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1004 changes made)

. replace educ=. if educ==9
(1 real change made, 1 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(3 real changes made, 3 to missing)

. replace race=.r if race==3
(13 real changes made, 13 to missing)

. replace race=.r if race==4
(0 real changes made)

. replace race=.r if race==5
(0 real changes made)

. recode race (1=7) (6=1) (7=2) (8=3) (9=4)
(race: 988 changes made)

. label values race racelabels

. 
. save gallup2003-11, replace
file gallup2003-11.dta saved

. 
. 
. 
. infix 1 lines weight 1:7-10 sex 1:75-75 state 1:13-14 doctors 1:121 advertisers 1:113
>  lawyers 1:120 congressmen 1:118 busexecs 1:115 clergy 1:117 carsalesmen 1:116 police
> men 1:123 bankers 1:114 statepoliticians 1:132 localpoliticians 1:128 pharmacists 1:1
> 19 tvreporters 1:133 newspaperreporters 1:130 nurses 1:122 educ 1:78 age 1:76-77 race
>  1:81-82 using g200444.dat, clear
(1015 observations read)

. gen date=mdy(11,21,2004)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs clergy carsal
> esmen policemen bankers statepoliticians localpoliticians pharmacists tvreporters new
> spaperreporters nurses {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(3 real changes made, 3 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(40 real changes made, 40 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(18 real changes made, 18 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(12 real changes made, 12 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(23 real changes made, 23 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(23 real changes made, 23 to missing)
(0 real changes made)
(5 real changes made, 5 to missing)
(15 real changes made, 15 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(2 real changes made, 2 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(7 real changes made, 7 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(10 real changes made, 10 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(14 real changes made, 14 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(4 real changes made, 4 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(6 real changes made, 6 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(11 real changes made, 11 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(4 real changes made, 4 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)

. replace age=. if age==0
(8 real changes made, 8 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1015 changes made)

. replace educ=. if educ==9
(3 real changes made, 3 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(0 real changes made)

. replace race=.r if race==3
(12 real changes made, 12 to missing)

. replace race=.r if race==4
(0 real changes made)

. replace race=.r if race==5
(0 real changes made)

. recode race (1=7) (6=1) (7=2) (8=3) (9=4)
(race: 1003 changes made)

. label values race racelabels

. 
. save gallup2004-11, replace
file gallup2004-11.dta saved

. 
. 
. 
. infix 1 lines weight 1:7-10 sex 1:118-118 state 1:13-14 doctors 1:169 advertisers 1:1
> 61 lawyers 1:168 congressmen 1:166 busexecs 1:163 journalists 1:176 senators 1:181 un
> ionleaders 1:177 buildingcontractors 1:173 realtors 1:178 clergy 1:165 carsalesmen 1:
> 164 funeraldirectors 1:174 policemen 1:171 bankers 1:162 pharmacists 1:167 stockbroke
> rs 1:179 nurses 1:170 educ 1:121 age 1:119-120 race 1:124-125 using g200556.dat, clea
> r
(1002 observations read)

. gen date=mdy(11,17,2005)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs journalists s
> enators unionleaders buildingcontractors realtors clergy carsalesmen funeraldirectors
>  policemen bankers pharmacists stockbrokers nurses {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(1 real change made, 1 to missing)
(0 real changes made)
(0 real changes made)
(42 real changes made, 42 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(10 real changes made, 10 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(7 real changes made, 7 to missing)
(0 real changes made)
(5 real changes made, 5 to missing)
(17 real changes made, 17 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(12 real changes made, 12 to missing)
(0 real changes made)
(0 real changes made)
(8 real changes made, 8 to missing)
(0 real changes made)
(6 real changes made, 6 to missing)
(55 real changes made, 55 to missing)
(0 real changes made)
(4 real changes made, 4 to missing)
(29 real changes made, 29 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(22 real changes made, 22 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(18 real changes made, 18 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(17 real changes made, 17 to missing)
(0 real changes made)
(0 real changes made)
(49 real changes made, 49 to missing)
(0 real changes made)
(5 real changes made, 5 to missing)
(2 real changes made, 2 to missing)
(0 real changes made)
(0 real changes made)
(12 real changes made, 12 to missing)
(0 real changes made)
(0 real changes made)
(4 real changes made, 4 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(47 real changes made, 47 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(3 real changes made, 3 to missing)
(0 real changes made)
(1 real change made, 1 to missing)

. replace age=. if age==0
(14 real changes made, 14 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1002 changes made)

. replace educ=. if educ==9
(5 real changes made, 5 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(1 real change made, 1 to missing)

. replace race=.r if race==10
(0 real changes made)

. replace race=.r if race==3
(7 real changes made, 7 to missing)

. replace race=.r if race==4
(7 real changes made, 7 to missing)

. replace race=.r if race==5
(0 real changes made)

. recode race (1=7) (6=1) (7=2) (8=3) (9=4)
(race: 965 changes made)

. label values race racelabels

. 
. save gallup2005-11, replace
file gallup2005-11.dta saved

. 
. 
. 
. infix 1 lines weight 1:5-8 sex 1:71-71 state 1:11-12 doctors 1:118 advertisers 1:110 
> lawyers 1:117 congressmen 1:115 busexecs 1:112 journalists 1:127 senators 1:129 colle
> geteachers 1:122 engineers 1:124 clergy 1:114 carsalesmen 1:113 insurancesales 1:126 
> policemen 1:120 bankers 1:111 pharmacists 1:116 stockbrokers 1:132 dentists 1:123 nur
> ses 1:119 educ 1:74 age 1:72-73 race 1:77-78 using G200651.dat, clear
(1009 observations read)

. gen date=mdy(12,8,2006)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs journalists s
> enators collegeteachers engineers clergy carsalesmen insurancesales policemen bankers
>  pharmacists stockbrokers dentists nurses {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(5 real changes made, 5 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(50 real changes made, 50 to missing)
(0 real changes made)
(6 real changes made, 6 to missing)
(12 real changes made, 12 to missing)
(0 real changes made)
(4 real changes made, 4 to missing)
(11 real changes made, 11 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(21 real changes made, 21 to missing)
(0 real changes made)
(0 real changes made)
(18 real changes made, 18 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(12 real changes made, 12 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(26 real changes made, 26 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(40 real changes made, 40 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(27 real changes made, 27 to missing)
(0 real changes made)
(6 real changes made, 6 to missing)
(12 real changes made, 12 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(11 real changes made, 11 to missing)
(0 real changes made)
(4 real changes made, 4 to missing)
(5 real changes made, 5 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(12 real changes made, 12 to missing)
(0 real changes made)
(4 real changes made, 4 to missing)
(8 real changes made, 8 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(48 real changes made, 48 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(5 real changes made, 5 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(5 real changes made, 5 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(6 real changes made, 6 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1009 changes made)

. replace educ=. if educ==9
(4 real changes made, 4 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(1 real change made, 1 to missing)

. replace race=.r if race==3
(6 real changes made, 6 to missing)

. replace race=.r if race==4
(0 real changes made)

. replace race=.r if race==5
(0 real changes made)

. recode race (1=7) (6=1) (7=2) (8=3) (9=4) (10=5)
(race: 1002 changes made)

. label values race racelabels

. 
. save gallup2006-12, replace
file gallup2006-12.dta saved

. 
. 
. 
. infix 1 lines weight 1:7-10 sex 1:81-81 state 1:13-14 doctors 1:135 advertisers 1:127
>  lawyers 1:134 busexecs 1:129 congressmen 1:132 clergy 1:131 carsalesmen 1:130 police
> men 1:137 bankers 1:128 statepoliticians 1:146 localpoliticians 1:142 pharmacists 1:1
> 33 tvreporters 1:147 newspaperreporters 1:144 nurses 1:136 educ 1:84 age 1:82-83 race
>  1:87-88 using g200739.dat, clear
(1006 observations read)

. gen date=mdy(11,30,2007)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers congressmen lawyers busexecs clergy carsal
> esmen policemen bankers statepoliticians localpoliticians pharmacists tvreporters new
> spaperreporters nurses {
  2.     label values `var' trust
  3.     replace `var'=.d if `var'==6
  4.     replace `var'=.r if `var'==0
  5.     replace `var'=.r if `var'==7
  6. }
(2 real changes made, 2 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(53 real changes made, 53 to missing)
(0 real changes made)
(4 real changes made, 4 to missing)
(6 real changes made, 6 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(7 real changes made, 7 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(15 real changes made, 15 to missing)
(0 real changes made)
(4 real changes made, 4 to missing)
(19 real changes made, 19 to missing)
(0 real changes made)
(6 real changes made, 6 to missing)
(13 real changes made, 13 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(1 real change made, 1 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(4 real changes made, 4 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(8 real changes made, 8 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(8 real changes made, 8 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(6 real changes made, 6 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(5 real changes made, 5 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(2 real changes made, 2 to missing)
(0 real changes made)
(4 real changes made, 4 to missing)
(3 real changes made, 3 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)

. replace age=. if age==0
(12 real changes made, 12 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1006 changes made)

. replace educ=. if educ==9
(9 real changes made, 9 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. replace race=.d if race==2
(0 real changes made)

. replace race=.r if race==3
(12 real changes made, 12 to missing)

. replace race=.r if race==4
(0 real changes made)

. replace race=.r if race==5
(0 real changes made)

. recode race (1=7) (6=1) (7=2) (8=3) (9=4)
(race: 994 changes made)

. label values race racelabels

. 
. save gallup2007-11, replace
file gallup2007-11.dta saved

. 
. 
. 
. infix 1 lines weight 1:7-10 sex 1:67-67 state 1:11-12 doctors 1:129 advertisers 1:121
>  lawyers 1:128 congressmen 1:126 busexecs 1:123 journalists 1:136 unionleaders 1:137 
> buildingcontractors 1:133 realtors 1:138 clergy 1:125 carsalesmen 1:124 funeraldirect
> ors 1:134 policemen 1:131 bankers 1:122 pharmacists 1:127 stockbrokers 1:139 nurses 1
> :130 educ 1:70 age 1:68-69 white 1:73 black 1:74 other1 1:75-76 other2 1:77-78 using 
> usa200844.dat, clear
(1010 observations read)

. gen date=mdy(11,7,2008)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs journalists u
> nionleaders buildingcontractors realtors clergy carsalesmen funeraldirectors policeme
> n bankers pharmacists stockbrokers nurses {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(2 real changes made, 2 to missing)
(0 real changes made)
(0 real changes made)
(26 real changes made, 26 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(6 real changes made, 6 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(7 real changes made, 7 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(8 real changes made, 8 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(6 real changes made, 6 to missing)
(0 real changes made)
(0 real changes made)
(35 real changes made, 35 to missing)
(0 real changes made)
(4 real changes made, 4 to missing)
(21 real changes made, 21 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(20 real changes made, 20 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(22 real changes made, 22 to missing)
(0 real changes made)
(4 real changes made, 4 to missing)
(8 real changes made, 8 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(44 real changes made, 44 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(0 real changes made)
(0 real changes made)
(0 real changes made)
(4 real changes made, 4 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(5 real changes made, 5 to missing)
(0 real changes made)
(0 real changes made)
(29 real changes made, 29 to missing)
(0 real changes made)
(4 real changes made, 4 to missing)
(3 real changes made, 3 to missing)
(0 real changes made)
(0 real changes made)

. replace age=. if age==0
(9 real changes made, 9 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1010 changes made)

. replace educ=. if educ==9
(2 real changes made, 2 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. gen race=1 if white==1
(136 missing values generated)

. replace race=2 if black==1 & race==.
(83 real changes made)

. replace race=3 if race==. & (other1==20 | other2==20)
(17 real changes made)

. replace race=4 if race==. & (other1==6 | other2==6)
(10 real changes made)

. replace race=5 if race==. & (other1==7 | other2==7)
(4 real changes made)

. replace race=6 if race==. & (other1==8 | other2==8)
(2 real changes made)

. replace race=7 if race==. & (other1==1 | other2==1)
(1 real change made)

. drop white black other1 other2

. label values race racelabels

. 
. save gallup2008-11, replace
file gallup2008-11.dta saved

. 
. 
. 
. infix 1 lines weight 1:7-10 sex 1:67-67 state 1:11-12 doctors 1:136 advertisers 1:128
>  lawyers 1:135 congressmen 1:133 busexecs 1:130 journalists 1:145 senators 1:147 coll
> egeteachers 1:140 engineers 1:142 clergy 1:132 carsalesmen 1:131 insurancesales 1:144
>  policemen 1:138 bankers 1:129 pharmacists 1:134 stockbrokers 1:149 dentists 1:141 nu
> rses 1:137 educ 1:70 age 1:68-69 white 1:73 black 1:74 other1 1:75-76 other2 1:77-78 
> using usa200921.dat, clear
(1017 observations read)

. gen date=mdy(11,20,2009)

. label values educ education

. label values state states

. foreach var of varlist doctors advertisers lawyers congressmen busexecs journalists s
> enators collegeteachers engineers clergy carsalesmen insurancesales policemen bankers
>  pharmacists stockbrokers dentists nurses {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(2 real changes made, 2 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(48 real changes made, 48 to missing)
(0 real changes made)
(5 real changes made, 5 to missing)
(10 real changes made, 10 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(10 real changes made, 10 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(21 real changes made, 21 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(15 real changes made, 15 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(8 real changes made, 8 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(29 real changes made, 29 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(43 real changes made, 43 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(33 real changes made, 33 to missing)
(0 real changes made)
(4 real changes made, 4 to missing)
(17 real changes made, 17 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(14 real changes made, 14 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(3 real changes made, 3 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(10 real changes made, 10 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(6 real changes made, 6 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(43 real changes made, 43 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(8 real changes made, 8 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(4 real changes made, 4 to missing)
(0 real changes made)
(1 real change made, 1 to missing)

. replace age=. if age==0
(23 real changes made, 23 to missing)

. recode sex (1 3 5 7 9 = 0) (0 2 4 6 8 = 1)
(sex: 1017 changes made)

. replace educ=. if educ==9
(9 real changes made, 9 to missing)

. replace educ=.d if educ==0
(0 real changes made)

. label values sex genders

. gen race=1 if white==1
(132 missing values generated)

. replace race=2 if black==1 & race==.
(65 real changes made)

. replace race=3 if race==. & (other1==20 | other2==20)
(14 real changes made)

. replace race=4 if race==. & (other1==6 | other2==6)
(6 real changes made)

. replace race=5 if race==. & (other1==7 | other2==7)
(5 real changes made)

. replace race=6 if race==. & (other1==8 | other2==8)
(1 real change made)

. replace race=7 if race==. & (other1==1 | other2==1)
(1 real change made)

. drop white black other1 other2

. label values race racelabels

. 
. save gallup2009-11, replace
file gallup2009-11.dta saved

. 
. use "2010_11_19x.dta", clear /*Data came directly from Gallup; not yet up on Roper*/

. gen date=mdy(11,19,2010)

. label values educ education

. label values state states

. rename wtfctr weight

. foreach var of varlist q3* {
  2.         label values `var' trust
  3.         replace `var'=.d if `var'==6
  4.         replace `var'=.r if `var'==0
  5.         replace `var'=.r if `var'==7
  6. }
(39 real changes made, 39 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(12 real changes made, 12 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(19 real changes made, 19 to missing)
(0 real changes made)
(0 real changes made)
(18 real changes made, 18 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(25 real changes made, 25 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(11 real changes made, 11 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(5 real changes made, 5 to missing)
(0 real changes made)
(0 real changes made)
(10 real changes made, 10 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(4 real changes made, 4 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(7 real changes made, 7 to missing)
(0 real changes made)
(0 real changes made)
(3 real changes made, 3 to missing)
(0 real changes made)
(0 real changes made)
(23 real changes made, 23 to missing)
(0 real changes made)
(0 real changes made)
(58 real changes made, 58 to missing)
(0 real changes made)
(6 real changes made, 6 to missing)
(18 real changes made, 18 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(13 real changes made, 13 to missing)
(0 real changes made)
(4 real changes made, 4 to missing)
(14 real changes made, 14 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(13 real changes made, 13 to missing)
(0 real changes made)
(2 real changes made, 2 to missing)
(14 real changes made, 14 to missing)
(0 real changes made)
(1 real change made, 1 to missing)
(26 real changes made, 26 to missing)
(0 real changes made)
(7 real changes made, 7 to missing)
(13 real changes made, 13 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(8 real changes made, 8 to missing)
(0 real changes made)
(3 real changes made, 3 to missing)
(32 real changes made, 32 to missing)
(0 real changes made)
(1 real change made, 1 to missing)

. for X in any q3a q3b q3c q3d q3e q3f q3g q3h q3i q3j q3k q3l q3m q3n q3o q3p q3q q3r 
> q3s q3t q3u q3v \ ///
>         Y in any advertisers bankers busexecs carsalesmen clergy congressmen pharmaci
> sts lawyers doctors nurses policemen mechanics daycareproviders schoolteachers judges
>  localpoliticians militaryofficers newspaperreporters nursinghomeoperators statepolit
> icians tvreporters lobbyists : ///
>         rename X Y

->  rename q3a advertisers

->  rename q3b bankers

->  rename q3c busexecs

->  rename q3d carsalesmen

->  rename q3e clergy

->  rename q3f congressmen

->  rename q3g pharmacists

->  rename q3h lawyers

->  rename q3i doctors

->  rename q3j nurses

->  rename q3k policemen

->  rename q3l mechanics

->  rename q3m daycareproviders

->  rename q3n schoolteachers

->  rename q3o judges

->  rename q3p localpoliticians

->  rename q3q militaryofficers

->  rename q3r newspaperreporters

->  rename q3s nursinghomeoperators

->  rename q3t statepoliticians

->  rename q3u tvreporters

->  rename q3v lobbyists

. drop mechanics daycareproviders schoolteachers judges militaryofficers nursinghomeope
> rators lobbyists

. replace age=. if age==0
(0 real changes made)

. gen sex=gr-1

. label values sex genders

. replace educ=. if educ==9
(0 real changes made)

. replace educ=.d if educ==0
(0 real changes made)

. gen race=1 if racewh==1
(141 missing values generated)

. replace race=2 if racebk==1 & race==.
(78 real changes made)

. replace race=3 if race==. & (raceoth_1==20 | raceoth_2==20)
(14 real changes made)

. replace race=4 if race==. & (raceoth_1==6 |  raceoth_2==6)
(11 real changes made)

. replace race=5 if race==. & (raceoth_1==7 |  raceoth_2==7)
(6 real changes made)

. replace race=6 if race==. & (raceoth_1==8 |  raceoth_2==8)
(2 real changes made)

. replace race=7 if race==. & (raceoth_1==1 |  raceoth_2==1)
(0 real changes made)

. label values race racelabels

. 
. keep date weight sex state advertisers-tvreporters age sex race educ

. 
. save gallup2010-11, replace
file gallup2010-11.dta saved

. 
. 
. clear *

. local files: dir . files "gallup*.dta"

. set obs 1
obs was 0, now 1

. gen str20 survey="X"

. foreach f of local files {
  2.         di "`f'"
  3.         append using "`f'"
  4.         replace survey="`f'" if survey==""
  5. }
gallup1976-06.dta
(1524 real changes made)
gallup1977-07.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1516 real changes made)
gallup1977-08.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1507 real changes made)
gallup1981-07.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1564 real changes made)
gallup1983-05.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1534 real changes made)
gallup1985-07.dta
weight was byte now float
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1536 real changes made)
gallup1990-02.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1228 real changes made)
gallup1991-05.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1002 real changes made)
gallup1992-06.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1206 real changes made)
gallup1993-07.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1011 real changes made)
gallup1994-09.dta
race was byte now float
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1009 real changes made)
gallup1995-10.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1229 real changes made)
gallup1996-12.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(813 real changes made)
gallup1997-11.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1003 real changes made)
gallup1998-10.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1013 real changes made)
gallup1999-11.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1011 real changes made)
gallup2000-11.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1028 real changes made)
gallup2001-11.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1025 real changes made)
gallup2002-02.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1001 real changes made)
gallup2002-11.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1017 real changes made)
gallup2003-11.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1004 real changes made)
gallup2004-11.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1015 real changes made)
gallup2005-11.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1002 real changes made)
gallup2006-12.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1009 real changes made)
gallup2007-11.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1006 real changes made)
gallup2008-11.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1010 real changes made)
gallup2009-11.dta
(label racelabels already defined)
(label genders already defined)
(label education already defined)
(label states already defined)
(label trust already defined)
(1017 real changes made)
gallup2010-11.dta
sex was byte now float
(1037 real changes made)

. drop if survey=="X"
(1 observation deleted)

. 
. cd ..
C:\Users\jwolfers\Documents\Justin@Wharton\Trust in Public Institutions\AER Archive\Gal
> lup honesty

. save gallup_honesty_raw.dta, replace
file gallup_honesty_raw.dta saved

. 
end of do-file

. do "Gallup_honesty_clean.do"

. global occupations advertisers bankers buildingcontractors busexecs carsalesmen clerg
> y collegeteachers congressmen dentists doctors engineers funeraldirectors insurancesa
> les journalists lawyers localpoliticians newspaperreporters nurses pharmacists police
> men realtors senators statepoliticians stockbrokers tvreporters unionleaders

. clear *

. set mem 100m

Current memory allocation

                    current                                 memory usage
    settable          value     description                 (1M = 1024k)
    --------------------------------------------------------------------
    set maxvar         5000     max. variables allowed           1.947M
    set memory          100M    max. data space                100.000M
    set matsize         400     max. RHS vars in models          1.254M
                                                            -----------
                                                               103.201M

. use "gallup_honesty_raw.dta", clear

. 
. * Clean technical variables
. rename date dt

. format dt %d

. gen str2 st=""
(31877 missing values generated)

. levelsof state, local(states)
11 12 13 14 15 16 21 22 23 24 25 26 27 31 32 33 34 41 42 43 44 45 46 47 48 51 52 53 54 
> 55 56 57 58 59 61 62 63 64 71 72 73 74 75 76 77 78 81 82 83 84

. qui foreach s of local states {

. drop state

. egen stid=group(st)
(4 missing values generated)

. gen wt=.
(31877 missing values generated)

. levelsof dt, local(dates)
6006 6412 6440 7878 8540 9324 10996 11458 11865 12253 12684 13075 13492 13824 14175 145
> 52 14927 15305 15379 15666 16025 16396 16757 17143 17500 17843 18221 18585

. qui foreach d of local dates {

. drop weight 

. rename race race_orig

. gen race3=race_orig
(303 missing values generated)

. replace race3=3 if race_orig>2 & race_orig<.
(1231 real changes made)

. label define race3 1 "White" 2 "Black" 3 "Other"

. label values race3 race3

. 
. * Organizing variables
. gen year=year(dt)

. 
. * Rename and relabel and reorder variables
. label define honesty 0 "Don't know" 1 "Very low" 2 "Low" 3 "Average" 4 "High" 5 "Very
>  high"

. order doctors-nurses, alphabetic

. order survey year dt st wt sex age educ race3 race_orig

. foreach v of global occupations {
  2.         recode `v' (7=.) (6=0) (5=1) (4=2) (3=3) (2=4) (1=5)
  3.         label values `v' honesty
  4.         gen high_`v'=(`v'>=4) if `v'<.
  5.         tab dt high_`v' [aw=wt], row nofreq /*check against published Gallup data*
> /
  6.         drop high_`v'
  7.         replace `v'=. if `v'==0 
  8. }
(advertisers: 14335 changes made)
(3702 missing values generated)

           |   high_advertisers
        dt |         0          1 |     Total
-----------+----------------------+----------
 11jun1976 |     88.54      11.46 |    100.00 
 22jul1977 |     89.75      10.25 |    100.00 
 27jul1981 |     89.26      10.74 |    100.00 
 20may1983 |     90.68       9.32 |    100.00 
 12jul1985 |     87.22      12.78 |    100.00 
 08feb1990 |     86.40      13.60 |    100.00 
 16may1991 |     86.33      13.67 |    100.00 
 26jun1992 |     89.23      10.77 |    100.00 
 19jul1993 |     91.38       8.62 |    100.00 
 23sep1994 |     87.48      12.52 |    100.00 
 19oct1995 |     89.60      10.40 |    100.00 
 09dec1996 |     87.96      12.04 |    100.00 
 06nov1997 |     87.65      12.35 |    100.00 
 23oct1998 |     89.70      10.30 |    100.00 
 04nov1999 |     90.14       9.86 |    100.00 
 13nov2000 |     89.66      10.34 |    100.00 
 26nov2001 |     87.70      12.30 |    100.00 
 08feb2002 |     85.68      14.32 |    100.00 
 22nov2002 |     90.29       9.71 |    100.00 
 16nov2003 |     87.42      12.58 |    100.00 
 21nov2004 |     89.61      10.39 |    100.00 
 17nov2005 |     88.92      11.08 |    100.00 
 08dec2006 |     88.91      11.09 |    100.00 
 30nov2007 |     92.99       7.01 |    100.00 
 07nov2008 |     89.97      10.03 |    100.00 
 20nov2009 |     88.37      11.63 |    100.00 
 19nov2010 |     88.25      11.75 |    100.00 
-----------+----------------------+----------
     Total |     88.85      11.15 |    100.00 

(0 real changes made)
(bankers: 12470 changes made)
(5100 missing values generated)

           |     high_bankers
        dt |         0          1 |     Total
-----------+----------------------+----------
 19aug1977 |     60.28      39.72 |    100.00 
 27jul1981 |     59.36      40.64 |    100.00 
 20may1983 |     61.05      38.95 |    100.00 
 12jul1985 |     61.58      38.42 |    100.00 
 08feb1990 |     67.76      32.24 |    100.00 
 16may1991 |     69.49      30.51 |    100.00 
 26jun1992 |     71.98      28.02 |    100.00 
 19jul1993 |     71.68      28.32 |    100.00 
 23sep1994 |     72.92      27.08 |    100.00 
 19oct1995 |     72.32      27.68 |    100.00 
 09dec1996 |     73.04      26.96 |    100.00 
 06nov1997 |     66.04      33.96 |    100.00 
 23oct1998 |     69.50      30.50 |    100.00 
 04nov1999 |     68.88      31.12 |    100.00 
 13nov2000 |     62.83      37.17 |    100.00 
 26nov2001 |     65.63      34.37 |    100.00 
 22nov2002 |     63.51      36.49 |    100.00 
 16nov2003 |     64.23      35.77 |    100.00 
 21nov2004 |     63.98      36.02 |    100.00 
 17nov2005 |     58.93      41.07 |    100.00 
 08dec2006 |     62.91      37.09 |    100.00 
 30nov2007 |     64.73      35.27 |    100.00 
 07nov2008 |     76.68      23.32 |    100.00 
 20nov2009 |     80.20      19.80 |    100.00 
 19nov2010 |     76.60      23.40 |    100.00 
-----------+----------------------+----------
     Total |     66.95      33.05 |    100.00 

(0 real changes made)
(buildingcontractors: 8963 changes made)
(11116 missing values generated)

           | high_buildingcontract
           |          ors
        dt |         0          1 |     Total
-----------+----------------------+----------
 11jun1976 |     77.23      22.77 |    100.00 
 22jul1977 |     80.97      19.03 |    100.00 
 27jul1981 |     79.44      20.56 |    100.00 
 20may1983 |     81.53      18.47 |    100.00 
 12jul1985 |     78.23      21.77 |    100.00 
 08feb1990 |     78.35      21.65 |    100.00 
 16may1991 |     78.37      21.63 |    100.00 
 26jun1992 |     79.12      20.88 |    100.00 
 19jul1993 |     79.08      20.92 |    100.00 
 23sep1994 |     82.57      17.43 |    100.00 
 19oct1995 |     78.45      21.55 |    100.00 
 09dec1996 |     76.07      23.93 |    100.00 
 06nov1997 |     78.55      21.45 |    100.00 
 23oct1998 |     80.99      19.01 |    100.00 
 04nov1999 |     81.47      18.53 |    100.00 
 13nov2000 |     75.87      24.13 |    100.00 
 22nov2002 |     79.13      20.87 |    100.00 
 17nov2005 |     79.16      20.84 |    100.00 
 07nov2008 |     77.13      22.87 |    100.00 
-----------+----------------------+----------
     Total |     79.05      20.95 |    100.00 

(0 real changes made)
(busexecs: 12368 changes made)
(2560 missing values generated)

           |     high_busexecs
        dt |         0          1 |     Total
-----------+----------------------+----------
 11jun1976 |     80.24      19.76 |    100.00 
 22jul1977 |     80.41      19.59 |    100.00 
 27jul1981 |     79.47      20.53 |    100.00 
 20may1983 |     80.92      19.08 |    100.00 
 12jul1985 |     76.26      23.74 |    100.00 
 08feb1990 |     74.10      25.90 |    100.00 
 16may1991 |     77.09      22.91 |    100.00 
 26jun1992 |     81.03      18.97 |    100.00 
 19jul1993 |     78.84      21.16 |    100.00 
 23sep1994 |     77.79      22.21 |    100.00 
 19oct1995 |     80.75      19.25 |    100.00 
 09dec1996 |     82.23      17.77 |    100.00 
 06nov1997 |     78.79      21.21 |    100.00 
 23oct1998 |     77.98      22.02 |    100.00 
 04nov1999 |     76.48      23.52 |    100.00 
 13nov2000 |     75.99      24.01 |    100.00 
 26nov2001 |     74.06      25.94 |    100.00 
 08feb2002 |     83.63      16.37 |    100.00 
 22nov2002 |     83.11      16.89 |    100.00 
 16nov2003 |     81.56      18.44 |    100.00 
 21nov2004 |     79.23      20.77 |    100.00 
 17nov2005 |     83.46      16.54 |    100.00 
 08dec2006 |     81.27      18.73 |    100.00 
 30nov2007 |     85.38      14.62 |    100.00 
 07nov2008 |     87.54      12.46 |    100.00 
 20nov2009 |     87.35      12.65 |    100.00 
 19nov2010 |     85.34      14.66 |    100.00 
-----------+----------------------+----------
     Total |     80.28      19.72 |    100.00 

(0 real changes made)
(carsalesmen: 16953 changes made)
(4757 missing values generated)

           |   high_carsalesmen
        dt |         0          1 |     Total
-----------+----------------------+----------
 22jul1977 |     91.60       8.40 |    100.00 
 27jul1981 |     93.50       6.50 |    100.00 
 20may1983 |     94.06       5.94 |    100.00 
 12jul1985 |     94.10       5.90 |    100.00 
 08feb1990 |     93.33       6.67 |    100.00 
 16may1991 |     91.50       8.50 |    100.00 
 26jun1992 |     93.84       6.16 |    100.00 
 19jul1993 |     93.87       6.13 |    100.00 
 23sep1994 |     93.64       6.36 |    100.00 
 19oct1995 |     94.23       5.77 |    100.00 
 09dec1996 |     91.93       8.07 |    100.00 
 06nov1997 |     92.99       7.01 |    100.00 
 23oct1998 |     94.20       5.80 |    100.00 
 04nov1999 |     92.25       7.75 |    100.00 
 13nov2000 |     92.63       7.37 |    100.00 
 26nov2001 |     92.10       7.90 |    100.00 
 22nov2002 |     93.44       6.56 |    100.00 
 16nov2003 |     93.42       6.58 |    100.00 
 21nov2004 |     91.19       8.81 |    100.00 
 17nov2005 |     91.15       8.85 |    100.00 
 08dec2006 |     92.61       7.39 |    100.00 
 30nov2007 |     94.53       5.47 |    100.00 
 07nov2008 |     93.38       6.62 |    100.00 
 20nov2009 |     93.76       6.24 |    100.00 
 19nov2010 |     92.41       7.59 |    100.00 
-----------+----------------------+----------
     Total |     93.08       6.92 |    100.00 

(0 real changes made)
(clergy: 18224 changes made)
(5361 missing values generated)

           |      high_clergy
        dt |         0          1 |     Total
-----------+----------------------+----------
 22jul1977 |     37.11      62.89 |    100.00 
 27jul1981 |     34.46      65.54 |    100.00 
 20may1983 |     33.20      66.80 |    100.00 
 12jul1985 |     30.88      69.12 |    100.00 
 08feb1990 |     43.10      56.90 |    100.00 
 16may1991 |     39.95      60.05 |    100.00 
 26jun1992 |     44.19      55.81 |    100.00 
 19jul1993 |     46.07      53.93 |    100.00 
 23sep1994 |     44.79      55.21 |    100.00 
 19oct1995 |     41.74      58.26 |    100.00 
 09dec1996 |     40.54      59.46 |    100.00 
 06nov1997 |     38.43      61.57 |    100.00 
 23oct1998 |     38.63      61.37 |    100.00 
 04nov1999 |     42.57      57.43 |    100.00 
 13nov2000 |     38.19      61.81 |    100.00 
 26nov2001 |     33.54      66.46 |    100.00 
 22nov2002 |     46.30      53.70 |    100.00 
 16nov2003 |     43.10      56.90 |    100.00 
 21nov2004 |     41.80      58.20 |    100.00 
 17nov2005 |     44.76      55.24 |    100.00 
 08dec2006 |     39.51      60.49 |    100.00 
 30nov2007 |     45.38      54.62 |    100.00 
 07nov2008 |     42.01      57.99 |    100.00 
 20nov2009 |     47.91      52.09 |    100.00 
 19nov2010 |     45.19      54.81 |    100.00 
-----------+----------------------+----------
     Total |     40.41      59.59 |    100.00 

(0 real changes made)
(collegeteachers: 13949 changes made)
(9386 missing values generated)

           | high_collegeteachers
        dt |         0          1 |     Total
-----------+----------------------+----------
 11jun1976 |     54.69      45.31 |    100.00 
 22jul1977 |     54.63      45.37 |    100.00 
 27jul1981 |     49.31      50.69 |    100.00 
 20may1983 |     47.86      52.14 |    100.00 
 12jul1985 |     42.96      57.04 |    100.00 
 08feb1990 |     44.57      55.43 |    100.00 
 16may1991 |     47.59      52.41 |    100.00 
 26jun1992 |     46.16      53.84 |    100.00 
 19jul1993 |     45.74      54.26 |    100.00 
 23sep1994 |     48.77      51.23 |    100.00 
 19oct1995 |     45.45      54.55 |    100.00 
 09dec1996 |     40.88      59.12 |    100.00 
 06nov1997 |     41.76      58.24 |    100.00 
 23oct1998 |     45.54      54.46 |    100.00 
 04nov1999 |     46.70      53.30 |    100.00 
 13nov2000 |     37.52      62.48 |    100.00 
 26nov2001 |     39.62      60.38 |    100.00 
 08feb2002 |     40.84      59.16 |    100.00 
 16nov2003 |     39.76      60.24 |    100.00 
 08dec2006 |     39.59      60.41 |    100.00 
 20nov2009 |     44.50      55.50 |    100.00 
-----------+----------------------+----------
     Total |     45.48      54.52 |    100.00 

(0 real changes made)
(congressmen: 14770 changes made)
(3648 missing values generated)

           |   high_congressmen
        dt |         0          1 |     Total
-----------+----------------------+----------
 11jun1976 |     85.51      14.49 |    100.00 
 22jul1977 |     83.85      16.15 |    100.00 
 27jul1981 |     84.29      15.71 |    100.00 
 20may1983 |     85.29      14.71 |    100.00 
 12jul1985 |     79.35      20.65 |    100.00 
 08feb1990 |     79.24      20.76 |    100.00 
 16may1991 |     79.97      20.03 |    100.00 
 26jun1992 |     88.96      11.04 |    100.00 
 19jul1993 |     85.94      14.06 |    100.00 
 23sep1994 |     90.47       9.53 |    100.00 
 19oct1995 |     89.32      10.68 |    100.00 
 09dec1996 |     84.99      15.01 |    100.00 
 06nov1997 |     87.02      12.98 |    100.00 
 23oct1998 |     81.99      18.01 |    100.00 
 04nov1999 |     88.54      11.46 |    100.00 
 13nov2000 |     78.28      21.72 |    100.00 
 26nov2001 |     74.29      25.71 |    100.00 
 22nov2002 |     82.52      17.48 |    100.00 
 16nov2003 |     82.31      17.69 |    100.00 
 21nov2004 |     79.59      20.41 |    100.00 
 17nov2005 |     85.97      14.03 |    100.00 
 08dec2006 |     85.70      14.30 |    100.00 
 30nov2007 |     91.31       8.69 |    100.00 
 07nov2008 |     87.52      12.48 |    100.00 
 20nov2009 |     91.13       8.87 |    100.00 
 19nov2010 |     90.58       9.42 |    100.00 
-----------+----------------------+----------
     Total |     84.63      15.37 |    100.00 

(0 real changes made)
(dentists: 11873 changes made)
(12523 missing values generated)

           |     high_dentists
        dt |         0          1 |     Total
-----------+----------------------+----------
 27jul1981 |     46.10      53.90 |    100.00 
 20may1983 |     47.83      52.17 |    100.00 
 12jul1985 |     42.97      57.03 |    100.00 
 08feb1990 |     46.75      53.25 |    100.00 
 16may1991 |     47.69      52.31 |    100.00 
 26jun1992 |     48.21      51.79 |    100.00 
 19jul1993 |     49.10      50.90 |    100.00 
 23sep1994 |     48.85      51.15 |    100.00 
 19oct1995 |     44.75      55.25 |    100.00 
 09dec1996 |     45.33      54.67 |    100.00 
 06nov1997 |     45.21      54.79 |    100.00 
 23oct1998 |     46.18      53.82 |    100.00 
 04nov1999 |     47.54      52.46 |    100.00 
 13nov2000 |     41.67      58.33 |    100.00 
 26nov2001 |     43.65      56.35 |    100.00 
 16nov2003 |     38.49      61.51 |    100.00 
 08dec2006 |     37.26      62.74 |    100.00 
 20nov2009 |     42.28      57.72 |    100.00 
-----------+----------------------+----------
     Total |     45.00      55.00 |    100.00 

(0 real changes made)
(doctors: 20387 changes made)
(1231 missing values generated)

           |     high_doctors
        dt |         0          1 |     Total
-----------+----------------------+----------
 11jun1976 |     44.39      55.61 |    100.00 
 22jul1977 |     45.63      54.37 |    100.00 
 19aug1977 |     48.92      51.08 |    100.00 
 27jul1981 |     48.65      51.35 |    100.00 
 20may1983 |     46.39      53.61 |    100.00 
 12jul1985 |     42.33      57.67 |    100.00 
 08feb1990 |     47.29      52.71 |    100.00 
 16may1991 |     45.17      54.83 |    100.00 
 26jun1992 |     47.10      52.90 |    100.00 
 19jul1993 |     48.15      51.85 |    100.00 
 23sep1994 |     53.06      46.94 |    100.00 
 19oct1995 |     45.42      54.58 |    100.00 
 09dec1996 |     44.53      55.47 |    100.00 
 06nov1997 |     42.79      57.21 |    100.00 
 23oct1998 |     42.23      57.77 |    100.00 
 04nov1999 |     41.63      58.37 |    100.00 
 13nov2000 |     36.83      63.17 |    100.00 
 26nov2001 |     34.13      65.87 |    100.00 
 22nov2002 |     36.53      63.47 |    100.00 
 16nov2003 |     31.75      68.25 |    100.00 
 21nov2004 |     32.52      67.48 |    100.00 
 17nov2005 |     35.00      65.00 |    100.00 
 08dec2006 |     31.27      68.73 |    100.00 
 30nov2007 |     36.42      63.58 |    100.00 
 07nov2008 |     35.87      64.13 |    100.00 
 20nov2009 |     34.74      65.26 |    100.00 
 19nov2010 |     33.47      66.53 |    100.00 
-----------+----------------------+----------
     Total |     41.74      58.26 |    100.00 

(0 real changes made)
(engineers: 12708 changes made)
(10621 missing values generated)

           |    high_engineers
        dt |         0          1 |     Total
-----------+----------------------+----------
 11jun1976 |     49.63      50.37 |    100.00 
 22jul1977 |     51.14      48.86 |    100.00 
 27jul1981 |     45.04      54.96 |    100.00 
 20may1983 |     48.38      51.62 |    100.00 
 12jul1985 |     42.96      57.04 |    100.00 
 08feb1990 |     44.62      55.38 |    100.00 
 16may1991 |     48.91      51.09 |    100.00 
 26jun1992 |     47.39      52.61 |    100.00 
 19jul1993 |     47.67      52.33 |    100.00 
 23sep1994 |     49.03      50.97 |    100.00 
 19oct1995 |     43.74      56.26 |    100.00 
 09dec1996 |     47.27      52.73 |    100.00 
 06nov1997 |     46.61      53.39 |    100.00 
 23oct1998 |     48.62      51.38 |    100.00 
 04nov1999 |     48.56      51.44 |    100.00 
 13nov2000 |     41.35      58.65 |    100.00 
 26nov2001 |     37.43      62.57 |    100.00 
 16nov2003 |     39.12      60.88 |    100.00 
 08dec2006 |     36.61      63.39 |    100.00 
 20nov2009 |     35.66      64.34 |    100.00 
-----------+----------------------+----------
     Total |     45.11      54.89 |    100.00 

(0 real changes made)
(funeraldirectors: 8777 changes made)
(14564 missing values generated)

           | high_funeraldirectors
        dt |         0          1 |     Total
-----------+----------------------+----------
 27jul1981 |     66.72      33.28 |    100.00 
 20may1983 |     67.58      32.42 |    100.00 
 12jul1985 |     65.37      34.63 |    100.00 
 08feb1990 |     61.61      38.39 |    100.00 
 16may1991 |     61.40      38.60 |    100.00 
 26jun1992 |     61.90      38.10 |    100.00 
 19jul1993 |     64.54      35.46 |    100.00 
 23sep1994 |     68.25      31.75 |    100.00 
 19oct1995 |     62.82      37.18 |    100.00 
 09dec1996 |     62.78      37.22 |    100.00 
 06nov1997 |     60.68      39.32 |    100.00 
 23oct1998 |     66.00      34.00 |    100.00 
 04nov1999 |     63.64      36.36 |    100.00 
 13nov2000 |     62.36      37.64 |    100.00 
 22nov2002 |     57.23      42.77 |    100.00 
 17nov2005 |     53.12      46.88 |    100.00 
 07nov2008 |     50.98      49.02 |    100.00 
-----------+----------------------+----------
     Total |     62.48      37.52 |    100.00 

(0 real changes made)
(insurancesales: 10071 changes made)
(11198 missing values generated)

           |  high_insurancesales
        dt |         0          1 |     Total
-----------+----------------------+----------
 22jul1977 |     83.95      16.05 |    100.00 
 27jul1981 |     88.13      11.87 |    100.00 
 20may1983 |     86.33      13.67 |    100.00 
 12jul1985 |     89.59      10.41 |    100.00 
 08feb1990 |     86.08      13.92 |    100.00 
 16may1991 |     85.36      14.64 |    100.00 
 26jun1992 |     90.50       9.50 |    100.00 
 19jul1993 |     90.27       9.73 |    100.00 
 23sep1994 |     90.44       9.56 |    100.00 
 19oct1995 |     88.64      11.36 |    100.00 
 09dec1996 |     88.93      11.07 |    100.00 
 06nov1997 |     88.01      11.99 |    100.00 
 23oct1998 |     89.15      10.85 |    100.00 
 04nov1999 |     89.92      10.08 |    100.00 
 13nov2000 |     89.81      10.19 |    100.00 
 26nov2001 |     87.14      12.86 |    100.00 
 16nov2003 |     88.59      11.41 |    100.00 
 08dec2006 |     86.71      13.29 |    100.00 
 20nov2009 |     90.44       9.56 |    100.00 
-----------+----------------------+----------
     Total |     88.16      11.84 |    100.00 

(0 real changes made)
(journalists: 12315 changes made)
(6880 missing values generated)

           |   high_journalists
        dt |         0          1 |     Total
-----------+----------------------+----------
 11jun1976 |     66.84      33.16 |    100.00 
 22jul1977 |     65.23      34.77 |    100.00 
 27jul1981 |     63.94      36.06 |    100.00 
 20may1983 |     69.26      30.74 |    100.00 
 12jul1985 |     67.26      32.74 |    100.00 
 08feb1990 |     68.83      31.17 |    100.00 
 16may1991 |     71.85      28.15 |    100.00 
 26jun1992 |     72.53      27.47 |    100.00 
 19jul1993 |     73.31      26.69 |    100.00 
 23sep1994 |     80.08      19.92 |    100.00 
 19oct1995 |     76.37      23.63 |    100.00 
 09dec1996 |     75.98      24.02 |    100.00 
 06nov1997 |     75.87      24.13 |    100.00 
 23oct1998 |     78.25      21.75 |    100.00 
 04nov1999 |     76.21      23.79 |    100.00 
 13nov2000 |     78.92      21.08 |    100.00 
 26nov2001 |     70.24      29.76 |    100.00 
 22nov2002 |     72.87      27.13 |    100.00 
 16nov2003 |     74.26      25.74 |    100.00 
 17nov2005 |     72.33      27.67 |    100.00 
 08dec2006 |     73.54      26.46 |    100.00 
 07nov2008 |     75.49      24.51 |    100.00 
 20nov2009 |     77.01      22.99 |    100.00 
-----------+----------------------+----------
     Total |     72.21      27.79 |    100.00 

(0 real changes made)
(lawyers: 15516 changes made)
(3705 missing values generated)

           |     high_lawyers
        dt |         0          1 |     Total
-----------+----------------------+----------
 11jun1976 |     75.20      24.80 |    100.00 
 22jul1977 |     73.25      26.75 |    100.00 
 27jul1981 |     73.77      26.23 |    100.00 
 20may1983 |     74.64      25.36 |    100.00 
 12jul1985 |     72.65      27.35 |    100.00 
 08feb1990 |     76.55      23.45 |    100.00 
 16may1991 |     77.41      22.59 |    100.00 
 26jun1992 |     81.90      18.10 |    100.00 
 19jul1993 |     83.27      16.73 |    100.00 
 23sep1994 |     83.33      16.67 |    100.00 
 19oct1995 |     83.75      16.25 |    100.00 
 09dec1996 |     82.52      17.48 |    100.00 
 06nov1997 |     84.58      15.42 |    100.00 
 23oct1998 |     85.85      14.15 |    100.00 
 04nov1999 |     86.53      13.47 |    100.00 
 13nov2000 |     83.24      16.76 |    100.00 
 26nov2001 |     82.10      17.90 |    100.00 
 22nov2002 |     81.56      18.44 |    100.00 
 16nov2003 |     84.01      15.99 |    100.00 
 21nov2004 |     81.70      18.30 |    100.00 
 17nov2005 |     81.51      18.49 |    100.00 
 08dec2006 |     81.73      18.27 |    100.00 
 30nov2007 |     85.18      14.82 |    100.00 
 07nov2008 |     82.06      17.94 |    100.00 
 20nov2009 |     86.63      13.37 |    100.00 
 19nov2010 |     83.57      16.43 |    100.00 
-----------+----------------------+----------
     Total |     80.38      19.62 |    100.00 

(0 real changes made)
(localpoliticians: 8717 changes made)
(12229 missing values generated)

           | high_localpoliticians
        dt |         0          1 |     Total
-----------+----------------------+----------
 19aug1977 |     85.37      14.63 |    100.00 
 27jul1981 |     85.02      14.98 |    100.00 
 20may1983 |     82.62      17.38 |    100.00 
 12jul1985 |     80.99      19.01 |    100.00 
 08feb1990 |     78.35      21.65 |    100.00 
 16may1991 |     80.42      19.58 |    100.00 
 26jun1992 |     84.06      15.94 |    100.00 
 19jul1993 |     80.90      19.10 |    100.00 
 23sep1994 |     81.60      18.40 |    100.00 
 19oct1995 |     78.87      21.13 |    100.00 
 09dec1996 |     80.49      19.51 |    100.00 
 06nov1997 |     79.72      20.28 |    100.00 
 23oct1998 |     78.55      21.45 |    100.00 
 04nov1999 |     79.10      20.90 |    100.00 
 13nov2000 |     73.93      26.07 |    100.00 
 21nov2004 |     74.04      25.96 |    100.00 
 30nov2007 |     79.65      20.35 |    100.00 
 19nov2010 |     79.74      20.26 |    100.00 
-----------+----------------------+----------
     Total |     80.53      19.47 |    100.00 

(0 real changes made)
(newspaperreporters: 8736 changes made)
(13635 missing values generated)

           | high_newspaperreporte
           |          rs
        dt |         0          1 |     Total
-----------+----------------------+----------
 27jul1981 |     68.35      31.65 |    100.00 
 20may1983 |     72.92      27.08 |    100.00 
 12jul1985 |     70.27      29.73 |    100.00 
 08feb1990 |     75.23      24.77 |    100.00 
 16may1991 |     75.17      24.83 |    100.00 
 26jun1992 |     74.69      25.31 |    100.00 
 19jul1993 |     78.05      21.95 |    100.00 
 23sep1994 |     82.64      17.36 |    100.00 
 19oct1995 |     79.37      20.63 |    100.00 
 09dec1996 |     81.83      18.17 |    100.00 
 06nov1997 |     80.10      19.90 |    100.00 
 23oct1998 |     79.68      20.32 |    100.00 
 04nov1999 |     81.17      18.83 |    100.00 
 13nov2000 |     83.80      16.20 |    100.00 
 21nov2004 |     78.59      21.41 |    100.00 
 30nov2007 |     77.68      22.32 |    100.00 
 19nov2010 |     77.38      22.62 |    100.00 
-----------+----------------------+----------
     Total |     76.75      23.25 |    100.00 

(0 real changes made)
(nurses: 10334 changes made)
(19771 missing values generated)

           |      high_nurses
        dt |         0          1 |     Total
-----------+----------------------+----------
 13nov2000 |     20.92      79.08 |    100.00 
 26nov2001 |     15.41      84.59 |    100.00 
 08feb2002 |     16.95      83.05 |    100.00 
 22nov2002 |     20.13      79.87 |    100.00 
 16nov2003 |     16.72      83.28 |    100.00 
 21nov2004 |     20.91      79.09 |    100.00 
 17nov2005 |     17.65      82.35 |    100.00 
 08dec2006 |     15.46      84.54 |    100.00 
 30nov2007 |     16.48      83.52 |    100.00 
 07nov2008 |     15.39      84.61 |    100.00 
 20nov2009 |     16.45      83.55 |    100.00 
 19nov2010 |     17.62      82.38 |    100.00 
-----------+----------------------+----------
     Total |     17.51      82.49 |    100.00 

(0 real changes made)
(pharmacists: 18601 changes made)
(5890 missing values generated)

           |   high_pharmacists
        dt |         0          1 |     Total
-----------+----------------------+----------
 27jul1981 |     38.98      61.02 |    100.00 
 20may1983 |     37.32      62.68 |    100.00 
 12jul1985 |     33.52      66.48 |    100.00 
 08feb1990 |     36.17      63.83 |    100.00 
 16may1991 |     37.28      62.72 |    100.00 
 26jun1992 |     33.12      66.88 |    100.00 
 19jul1993 |     34.76      65.24 |    100.00 
 23sep1994 |     37.79      62.21 |    100.00 
 19oct1995 |     33.81      66.19 |    100.00 
 09dec1996 |     35.04      64.96 |    100.00 
 06nov1997 |     31.14      68.86 |    100.00 
 23oct1998 |     34.94      65.06 |    100.00 
 04nov1999 |     31.13      68.87 |    100.00 
 13nov2000 |     33.22      66.78 |    100.00 
 26nov2001 |     32.14      67.86 |    100.00 
 22nov2002 |     32.20      67.80 |    100.00 
 16nov2003 |     32.36      67.64 |    100.00 
 21nov2004 |     28.03      71.97 |    100.00 
 17nov2005 |     32.43      67.57 |    100.00 
 08dec2006 |     26.86      73.14 |    100.00 
 30nov2007 |     28.94      71.06 |    100.00 
 07nov2008 |     30.11      69.89 |    100.00 
 20nov2009 |     34.03      65.97 |    100.00 
 19nov2010 |     28.88      71.12 |    100.00 
-----------+----------------------+----------
     Total |     33.30      66.70 |    100.00 

(0 real changes made)
(policemen: 17302 changes made)
(3834 missing values generated)

           |    high_policemen
        dt |         0          1 |     Total
-----------+----------------------+----------
 19aug1977 |     62.23      37.77 |    100.00 
 27jul1981 |     54.76      45.24 |    100.00 
 20may1983 |     56.93      43.07 |    100.00 
 12jul1985 |     51.92      48.08 |    100.00 
 08feb1990 |     50.07      49.93 |    100.00 
 16may1991 |     56.16      43.84 |    100.00 
 26jun1992 |     56.98      43.02 |    100.00 
 19jul1993 |     49.37      50.63 |    100.00 
 23sep1994 |     53.74      46.26 |    100.00 
 19oct1995 |     58.77      41.23 |    100.00 
 09dec1996 |     50.41      49.59 |    100.00 
 06nov1997 |     50.32      49.68 |    100.00 
 23oct1998 |     50.83      49.17 |    100.00 
 04nov1999 |     48.90      51.10 |    100.00 
 13nov2000 |     44.63      55.37 |    100.00 
 26nov2001 |     31.68      68.32 |    100.00 
 08feb2002 |     38.13      61.87 |    100.00 
 22nov2002 |     41.06      58.94 |    100.00 
 16nov2003 |     41.34      58.66 |    100.00 
 21nov2004 |     40.25      59.75 |    100.00 
 17nov2005 |     39.07      60.93 |    100.00 
 08dec2006 |     45.64      54.36 |    100.00 
 30nov2007 |     46.68      53.32 |    100.00 
 07nov2008 |     44.78      55.22 |    100.00 
 20nov2009 |     36.67      63.33 |    100.00 
 19nov2010 |     42.82      57.18 |    100.00 
-----------+----------------------+----------
     Total |     48.55      51.45 |    100.00 

(0 real changes made)
(realtors: 8968 changes made)
(11019 missing values generated)

           |     high_realtors
        dt |         0          1 |     Total
-----------+----------------------+----------
 22jul1977 |     85.07      14.93 |    100.00 
 19aug1977 |     86.08      13.92 |    100.00 
 27jul1981 |     84.15      15.85 |    100.00 
 20may1983 |     86.37      13.63 |    100.00 
 12jul1985 |     84.37      15.63 |    100.00 
 08feb1990 |     83.44      16.56 |    100.00 
 16may1991 |     81.32      18.68 |    100.00 
 26jun1992 |     85.81      14.19 |    100.00 
 19jul1993 |     84.91      15.09 |    100.00 
 23sep1994 |     85.77      14.23 |    100.00 
 19oct1995 |     83.98      16.02 |    100.00 
 09dec1996 |     83.74      16.26 |    100.00 
 06nov1997 |     83.31      16.69 |    100.00 
 23oct1998 |     84.18      15.82 |    100.00 
 04nov1999 |     85.51      14.49 |    100.00 
 13nov2000 |     82.52      17.48 |    100.00 
 22nov2002 |     80.29      19.71 |    100.00 
 17nov2005 |     79.22      20.78 |    100.00 
 07nov2008 |     83.42      16.58 |    100.00 
-----------+----------------------+----------
     Total |     83.99      16.01 |    100.00 

(0 real changes made)
(senators: 11339 changes made)
(8688 missing values generated)

           |     high_senators
        dt |         0          1 |     Total
-----------+----------------------+----------
 11jun1976 |     80.97      19.03 |    100.00 
 22jul1977 |     80.57      19.43 |    100.00 
 27jul1981 |     78.77      21.23 |    100.00 
 20may1983 |     82.21      17.79 |    100.00 
 12jul1985 |     76.76      23.24 |    100.00 
 08feb1990 |     75.30      24.70 |    100.00 
 16may1991 |     80.84      19.16 |    100.00 
 26jun1992 |     86.59      13.41 |    100.00 
 19jul1993 |     81.52      18.48 |    100.00 
 23sep1994 |     88.09      11.91 |    100.00 
 19oct1995 |     87.22      12.78 |    100.00 
 09dec1996 |     83.95      16.05 |    100.00 
 06nov1997 |     86.00      14.00 |    100.00 
 23oct1998 |     80.87      19.13 |    100.00 
 04nov1999 |     82.95      17.05 |    100.00 
 13nov2000 |     75.24      24.76 |    100.00 
 26nov2001 |     74.61      25.39 |    100.00 
 16nov2003 |     79.18      20.82 |    100.00 
 17nov2005 |     84.38      15.62 |    100.00 
 08dec2006 |     84.46      15.54 |    100.00 
 20nov2009 |     88.46      11.54 |    100.00 
-----------+----------------------+----------
     Total |     81.63      18.37 |    100.00 

(0 real changes made)
(statepoliticians: 8840 changes made)
(12277 missing values generated)

           | high_statepoliticians
        dt |         0          1 |     Total
-----------+----------------------+----------
 19aug1977 |     88.16      11.84 |    100.00 
 27jul1981 |     86.49      13.51 |    100.00 
 20may1983 |     85.91      14.09 |    100.00 
 12jul1985 |     83.38      16.62 |    100.00 
 08feb1990 |     81.67      18.33 |    100.00 
 16may1991 |     85.14      14.86 |    100.00 
 26jun1992 |     88.04      11.96 |    100.00 
 19jul1993 |     85.72      14.28 |    100.00 
 23sep1994 |     88.32      11.68 |    100.00 
 19oct1995 |     84.88      15.12 |    100.00 
 09dec1996 |     86.70      13.30 |    100.00 
 06nov1997 |     83.01      16.99 |    100.00 
 23oct1998 |     83.14      16.86 |    100.00 
 04nov1999 |     83.60      16.40 |    100.00 
 13nov2000 |     79.02      20.98 |    100.00 
 21nov2004 |     75.31      24.69 |    100.00 
 30nov2007 |     88.68      11.32 |    100.00 
 19nov2010 |     87.17      12.83 |    100.00 
-----------+----------------------+----------
     Total |     84.81      15.19 |    100.00 

(0 real changes made)
(stockbrokers: 8397 changes made)
(11610 missing values generated)

           |   high_stockbrokers
        dt |         0          1 |     Total
-----------+----------------------+----------
 27jul1981 |     71.75      28.25 |    100.00 
 20may1983 |     75.17      24.83 |    100.00 
 12jul1985 |     76.12      23.88 |    100.00 
 08feb1990 |     83.36      16.64 |    100.00 
 16may1991 |     82.85      17.15 |    100.00 
 26jun1992 |     84.84      15.16 |    100.00 
 19jul1993 |     85.16      14.84 |    100.00 
 23sep1994 |     84.04      15.96 |    100.00 
 19oct1995 |     81.81      18.19 |    100.00 
 09dec1996 |     82.97      17.03 |    100.00 
 06nov1997 |     79.07      20.93 |    100.00 
 23oct1998 |     79.51      20.49 |    100.00 
 04nov1999 |     83.30      16.70 |    100.00 
 13nov2000 |     79.17      20.83 |    100.00 
 26nov2001 |     79.67      20.33 |    100.00 
 22nov2002 |     87.58      12.42 |    100.00 
 16nov2003 |     85.00      15.00 |    100.00 
 17nov2005 |     83.51      16.49 |    100.00 
 08dec2006 |     82.17      17.83 |    100.00 
 07nov2008 |     88.34      11.66 |    100.00 
 20nov2009 |     90.97       9.03 |    100.00 
-----------+----------------------+----------
     Total |     81.95      18.05 |    100.00 

(0 real changes made)
(tvreporters: 9296 changes made)
(13533 missing values generated)

           |   high_tvreporters
        dt |         0          1 |     Total
-----------+----------------------+----------
 27jul1981 |     62.21      37.79 |    100.00 
 20may1983 |     65.63      34.37 |    100.00 
 12jul1985 |     65.15      34.85 |    100.00 
 08feb1990 |     66.54      33.46 |    100.00 
 16may1991 |     70.45      29.55 |    100.00 
 26jun1992 |     68.93      31.07 |    100.00 
 19jul1993 |     72.24      27.76 |    100.00 
 23sep1994 |     77.76      22.24 |    100.00 
 19oct1995 |     78.42      21.58 |    100.00 
 09dec1996 |     76.40      23.60 |    100.00 
 06nov1997 |     77.62      22.38 |    100.00 
 23oct1998 |     79.09      20.91 |    100.00 
 04nov1999 |     80.40      19.60 |    100.00 
 13nov2000 |     77.98      22.02 |    100.00 
 21nov2004 |     76.88      23.12 |    100.00 
 30nov2007 |     76.45      23.55 |    100.00 
 19nov2010 |     77.19      22.81 |    100.00 
-----------+----------------------+----------
     Total |     72.49      27.51 |    100.00 

(0 real changes made)
(unionleaders: 12533 changes made)
(10403 missing values generated)

           |   high_unionleaders
        dt |         0          1 |     Total
-----------+----------------------+----------
 11jun1976 |     87.20      12.80 |    100.00 
 22jul1977 |     86.59      13.41 |    100.00 
 27jul1981 |     84.97      15.03 |    100.00 
 20may1983 |     86.83      13.17 |    100.00 
 12jul1985 |     85.85      14.15 |    100.00 
 08feb1990 |     83.52      16.48 |    100.00 
 16may1991 |     85.84      14.16 |    100.00 
 26jun1992 |     84.39      15.61 |    100.00 
 19jul1993 |     85.78      14.22 |    100.00 
 23sep1994 |     85.42      14.58 |    100.00 
 19oct1995 |     84.67      15.33 |    100.00 
 09dec1996 |     82.45      17.55 |    100.00 
 06nov1997 |     84.17      15.83 |    100.00 
 23oct1998 |     84.12      15.88 |    100.00 
 04nov1999 |     83.01      16.99 |    100.00 
 13nov2000 |     81.47      18.53 |    100.00 
 26nov2001 |     81.45      18.55 |    100.00 
 22nov2002 |     85.66      14.34 |    100.00 
 17nov2005 |     82.43      17.57 |    100.00 
 07nov2008 |     83.69      16.31 |    100.00 
-----------+----------------------+----------
     Total |     84.73      15.27 |    100.00 

(0 real changes made)

. 
. 
. 
. * Label variables fully
. la var advertisers "Advertising practitioners"

. la var bankers "Bankers"

. la var buildingcontractors "Building contractors"

. la var busexecs "Business executives"

. la var carsalesmen "Car salesmen / Car salespeople"

. la var clergy "Clergy"

. la var collegeteachers "College teachers"

. la var congressmen "Congressmen / Members of Congress"

. la var dentists "Dentists"

. la var doctors "Medical doctors"

. la var engineers "Engineers"

. la var funeraldirectors "Funeral directors"

. la var insurancesales "Insurance salespeople"

. la var journalists "Journalists"

. la var lawyers "Lawyers"

. la var localpoliticians "Local officeholders"

. la var newspaperreporters "Newspaper reporters"

. la var nurses "Nurses"

. la var pharmacists "Druggists or Pharmacists"

. la var policemen "Policemen / Police officers"

. la var realtors "Real estate agents"

. la var senators "Senators"

. la var statepoliticians "State officeholders"

. la var stockbrokers "Stockbrokers"

. la var tvreporters "TV reporters"

. la var unionleaders "Labor union leaders"

. 
. * Keep only variables that are in the sample for 20 years or more (This was actually 
> how data were collected)
. foreach v of global occupations {
  2.         qui tab year if `v'<.
  3.         if r(r)<20 {
  4.                 di "Dropping `v'"
  5.                 drop `v'
  6.         }
  7. }
Dropping buildingcontractors
Dropping dentists
Dropping funeraldirectors
Dropping insurancesales
Dropping localpoliticians
Dropping newspaperreporters
Dropping nurses
Dropping realtors
Dropping statepoliticians
Dropping tvreporters

.         
. * Merge in state economic data
. sort st year

. merge m:1 st year using "..\State economic conditions\Unemployment", keep(match maste
> r)

    Result                           # of obs.
    -----------------------------------------
    not matched                             4
        from master                         4  (_merge==1)
        from using                          0  (_merge==2)

    matched                            31,873  (_merge==3)
    -----------------------------------------

. drop _merge

. 
. la data "Please tell me how you would rate the honesty and ethical standards of peopl
> e in these different fields--very high, high, average, low or very low?  How about: [
> random order]"
note: label truncated to 80 characters

. cd ..
C:\Users\jwolfers\Documents\Justin@Wharton\Trust in Public Institutions\AER Archive

. save "Honesty_gallup", replace
file Honesty_gallup.dta saved

. 
. 
end of do-file

. cd "$project"
C:\Users\jwolfers\Documents\Justin@Wharton\Trust in Public Institutions\AER Archive

. 
. * Compile and clean the GSS: Note the state identifiers can't be shared by me, so the
>  code won't work perfectly
. cd "GSS"
C:\Users\jwolfers\Documents\Justin@Wharton\Trust in Public Institutions\AER Archive\GSS

. do "GSS_clean.do"

. clear *

. set more off

. set mem 800m

Current memory allocation

                    current                                 memory usage
    settable          value     description                 (1M = 1024k)
    --------------------------------------------------------------------
    set maxvar         5000     max. variables allowed           1.947M
    set memory          800M    max. data space                800.000M
    set matsize         400     max. RHS vars in models          1.254M
                                                            -----------
                                                               803.201M

. set maxvar 10000

Current memory allocation

                    current                                 memory usage
    settable          value     description                 (1M = 1024k)
    --------------------------------------------------------------------
    set maxvar        10000     max. variables allowed           3.893M
    set memory          800M    max. data space                800.000M
    set matsize         400     max. RHS vars in models          1.254M
                                                            -----------
                                                               805.147M

. 
. macro def confidence confinan conbus conclerg coneduc confed conlabor conpress conmed
> ic contv conjudge consci conlegis conarmy 

. macro def issp_confidence concong conbiz congovt conchurh concourt conschls

. macro def controls age sex  degree madeg padeg wrkstat marital childs region relig  

. macro def cuts ethnic childs babies preteen teens reg16 srcbelt

. macro def indeps  

. macro def other 

. macro def attitudes life helpful fair trust anomia5 anomia6 anomia7 class finalter fi
> nrela getahead fear burglr robbry 

. macro def varofinterest race year

. macro def technical wtssall oversamp spanint wtgss id dateint

.  
. * Load data
. use "remp7208.R3.dta" /* Not using the 2008 reinterviews of the 2006 sample; doing so
>  would require weight wtnrcomb*/

. 
. * Set sample and weights
. gen wtgss=wtssall*oversamp if spanint!=2  /* Full english-language sample; weighted t
> o be representative of adult population; includes black over-samples (downweighted) *
> /
(309 missing values generated)

. * do "Family income.do"
. keep $confidence $issp_confidence $controls $cuts $indeps $attitudes $varofinterest $
> technical $other

. order $technical $confidence $controls $issp_confidence

. drop wtssall

. 
. gen day=dateint-int(dateint/100)*100
(4690 missing values generated)

. replace day=1 if day==99
(143 real changes made)

. gen month=int(dateint/100)
(4690 missing values generated)

. gen dt=mdy(month, day, year)
(4692 missing values generated)

. replace dt=mdy(4,1,year) if dt==. /*Empty cells get average date=April Fools*/
(4692 real changes made)

. drop day month

. egen t_yr=tag(year)

. 
. * Merge in State, County and PSU identifiers: Note--this won't work unless you get th
> e identifiers from the GSS yourself
. sort year id

. cap merge 1:1 year id using "..\Proprietary\gssgeocode_justin_wolfers"

. gen str2 st=""
(53043 missing values generated)

. cap for ! in any AL AK AS AZ AR CA CO CT DE DC FL FM GA GU HI ID IL IN IA KS KY LA ME
>  MH MD MA MI MN MS MO MT NE NV NH NJ NM NY NC ND MP OH OK OR PW PA PR RI SC SD TN TX 
> UM UT VT VA VI WA WV WI WY \ ///
>         @ in numlist 1 2 60 4 5 6 8 9 10 11 12 64 13 66 15 16 17 18 19 20 21 22 23 68
>  24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 69 39 40 41 70 42 72 44 45 46 47 48 74 
> 49 50 51 78 53 54 55 56: ///
>         replace st="!" if fipsstat==@

. for ! in any AL AK AS AZ AR CA CO CT DE DC FL FM GA GU HI ID IL IN IA KS KY LA ME MH 
> MD MA MI MN MS MO MT NE NV NH NJ NM NY NC ND MP OH OK OR PW PA PR RI SC SD TN TX UM U
> T VT VA VI WA WV WI WY \ ///
>         @ in numlist 1 2 60 4 5 6 8 9 10 11 12 64 13 66 15 16 17 18 19 20 21 22 23 68
>  24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 69 39 40 41 70 42 72 44 45 46 47 48 74 
> 49 50 51 78 53 54 55 56: ///
>         label define statefips @ "!", add modify

->  label define statefips 1 `"AL"' , add modify

->  label define statefips 2 `"AK"' , add modify

->  label define statefips 60 `"AS"' , add modify

->  label define statefips 4 `"AZ"' , add modify

->  label define statefips 5 `"AR"' , add modify

->  label define statefips 6 `"CA"' , add modify

->  label define statefips 8 `"CO"' , add modify

->  label define statefips 9 `"CT"' , add modify

->  label define statefips 10 `"DE"' , add modify

->  label define statefips 11 `"DC"' , add modify

->  label define statefips 12 `"FL"' , add modify

->  label define statefips 64 `"FM"' , add modify

->  label define statefips 13 `"GA"' , add modify

->  label define statefips 66 `"GU"' , add modify

->  label define statefips 15 `"HI"' , add modify

->  label define statefips 16 `"ID"' , add modify

->  label define statefips 17 `"IL"' , add modify

->  label define statefips 18 `"IN"' , add modify

->  label define statefips 19 `"IA"' , add modify

->  label define statefips 20 `"KS"' , add modify

->  label define statefips 21 `"KY"' , add modify

->  label define statefips 22 `"LA"' , add modify

->  label define statefips 23 `"ME"' , add modify

->  label define statefips 68 `"MH"' , add modify

->  label define statefips 24 `"MD"' , add modify

->  label define statefips 25 `"MA"' , add modify

->  label define statefips 26 `"MI"' , add modify

->  label define statefips 27 `"MN"' , add modify

->  label define statefips 28 `"MS"' , add modify

->  label define statefips 29 `"MO"' , add modify

->  label define statefips 30 `"MT"' , add modify

->  label define statefips 31 `"NE"' , add modify

->  label define statefips 32 `"NV"' , add modify

->  label define statefips 33 `"NH"' , add modify

->  label define statefips 34 `"NJ"' , add modify

->  label define statefips 35 `"NM"' , add modify

->  label define statefips 36 `"NY"' , add modify

->  label define statefips 37 `"NC"' , add modify

->  label define statefips 38 `"ND"' , add modify

->  label define statefips 69 `"MP"' , add modify

->  label define statefips 39 `"OH"' , add modify

->  label define statefips 40 `"OK"' , add modify

->  label define statefips 41 `"OR"' , add modify

->  label define statefips 70 `"PW"' , add modify

->  label define statefips 42 `"PA"' , add modify

->  label define statefips 72 `"PR"' , add modify

->  label define statefips 44 `"RI"' , add modify

->  label define statefips 45 `"SC"' , add modify

->  label define statefips 46 `"SD"' , add modify

->  label define statefips 47 `"TN"' , add modify

->  label define statefips 48 `"TX"' , add modify

->  label define statefips 74 `"UM"' , add modify

->  label define statefips 49 `"UT"' , add modify

->  label define statefips 50 `"VT"' , add modify

->  label define statefips 51 `"VA"' , add modify

->  label define statefips 78 `"VI"' , add modify

->  label define statefips 53 `"WA"' , add modify

->  label define statefips 54 `"WV"' , add modify

->  label define statefips 55 `"WI"' , add modify

->  label define statefips 56 `"WY"' , add modify

. cap gen fipsstat=.

. label values fipsstat statefips 

. cap drop _merge

. 
. label define reg9st 1 "MA CT VT NH RI ME" 2 "NY PA NH" 3 "OH MI IL WI IN" 4 "MO MN KS
>  IA ND SD" 5 "FL NC VA GA MD SC WV DE DC" 6 "TN AL KY MS" 7 "TX LA OK AR" 8 "CO AZ ID
>  WY MT UT NM" 9 "CA WA OR AK HI"

. gen reg9st=region

. la values reg9st reg9st

. 
. ** Clean dependent variables: Confidence variables
. fvset base frequent _all

Note:  The following string variables were ignored.
       tract st

. label define confidence 1 "Hardly any" 2 "Only some" 3 "A great deal"

. for X in varlist $confidence: recode X (1=3) (2=2) (3=1) \ label values X confidence

->  recode confinan (1=3) (2=2) (3=1)
(confinan: 14039 changes made)

->  label values confinan confidence

->  recode conbus (1=3) (2=2) (3=1)
(conbus: 13567 changes made)

->  label values conbus confidence

->  recode conclerg (1=3) (2=2) (3=1)
(conclerg: 17206 changes made)

->  label values conclerg confidence

->  recode coneduc (1=3) (2=2) (3=1)
(coneduc: 15769 changes made)

->  label values coneduc confidence

->  recode confed (1=3) (2=2) (3=1)
(confed: 16687 changes made)

->  label values confed confidence

->  recode conlabor (1=3) (2=2) (3=1)
(conlabor: 15289 changes made)

->  label values conlabor confidence

->  recode conpress (1=3) (2=2) (3=1)
(conpress: 16127 changes made)

->  label values conpress confidence

->  recode conmedic (1=3) (2=2) (3=1)
(conmedic: 19775 changes made)

->  label values conmedic confidence

->  recode contv (1=3) (2=2) (3=1)
(contv: 16300 changes made)

->  label values contv confidence

->  recode conjudge (1=3) (2=2) (3=1)
(conjudge: 16418 changes made)

->  label values conjudge confidence

->  recode consci (1=3) (2=2) (3=1)
(consci: 16731 changes made)

->  label values consci confidence

->  recode conlegis (1=3) (2=2) (3=1)
(conlegis: 14420 changes made)

->  label values conlegis confidence

->  recode conarmy (1=3) (2=2) (3=1)
(conarmy: 17965 changes made)

->  label values conarmy confidence

. label define issp_confidence 1 "No confidence at all" 2 "Very little confidence" 3 "S
> ome confidence" 4 "A great deal of confidence" 5 "Complete confidence"

. for X in varlist $issp_confidence: replace X=6-X \ label values X issp_confidence

->  replace concong=6-concong
(51159 real changes made, 49208 to missing)

->  label values concong issp_confidence

->  replace conbiz=6-conbiz
(50867 real changes made, 49229 to missing)

->  label values conbiz issp_confidence

->  replace congovt=6-congovt
(52417 real changes made, 51767 to missing)

->  label values congovt issp_confidence

->  replace conchurh=6-conchurh
(51358 real changes made, 49204 to missing)

->  label values conchurh issp_confidence

->  replace concourt=6-concourt
(51130 real changes made, 49185 to missing)

->  label values concourt issp_confidence

->  replace conschls=6-conschls
(51216 real changes made, 49168 to missing)

->  label values conschls issp_confidence

. for X in varlist $confidence $issp_confidence: summ X [w=wtgss] \ gen X_z=(X-r(mean))
> /r(sd) 

->  summ confinan [w=wtgss]

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
    confinan |   32209  32182.5351    2.106674   .6466518          1          3

->  gen confinan_z=(confinan-r(mean))/r(sd)
(20679 missing values generated)

->  summ conbus [w=wtgss]

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
      conbus |   34386  34447.9425    2.114027   .6147813          1          3

->  gen conbus_z=(conbus-r(mean))/r(sd)
(18510 missing values generated)

->  summ conclerg [w=wtgss]

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
    conclerg |   34605  34558.8378    2.089818    .694638          1          3

->  gen conclerg_z=(conclerg-r(mean))/r(sd)
(18285 missing values generated)

->  summ coneduc [w=wtgss]

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
     coneduc |   35377  35350.9941    2.172631   .6427094          1          3

->  gen coneduc_z=(coneduc-r(mean))/r(sd)
(17511 missing values generated)

->  summ confed [w=wtgss]

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
      confed |   34836  34828.2297    1.869541   .6756279          1          3

->  gen confed_z=(confed-r(mean))/r(sd)
(18059 missing values generated)

->  summ conlabor [w=wtgss]

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
    conlabor |   33813  33889.9191    1.796691   .6396886          1          3

->  gen conlabor_z=(conlabor-r(mean))/r(sd)
(19095 missing values generated)

->  summ conpress [w=wtgss]

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
    conpress |   35119  35109.7947    1.870995   .6654092          1          3

->  gen conpress_z=(conpress-r(mean))/r(sd)
(17769 missing values generated)

->  summ conmedic [w=wtgss]

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
    conmedic |   35467  35413.4583    2.399606   .6321934          1          3

->  gen conmedic_z=(conmedic-r(mean))/r(sd)
(17421 missing values generated)

->  summ contv [w=wtgss]

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
       contv |   35321  35284.0824    1.811803   .6495351          1          3

->  gen contv_z=(contv-r(mean))/r(sd)
(17566 missing values generated)

->  summ conjudge [w=wtgss]

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
    conjudge |   34325  34391.5742    2.185175   .6652301          1          3

->  gen conjudge_z=(conjudge-r(mean))/r(sd)
(18571 missing values generated)

->  summ consci [w=wtgss]

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
      consci |   33060  33180.3475    2.362185   .6109778          1          3

->  gen consci_z=(consci-r(mean))/r(sd)
(19842 missing values generated)

->  summ conlegis [w=wtgss]

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
    conlegis |   34823  34815.3539    1.860347    .625113          1          3

->  gen conlegis_z=(conlegis-r(mean))/r(sd)
(18071 missing values generated)

->  summ conarmy [w=wtgss]

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
     conarmy |   34825  34831.1195    2.265603   .6675783          1          3

->  gen conarmy_z=(conarmy-r(mean))/r(sd)
(18069 missing values generated)

->  summ concong [w=wtgss]

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
     concong |    3789  3789.03978    2.780061   .9191599          1          5

->  gen concong_z=(concong-r(mean))/r(sd)
(49208 missing values generated)

->  summ conbiz [w=wtgss]

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
      conbiz |    3766  3771.28862    3.007861   .7982019          1          5

->  gen conbiz_z=(conbiz-r(mean))/r(sd)
(49229 missing values generated)

->  summ congovt [w=wtgss]

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
     congovt |    1276  1282.51722    2.812423   .8984832          1          5

->  gen congovt_z=(congovt-r(mean))/r(sd)
(51767 missing values generated)

->  summ conchurh [w=wtgss]

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
    conchurh |    3791  3789.34763    3.224103   1.002595          1          5

->  gen conchurh_z=(conchurh-r(mean))/r(sd)
(49204 missing values generated)

->  summ concourt [w=wtgss]

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
    concourt |    3811  3807.33303    2.937573   .9153714          1          5

->  gen concourt_z=(concourt-r(mean))/r(sd)
(49185 missing values generated)

->  summ conschls [w=wtgss]

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
    conschls |    3826  3821.58339    3.196247   .9042292          1          5

->  gen conschls_z=(conschls-r(mean))/r(sd)
(49168 missing values generated)

. 
. * Clean controls
. recode degree madeg padeg (8 9 98=.)
(degree: 0 changes made)
(madeg: 0 changes made)
(padeg: 0 changes made)

. for var $controls : replace X=99 if X>=. 

->  replace age=99 if age>=.
(194 real changes made)

->  replace sex=99 if sex>=.
(0 real changes made)

->  replace degree=99 if degree>=.
(165 real changes made)

->  replace madeg=99 if madeg>=.
(7322 real changes made)

->  replace padeg=99 if padeg>=.
(13269 real changes made)

->  replace wrkstat=99 if wrkstat>=.
(10 real changes made)

->  replace marital=99 if marital>=.
(19 real changes made)

->  replace childs=99 if childs>=.
(175 real changes made)

->  replace region=99 if region>=.
(0 real changes made)

->  replace relig=99 if relig>=.
(213 real changes made)

. gen age10=10*int(age/10)

. replace relig=5 if relig>5 & relig<98
(841 real changes made)

. 
. * Different cuts of the data
. gen agegroup=1 if age>=18 & age<=29
(41618 missing values generated)

. replace agegroup=2 if age>=30 & age<=44
(16619 real changes made)

. replace agegroup=3 if age>=45 & age<=59
(12352 real changes made)

. replace agegroup=4 if age>=60 & age~=98
(12647 real changes made)

. label define agegroup 1 "18 to 29 years" 2 "30 to 44 years" 3 "45 to 59 years" 4 "60 
> years or older", modify

. label values agegroup agegroup

. label var agegroup "Age Group"

. 
. label define sex 1 "Men" 2 "Women", modify

. label values sex sex

. label var sex "Gender"

. 
. gen edgroup=degree

. replace edgroup=1 if edgroup==2
(2774 real changes made)

. replace edgroup=3 if edgroup==4
(3447 real changes made)

. label define edgroup 0 "<High school" 1 "High school" 2 "Associates degree" 3 "Colleg
> e grad" 4 "Graduate school", modify

. label values edgroup edgroup

. la var edgroup "Educational Status"

. 
. gen pa_deg=0 if padeg==0
(32938 missing values generated)

. replace pa_deg=1 if padeg==1
(13575 real changes made)

. replace pa_deg=2 if padeg>1 & padeg<98 & padeg~=.
(6094 real changes made)

. la var pa_deg "Father's Educational Status"

. 
. gen empstat=wrkstat

. replace empstat=3 if wrkstat==4
(1624 real changes made)

. la var empstat "Employment Status"

. 
. gen employed=1 if wrkstat==1 | wrkstat==2
(21283 missing values generated)

. replace employed=0 if wrkstat>2 & wrkstat<8 
(20260 real changes made)

. label define employed 0 "Not working" 1 "Employed"

. label values employed employed

. la var employed "Employment Status"

. 
. gen married=marital

. replace married=3 if married==4
(1851 real changes made)

. replace married=. if married==98
(0 real changes made)

. label define married 1 "Married" 2 "Widowed" 3 "Divorced (or sep.)" 5 "Never married"

. label values married married

. la var married "Marital Status"

. 
. la var region "Region"

. label define region 1 "New England" 2 "Middle Atlantic" 3 "East-North Central" 4 "Wes
> t-North Central" 5 "South Atlantic" 6 "East-South Central" 7 "West-South Central" 8 "
> Mountain" 9 "Pacific", modify

. label values region region

. 
. gen reg16_4=.
(53043 missing values generated)

. gen region_4=.
(53043 missing values generated)

. for X in num 0/9 99 \ Y in num 0 1 1 2 2 3 3 3 4 4 99: replace reg16_4=Y if reg16==X 
> \ replace region_4=Y if region==X

->  replace reg16_4=0 if reg16==0
(3068 real changes made)

->  replace region_4=0 if region==0
(0 real changes made)

->  replace reg16_4=1 if reg16==1
(2463 real changes made)

->  replace region_4=1 if region==1
(2486 real changes made)

->  replace reg16_4=1 if reg16==2
(8305 real changes made)

->  replace region_4=1 if region==2
(7951 real changes made)

->  replace reg16_4=2 if reg16==3
(10349 real changes made)

->  replace region_4=2 if region==3
(9885 real changes made)

->  replace reg16_4=2 if reg16==4
(4454 real changes made)

->  replace region_4=2 if region==4
(3977 real changes made)

->  replace reg16_4=3 if reg16==5
(8351 real changes made)

->  replace region_4=3 if region==5
(10116 real changes made)

->  replace reg16_4=3 if reg16==6
(3991 real changes made)

->  replace region_4=3 if region==6
(3507 real changes made)

->  replace reg16_4=3 if reg16==7
(4792 real changes made)

->  replace region_4=3 if region==7
(4953 real changes made)

->  replace reg16_4=4 if reg16==8
(2335 real changes made)

->  replace region_4=4 if region==8
(3131 real changes made)

->  replace reg16_4=4 if reg16==9
(4935 real changes made)

->  replace region_4=4 if region==9
(7037 real changes made)

->  replace reg16_4=99 if reg16==99
(0 real changes made)

->  replace region_4=99 if region==99
(0 real changes made)

. label define region_4 0 "Foreign" 1 "Northeast" 2 "Midwest" 3 "South" 4 "West"

. label values reg16_4 reg4

. label values region_4 region_4

. la var region_4 "Region"

. la var reg16_4 "Region at Age 16"

. 
. gen urban=1 if srcbelt<=3
(35110 missing values generated)

. replace urban=0 if srcbelt>3 & srcbelt<.
(35110 real changes made)

. replace urban=99 if srcbelt==.
(0 real changes made)

. label define urban 0 "Suburban and rural" 1 "Urban" 

. label values urban urban

. la var urban "Urban Status"

. 
. gen sexage=sex*10+agegroup

. replace sexage=99 if sex==99 | age==99
(194 real changes made)

. label define sexage 11 "Men: 18-29 yrs" 12 "Men: 30-44 yrs" 13 "Men: 45-59 yrs" 14 "M
> en: 60+ yrs" 21 "Women: 18-29 yrs" 22 "Women: 30-44 yrs" 23 "Women: 45-59 yrs" 24 "Wo
> men: 60+ yrs" 99 "Missing age"

. label values sexage sexage

. la var sexage "Sex and Age"

. 
. gen agesex=agegroup*10+sex

. replace agesex=99 if sex==99 | age==99
(194 real changes made)

. label define agesex 11 "Men: 18-29 yrs" 21 "Men: 30-44 yrs" 31 "Men: 45-59 yrs" 41 "M
> en: 60+ yrs" 12 "Women: 18-29 yrs" 22 "Women: 30-44 yrs" 32 "Women: 45-59 yrs" 42 "Wo
> men: 60+ yrs" 99 "Missing age"

. label values agesex agesex

. la var agesex "Age and Sex"

. 
. 
. 
. * Merge in state economic data
. 
. sort st year

. merge m:1 st year using "..\State economic conditions\Unemployment.dta", keep(match m
> aster)

    Result                           # of obs.
    -----------------------------------------
    not matched                         6,091
        from master                     6,091  (_merge==1)
        from using                          0  (_merge==2)

    matched                            46,952  (_merge==3)
    -----------------------------------------

. drop _merge

. compress
dt was float now int
reg9st was float now byte
age10 was float now byte
agegroup was float now byte
edgroup was float now byte
pa_deg was float now byte
empstat was float now byte
employed was float now byte
married was float now byte
reg16_4 was float now byte
region_4 was float now byte
urban was float now byte
sexage was float now byte
agesex was float now byte

. save "..\Proprietary\Trust_GSS", replace
file ..\Proprietary\Trust_GSS.dta saved

. drop st ur

. save "Trust_GSS", replace
file Trust_GSS.dta saved

. 
. 
. 
. 
end of do-file

. cd "$project"
C:\Users\jwolfers\Documents\Justin@Wharton\Trust in Public Institutions\AER Archive

. 
. * Compile and clean the Gallup World Poll: These data are entirely proprietary
. cd "Gallup World Poll"
C:\Users\jwolfers\Documents\Justin@Wharton\Trust in Public Institutions\AER Archive\Gal
> lup World Poll

. do "Clean_Gallup.do"

. clear all

. set mem 1500m

Current memory allocation

                    current                                 memory usage
    settable          value     description                 (1M = 1024k)
    --------------------------------------------------------------------
    set maxvar        10000     max. variables allowed           3.893M
    set memory         1500M    max. data space              1,500.000M
    set matsize         400     max. RHS vars in models          1.254M
                                                            -----------
                                                             1,505.147M

. 
. use "..\Proprietary\The_Gallup_101510.dta"

. set more off

. * Data cleaning
. foreach v of varlist _all {
  2.         local l=lower("`v'") 
  3.         cap rename `v' `l'
  4. }

. gen wt=wgt

. gen str3 cty=""
(603343 missing values generated)

. for ! in num 1 2 3 4 5 6 8 9 \ @ in any USA EGY MAR LBN SAU JOR TUR PAK: replace cty=
> "@" if wp5==!

->  replace cty="USA" if wp5==1
(5238 real changes made)

->  replace cty="EGY" if wp5==2
(6282 real changes made)

->  replace cty="MAR" if wp5==3
(5074 real changes made)

->  replace cty="LBN" if wp5==4
(6014 real changes made)

->  replace cty="SAU" if wp5==5
(6235 real changes made)

->  replace cty="JOR" if wp5==6
(6039 real changes made)

->  replace cty="TUR" if wp5==8
(3999 real changes made)

->  replace cty="PAK" if wp5==9
(9139 real changes made)

. for ! in num 10/19 \ @ in any IDN BGD GBR FRA DEU NLD BEL ESP ITA POL: replace cty="@
> " if wp5==!

->  replace cty="IDN" if wp5==10
(5390 real changes made)

->  replace cty="BGD" if wp5==11
(5248 real changes made)

->  replace cty="GBR" if wp5==12
(4244 real changes made)

->  replace cty="FRA" if wp5==13
(4228 real changes made)

->  replace cty="DEU" if wp5==14
(7248 real changes made)

->  replace cty="NLD" if wp5==15
(3000 real changes made)

->  replace cty="BEL" if wp5==16
(3027 real changes made)

->  replace cty="ESP" if wp5==17
(4018 real changes made)

->  replace cty="ITA" if wp5==18
(4023 real changes made)

->  replace cty="POL" if wp5==19
(4000 real changes made)

. for ! in num 20/29 \ @ in any HUN CZE ROU SWE GRC DNK IRN HKG SGP JPN: replace cty="@
> " if wp5==!

->  replace cty="HUN" if wp5==20
(3043 real changes made)

->  replace cty="CZE" if wp5==21
(3150 real changes made)

->  replace cty="ROU" if wp5==22
(3022 real changes made)

->  replace cty="SWE" if wp5==23
(4003 real changes made)

->  replace cty="GRC" if wp5==24
(3002 real changes made)

->  replace cty="DNK" if wp5==25
(4014 real changes made)

->  replace cty="IRN" if wp5==26
(3344 real changes made)

->  replace cty="HKG" if wp5==27
(3062 real changes made)

->  replace cty="SGP" if wp5==28
(6652 real changes made)

->  replace cty="JPN" if wp5==29
(7150 real changes made)

. for ! in num 30/39 \ @ in any CHN IND VEN BRA MEX NGA KEN TZA ISR PSE: replace cty="@
> " if wp5==!

->  replace cty="CHN" if wp5==30
(20703 real changes made)

->  replace cty="IND" if wp5==31
(16296 real changes made)

->  replace cty="VEN" if wp5==32
(4000 real changes made)

->  replace cty="BRA" if wp5==33
(4130 real changes made)

->  replace cty="MEX" if wp5==34
(5006 real changes made)

->  replace cty="NGA" if wp5==35
(5000 real changes made)

->  replace cty="KEN" if wp5==36
(6200 real changes made)

->  replace cty="TZA" if wp5==37
(5000 real changes made)

->  replace cty="ISR" if wp5==38
(4004 real changes made)

->  replace cty="PSE" if wp5==39
(6014 real changes made)

. for ! in num 40/49 \ @ in any GHA UGA BEN MDG MWI ZAF CAN AUS PHL LKA: replace cty="@
> " if wp5==!

->  replace cty="GHA" if wp5==40
(4000 real changes made)

->  replace cty="UGA" if wp5==41
(5000 real changes made)

->  replace cty="BEN" if wp5==42
(2000 real changes made)

->  replace cty="MDG" if wp5==43
(2000 real changes made)

->  replace cty="MWI" if wp5==44
(3000 real changes made)

->  replace cty="ZAF" if wp5==45
(4001 real changes made)

->  replace cty="CAN" if wp5==46
(4381 real changes made)

->  replace cty="AUS" if wp5==47
(4211 real changes made)

->  replace cty="PHL" if wp5==48
(5200 real changes made)

->  replace cty="LKA" if wp5==49
(5063 real changes made)

. for ! in num 50/57 \ @ in any VNM THA KHM LAO MMR NZL AGO BWA: replace cty="@" if wp5
> ==! 

->  replace cty="VNM" if wp5==50
(5065 real changes made)

->  replace cty="THA" if wp5==51
(4473 real changes made)

->  replace cty="KHM" if wp5==52
(5024 real changes made)

->  replace cty="LAO" if wp5==53
(3001 real changes made)

->  replace cty="MMR" if wp5==54
(1047 real changes made)

->  replace cty="NZL" if wp5==55
(3278 real changes made)

->  replace cty="AGO" if wp5==56
(2000 real changes made)

->  replace cty="BWA" if wp5==57
(2000 real changes made)

. for ! in num 60/69 \ @ in any ETH MLI MRT MOZ NER RWA SEN ZMB KOR TWN: replace cty="@
> " if wp5==!

->  replace cty="ETH" if wp5==60
(2000 real changes made)

->  replace cty="MLI" if wp5==61
(3000 real changes made)

->  replace cty="MRT" if wp5==62
(5984 real changes made)

->  replace cty="MOZ" if wp5==63
(3000 real changes made)

->  replace cty="NER" if wp5==64
(4000 real changes made)

->  replace cty="RWA" if wp5==65
(3504 real changes made)

->  replace cty="SEN" if wp5==66
(5000 real changes made)

->  replace cty="ZMB" if wp5==67
(4001 real changes made)

->  replace cty="KOR" if wp5==68
(5100 real changes made)

->  replace cty="TWN" if wp5==69
(3002 real changes made)

. for ! in num 70/79 \ @ in any AFG BLR GEO KAZ KGZ MDA RUS UKR BFA CMR: replace cty="@
> " if wp5==!

->  replace cty="AFG" if wp5==70
(5206 real changes made)

->  replace cty="BLR" if wp5==71
(5387 real changes made)

->  replace cty="GEO" if wp5==72
(5080 real changes made)

->  replace cty="KAZ" if wp5==73
(5000 real changes made)

->  replace cty="KGZ" if wp5==74
(5000 real changes made)

->  replace cty="MDA" if wp5==75
(5000 real changes made)

->  replace cty="RUS" if wp5==76
(11021 real changes made)

->  replace cty="UKR" if wp5==77
(5323 real changes made)

->  replace cty="BFA" if wp5==78
(4000 real changes made)

->  replace cty="CMR" if wp5==79
(5200 real changes made)

. for ! in num 80 81 82 83 84 87 88 89 \ @ in any SLE ZWE CRI ALB DZA ARG ARM AUT: repl
> ace cty="@" if wp5==!

->  replace cty="SLE" if wp5==80
(3000 real changes made)

->  replace cty="ZWE" if wp5==81
(5000 real changes made)

->  replace cty="CRI" if wp5==82
(4004 real changes made)

->  replace cty="ALB" if wp5==83
(3001 real changes made)

->  replace cty="DZA" if wp5==84
(4102 real changes made)

->  replace cty="ARG" if wp5==87
(5000 real changes made)

->  replace cty="ARM" if wp5==88
(5000 real changes made)

->  replace cty="AUT" if wp5==89
(3005 real changes made)

. for ! in num 90 96 97 99 \ @ in any AZE BOL BIH BGR: replace cty="@" if wp5==! 

->  replace cty="AZE" if wp5==90
(5000 real changes made)

->  replace cty="BOL" if wp5==96
(5003 real changes made)

->  replace cty="BIH" if wp5==97
(4013 real changes made)

->  replace cty="BGR" if wp5==99
(2003 real changes made)

. for ! in num 100 103 104 105 109 \ @ in any BDI TCD CHL COL HRV: replace cty="@" if w
> p5==!

->  replace cty="BDI" if wp5==100
(2000 real changes made)

->  replace cty="TCD" if wp5==103
(4000 real changes made)

->  replace cty="CHL" if wp5==104
(4147 real changes made)

->  replace cty="COL" if wp5==105
(5000 real changes made)

->  replace cty="HRV" if wp5==109
(3010 real changes made)

. for ! in num 110 111 114 115 116 119 \ @ in any CUB CYP DOM ECU SLV EST: replace cty=
> "@" if wp5==!

->  replace cty="CUB" if wp5==110
(1000 real changes made)

->  replace cty="CYP" if wp5==111
(1502 real changes made)

->  replace cty="DOM" if wp5==114
(4000 real changes made)

->  replace cty="ECU" if wp5==115
(5129 real changes made)

->  replace cty="SLV" if wp5==116
(4007 real changes made)

->  replace cty="EST" if wp5==119
(3213 real changes made)

. for ! in num 121 124 128 129 \ @ in any FIN GTM HTI HND: replace cty="@" if wp5==!

->  replace cty="FIN" if wp5==121
(2015 real changes made)

->  replace cty="GTM" if wp5==124
(4036 real changes made)

->  replace cty="HTI" if wp5==128
(1005 real changes made)

->  replace cty="HND" if wp5==129
(4002 real changes made)

. for ! in num 131 132 135 137 138 \ @ in any IRQ IRL JAM KWT LVA: replace cty="@" if w
> p5==!

->  replace cty="IRQ" if wp5==131
(3991 real changes made)

->  replace cty="IRL" if wp5==132
(2501 real changes made)

->  replace cty="JAM" if wp5==135
(543 real changes made)

->  replace cty="KWT" if wp5==137
(4002 real changes made)

->  replace cty="LVA" if wp5==138
(3045 real changes made)

. for ! in num 143 145 146 \ @ in any LTU MKD MYS: replace cty="@" if wp5==!

->  replace cty="LTU" if wp5==143
(4029 real changes made)

->  replace cty="MKD" if wp5==145
(3066 real changes made)

->  replace cty="MYS" if wp5==146
(5256 real changes made)

. for ! in num 154 157 158 \ @ in any MNE NPL NIC: replace cty="@" if wp5==!

->  replace cty="MNE" if wp5==154
(2837 real changes made)

->  replace cty="NPL" if wp5==157
(5007 real changes made)

->  replace cty="NIC" if wp5==158
(4013 real changes made)

. for ! in num 160 163 164 165 166 167 \ @ in any NOR PAN PRY PER PRT PRI: replace cty=
> "@" if wp5==!

->  replace cty="NOR" if wp5==160
(2001 real changes made)

->  replace cty="PAN" if wp5==163
(4027 real changes made)

->  replace cty="PRY" if wp5==164
(5001 real changes made)

->  replace cty="PER" if wp5==165
(5000 real changes made)

->  replace cty="PRT" if wp5==166
(3009 real changes made)

->  replace cty="PRI" if wp5==167
(500 real changes made)

. for ! in num 173 175 176 \ @ in any SRB SVK SVN: replace cty="@" if wp5==!

->  replace cty="SRB" if wp5==173
(3564 real changes made)

->  replace cty="SVK" if wp5==175
(1018 real changes made)

->  replace cty="SVN" if wp5==176
(1509 real changes made)

. for ! in num 184 185 187 189 \ @ in any CHE TJK TGO TTO: replace cty="@" if wp5==!

->  replace cty="CHE" if wp5==184
(2003 real changes made)

->  replace cty="TJK" if wp5==185
(5000 real changes made)

->  replace cty="TGO" if wp5==187
(2000 real changes made)

->  replace cty="TTO" if wp5==189
(1010 real changes made)

. for ! in num 193 194 195 197 198 \ @ in any ARE URY UZB YEM UNK: replace cty="@" if w
> p5==!

->  replace cty="ARE" if wp5==193
(4104 real changes made)

->  replace cty="URY" if wp5==194
(5013 real changes made)

->  replace cty="UZB" if wp5==195
(4000 real changes made)

->  replace cty="YEM" if wp5==197
(4000 real changes made)

->  replace cty="UNK" if wp5==198
(3093 real changes made)

. for ! in num 7   92  94  102 106 107 108 112 125 127 130 134 140 141 144 148 153 155 
> 168 181 190 191 \ @ in any SYR BHR BLZ CAF COM COD COG DJI GIN GUY ISL CIV LBR LBY LU
> X MLT MNG NAM QAT SDN TUN TKM : replace cty="@" if wp5==!

->  replace cty="SYR" if wp5==7
(4338 real changes made)

->  replace cty="BHR" if wp5==92
(3159 real changes made)

->  replace cty="BLZ" if wp5==94
(502 real changes made)

->  replace cty="CAF" if wp5==102
(1000 real changes made)

->  replace cty="COM" if wp5==106
(3000 real changes made)

->  replace cty="COD" if wp5==107
(1000 real changes made)

->  replace cty="COG" if wp5==108
(1000 real changes made)

->  replace cty="DJI" if wp5==112
(3000 real changes made)

->  replace cty="GIN" if wp5==125
(1000 real changes made)

->  replace cty="GUY" if wp5==127
(501 real changes made)

->  replace cty="ISL" if wp5==130
(502 real changes made)

->  replace cty="CIV" if wp5==134
(1000 real changes made)

->  replace cty="LBR" if wp5==140
(3000 real changes made)

->  replace cty="LBY" if wp5==141
(2000 real changes made)

->  replace cty="LUX" if wp5==144
(500 real changes made)

->  replace cty="MLT" if wp5==148
(508 real changes made)

->  replace cty="MNG" if wp5==153
(3000 real changes made)

->  replace cty="NAM" if wp5==155
(1000 real changes made)

->  replace cty="QAT" if wp5==168
(2028 real changes made)

->  replace cty="SDN" if wp5==181
(4000 real changes made)

->  replace cty="TUN" if wp5==190
(4173 real changes made)

->  replace cty="TKM" if wp5==191
(1000 real changes made)

. replace cty="SOM" if wp5==199 /* I'm calling Somaliland Somalia; not quite right*/
(3000 real changes made)

. tab wp5 if cty==""
no observations

. gen oecd=0

. for ! in any AUT BEL CAN DNK FRA DEU GRC ISL IRL ITA LUX NLD NOR PRT ESP SWE CHE TUR 
> GBR ///
>     USA JPN FIN AUS NZL MEX CZE KOR HUN POL SVK: replace oecd=1 if cty=="!"

->  replace oecd=1 if cty=="AUT"
(3005 real changes made)

->  replace oecd=1 if cty=="BEL"
(3027 real changes made)

->  replace oecd=1 if cty=="CAN"
(4381 real changes made)

->  replace oecd=1 if cty=="DNK"
(4014 real changes made)

->  replace oecd=1 if cty=="FRA"
(4228 real changes made)

->  replace oecd=1 if cty=="DEU"
(7248 real changes made)

->  replace oecd=1 if cty=="GRC"
(3002 real changes made)

->  replace oecd=1 if cty=="ISL"
(502 real changes made)

->  replace oecd=1 if cty=="IRL"
(2501 real changes made)

->  replace oecd=1 if cty=="ITA"
(4023 real changes made)

->  replace oecd=1 if cty=="LUX"
(500 real changes made)

->  replace oecd=1 if cty=="NLD"
(3000 real changes made)

->  replace oecd=1 if cty=="NOR"
(2001 real changes made)

->  replace oecd=1 if cty=="PRT"
(3009 real changes made)

->  replace oecd=1 if cty=="ESP"
(4018 real changes made)

->  replace oecd=1 if cty=="SWE"
(4003 real changes made)

->  replace oecd=1 if cty=="CHE"
(2003 real changes made)

->  replace oecd=1 if cty=="TUR"
(3999 real changes made)

->  replace oecd=1 if cty=="GBR"
(4244 real changes made)

->  replace oecd=1 if cty=="USA"
(5238 real changes made)

->  replace oecd=1 if cty=="JPN"
(7150 real changes made)

->  replace oecd=1 if cty=="FIN"
(2015 real changes made)

->  replace oecd=1 if cty=="AUS"
(4211 real changes made)

->  replace oecd=1 if cty=="NZL"
(3278 real changes made)

->  replace oecd=1 if cty=="MEX"
(5006 real changes made)

->  replace oecd=1 if cty=="CZE"
(3150 real changes made)

->  replace oecd=1 if cty=="KOR"
(5100 real changes made)

->  replace oecd=1 if cty=="HUN"
(3043 real changes made)

->  replace oecd=1 if cty=="POL"
(4000 real changes made)

->  replace oecd=1 if cty=="SVK"
(1018 real changes made)

. 
. rename wp1219 sex

. rename wp1220 age

. rename wp1223 marital

. rename wp14 urbanrural

. rename wp3117 educ

. 
. 
. gen sat_current=wp16
(9597 missing values generated)

. la var sat "Current Life Satisfaction"

. gen sat_past=wp17
(229786 missing values generated)

. la var sat_past "Life Satisfaction 5 years ago"

. gen sat_future=wp18
(10596 missing values generated)

. la var sat_future "Expected Life Satisfaction in 5 years"

. cap gen sat_life=wp4656

. cap la var sat_life "Satisfaction with Life as a Whole"

. 
. #delimit;
delimiter now ;
. for X in var wp59 wp60 wp61 wp62 wp63 wp64 wp65 wp66 \ 
>         Y in any moredays wellrested respect choose smile proud lean goodfood: 
>         gen yesterday_Y=X;

->  gen yesterday_moredays=wp59
(207846 missing values generated)

->  gen yesterday_wellrested=wp60
(12055 missing values generated)

->  gen yesterday_respect=wp61
(12053 missing values generated)

->  gen yesterday_choose=wp62
(312675 missing values generated)

->  gen yesterday_smile=wp63
(32274 missing values generated)

->  gen yesterday_proud=wp64
(357925 missing values generated)

->  gen yesterday_lean=wp65
(15087 missing values generated)

->  gen yesterday_goodfood=wp66
(358767 missing values generated)

. for X in any moredays wellrested respect choose smile proud lean goodfood \
>         Y in any "Would you like to have more days just like yesterday?" "Did you fee
> l well rested
>     yesterday?" "Were you treated with respect all day yesterday?" "Were you able to 
> choose
>     how you spent your time all day?" "Did you smile or laugh a lot yesterday?" "Were
>  you
>     proud of something you did yesterday?" "Did you learn or do something interesting
>     yesterday?" "Did you have good tasting food to eat yesterday?" : la var yesterday
> _X "Y";

->  la var yesterday_moredays `"Would you like to have more days just like yesterday?"'

->  la var yesterday_wellrested `"Did you feel well rested     yesterday?"'

->  la var yesterday_respect `"Were you treated with respect all day yesterday?"'

->  la var yesterday_choose `"Were you able to choose     how you spent your time all d
> ay?"'

->  la var yesterday_smile `"Did you smile or laugh a lot yesterday?"'

->  la var yesterday_proud `"Were you     proud of something you did yesterday?"'

->  la var yesterday_lean `"Did you learn or do something interesting     yesterday?"'

->  la var yesterday_goodfood `"Did you have good tasting food to eat yesterday?"'

. for X in var wp67 wp68 wp69 wp70 wp71 wp72 wp73 wp74  wp76 \ 
>         Y in any enjoyment pain worry sadness stress boredom depression anger love: 
>         gen feelings_Y=X;

->  gen feelings_enjoyment=wp67
(11710 missing values generated)

->  gen feelings_pain=wp68
(11708 missing values generated)

->  gen feelings_worry=wp69
(10710 missing values generated)

->  gen feelings_sadness=wp70
(11912 missing values generated)

->  gen feelings_stress=wp71
(119997 missing values generated)

->  gen feelings_boredom=wp72
(346407 missing values generated)

->  gen feelings_depression=wp73
(33992 missing values generated)

->  gen feelings_anger=wp74
(31928 missing values generated)

->  gen feelings_love=wp76
(391812 missing values generated)

. for X in any enjoyment pain worry sadness boredom depression anger love \ 
>         Y in any "Enjoyment" "Physical Pain" "Worry" "Sadness" "Boredom" "Depression"
>  "Anger" "Love" : la
>     var feelings_X "Y";

->  la var feelings_enjoyment `"Enjoyment"'

->  la var feelings_pain `"Physical Pain"'

->  la var feelings_worry `"Worry"'

->  la var feelings_sadness `"Sadness"'

->  la var feelings_boredom `"Boredom"'

->  la var feelings_depression `"Depression"'

->  la var feelings_anger `"Anger"'

->  la var feelings_love `"Love"'

. for X in var wp138 wp139 wp141 wp143 \ Y in any  judicial govt finance media:
>         rename X conf_Y;

->  rename wp138 conf_judicial

->  rename wp139 conf_govt

->  rename wp141 conf_finance

->  rename wp143 conf_media

. * Deal with missing values;
. for var sat_*: replace X=. if X==98 | X==99;

->  replace sat_current=. if sat_current==98 | sat_current==99
(5817 real changes made, 5817 to missing)

->  replace sat_past=. if sat_past==98 | sat_past==99
(6361 real changes made, 6361 to missing)

->  replace sat_future=. if sat_future==98 | sat_future==99
(57922 real changes made, 57922 to missing)

->  replace sat_life=. if sat_life==98 | sat_life==99
(2015 real changes made, 2015 to missing)

. for var yesterday_* feelings_* conf_*: replace X=. if X==3 | X==4;

->  replace yesterday_moredays=. if yesterday_moredays==3 | yesterday_moredays==4
(15413 real changes made, 15413 to missing)

->  replace yesterday_wellrested=. if yesterday_wellrested==3 | yesterday_wellrested==4
(7046 real changes made, 7046 to missing)

->  replace yesterday_respect=. if yesterday_respect==3 | yesterday_respect==4
(18574 real changes made, 18574 to missing)

->  replace yesterday_choose=. if yesterday_choose==3 | yesterday_choose==4
(6101 real changes made, 6101 to missing)

->  replace yesterday_smile=. if yesterday_smile==3 | yesterday_smile==4
(15138 real changes made, 15138 to missing)

->  replace yesterday_proud=. if yesterday_proud==3 | yesterday_proud==4
(11050 real changes made, 11050 to missing)

->  replace yesterday_lean=. if yesterday_lean==3 | yesterday_lean==4
(15699 real changes made, 15699 to missing)

->  replace yesterday_goodfood=. if yesterday_goodfood==3 | yesterday_goodfood==4
(4686 real changes made, 4686 to missing)

->  replace feelings_enjoyment=. if feelings_enjoyment==3 | feelings_enjoyment==4
(10640 real changes made, 10640 to missing)

->  replace feelings_pain=. if feelings_pain==3 | feelings_pain==4
(4803 real changes made, 4803 to missing)

->  replace feelings_worry=. if feelings_worry==3 | feelings_worry==4
(6284 real changes made, 6284 to missing)

->  replace feelings_sadness=. if feelings_sadness==3 | feelings_sadness==4
(7021 real changes made, 7021 to missing)

->  replace feelings_stress=. if feelings_stress==3 | feelings_stress==4
(6068 real changes made, 6068 to missing)

->  replace feelings_boredom=. if feelings_boredom==3 | feelings_boredom==4
(3576 real changes made, 3576 to missing)

->  replace feelings_depression=. if feelings_depression==3 | feelings_depression==4
(8315 real changes made, 8315 to missing)

->  replace feelings_anger=. if feelings_anger==3 | feelings_anger==4
(7099 real changes made, 7099 to missing)

->  replace feelings_love=. if feelings_love==3 | feelings_love==4
(6315 real changes made, 6315 to missing)

->  replace conf_judicial=. if conf_judicial==3 | conf_judicial==4
(44852 real changes made, 44852 to missing)

->  replace conf_govt=. if conf_govt==3 | conf_govt==4
(32152 real changes made, 32152 to missing)

->  replace conf_finance=. if conf_finance==3 | conf_finance==4
(51637 real changes made, 51637 to missing)

->  replace conf_media=. if conf_media==3 | conf_media==4
(50851 real changes made, 50851 to missing)

. label define yesno 0 "No" 1 "yes";

. for var yesterday_* feelings_* conf_*: replace X=0 if X==2 \ label values X yesno;

->  replace yesterday_moredays=0 if yesterday_moredays==2
(118048 real changes made)

->  label values yesterday_moredays yesno

->  replace yesterday_wellrested=0 if yesterday_wellrested==2
(187821 real changes made)

->  label values yesterday_wellrested yesno

->  replace yesterday_respect=0 if yesterday_respect==2
(80800 real changes made)

->  label values yesterday_respect yesno

->  replace yesterday_choose=0 if yesterday_choose==2
(81194 real changes made)

->  label values yesterday_choose yesno

->  replace yesterday_smile=0 if yesterday_smile==2
(161949 real changes made)

->  label values yesterday_smile yesno

->  replace yesterday_proud=0 if yesterday_proud==2
(94511 real changes made)

->  label values yesterday_proud yesno

->  replace yesterday_lean=0 if yesterday_lean==2
(274906 real changes made)

->  label values yesterday_lean yesno

->  replace yesterday_goodfood=0 if yesterday_goodfood==2
(59643 real changes made)

->  label values yesterday_goodfood yesno

->  replace feelings_enjoyment=0 if feelings_enjoyment==2
(167052 real changes made)

->  label values feelings_enjoyment yesno

->  replace feelings_pain=0 if feelings_pain==2
(430119 real changes made)

->  label values feelings_pain yesno

->  replace feelings_worry=0 if feelings_worry==2
(394036 real changes made)

->  label values feelings_worry yesno

->  replace feelings_sadness=0 if feelings_sadness==2
(464605 real changes made)

->  label values feelings_sadness yesno

->  replace feelings_stress=0 if feelings_stress==2
(349218 real changes made)

->  label values feelings_stress yesno

->  replace feelings_boredom=0 if feelings_boredom==2
(191678 real changes made)

->  label values feelings_boredom yesno

->  replace feelings_depression=0 if feelings_depression==2
(482705 real changes made)

->  label values feelings_depression yesno

->  replace feelings_anger=0 if feelings_anger==2
(452211 real changes made)

->  label values feelings_anger yesno

->  replace feelings_love=0 if feelings_love==2
(66102 real changes made)

->  label values feelings_love yesno

->  replace conf_judicial=0 if conf_judicial==2
(236190 real changes made)

->  label values conf_judicial yesno

->  replace conf_govt=0 if conf_govt==2
(212971 real changes made)

->  label values conf_govt yesno

->  replace conf_finance=0 if conf_finance==2
(184787 real changes made)

->  label values conf_finance yesno

->  replace conf_media=0 if conf_media==2
(206801 real changes made)

->  label values conf_media yesno

.     label define educ 1 "Primary or less" 2 "Secondary-3 year Tertiary" 3 "4 year Ter
> tiary or
>     more";

. #delimit cr
delimiter now cr
. 
. label values educ educ

. for var educ: replace X=. if X==4 | X==5

->  replace educ=. if educ==4 | educ==5
(2837 real changes made, 2837 to missing)

. * Merge in data
. gen year=int(wave)+2005

. replace wave=int(wave)
(76931 real changes made)

. sort cty year

. merge m:1 cty year using "Unemployment rates", keep(match master)
country was str24 now str37

    Result                           # of obs.
    -----------------------------------------
    not matched                        13,607
        from master                    13,607  (_merge==1)
        from using                          0  (_merge==2)

    matched                           589,736  (_merge==3)
    -----------------------------------------

. tab cty _merge

           |        _merge
       cty | master on  matched ( |     Total
-----------+----------------------+----------
       AFG |         0      5,206 |     5,206 
       AGO |         0      2,000 |     2,000 
       ALB |         0      3,001 |     3,001 
       ARE |         0      4,104 |     4,104 
       ARG |         0      5,000 |     5,000 
       ARM |         0      5,000 |     5,000 
       AUS |         0      4,211 |     4,211 
       AUT |         0      3,005 |     3,005 
       AZE |         0      5,000 |     5,000 
       BDI |         0      2,000 |     2,000 
       BEL |         0      3,027 |     3,027 
       BEN |         0      2,000 |     2,000 
       BFA |         0      4,000 |     4,000 
       BGD |         0      5,248 |     5,248 
       BGR |         0      2,003 |     2,003 
       BHR |         0      3,159 |     3,159 
       BIH |         0      4,013 |     4,013 
       BLR |         0      5,387 |     5,387 
       BLZ |         0        502 |       502 
       BOL |         0      5,003 |     5,003 
       BRA |         0      4,130 |     4,130 
       BWA |         0      2,000 |     2,000 
       CAF |         0      1,000 |     1,000 
       CAN |         0      4,381 |     4,381 
       CHE |         0      2,003 |     2,003 
       CHL |         0      4,147 |     4,147 
       CHN |         0     20,703 |    20,703 
       CIV |         0      1,000 |     1,000 
       CMR |         0      5,200 |     5,200 
       COD |         0      1,000 |     1,000 
       COG |         0      1,000 |     1,000 
       COL |         0      5,000 |     5,000 
       COM |         0      3,000 |     3,000 
       CRI |         0      4,004 |     4,004 
       CUB |     1,000          0 |     1,000 
       CYP |         0      1,502 |     1,502 
       CZE |         0      3,150 |     3,150 
       DEU |         0      7,248 |     7,248 
       DJI |         0      3,000 |     3,000 
       DNK |         0      4,014 |     4,014 
       DOM |         0      4,000 |     4,000 
       DZA |         0      4,102 |     4,102 
       ECU |         0      5,129 |     5,129 
       EGY |         0      6,282 |     6,282 
       ESP |         0      4,018 |     4,018 
       EST |         0      3,213 |     3,213 
       ETH |         0      2,000 |     2,000 
       FIN |         0      2,015 |     2,015 
       FRA |         0      4,228 |     4,228 
       GBR |         0      4,244 |     4,244 
       GEO |         0      5,080 |     5,080 
       GHA |         0      4,000 |     4,000 
       GIN |         0      1,000 |     1,000 
       GRC |         0      3,002 |     3,002 
       GTM |         0      4,036 |     4,036 
       GUY |         0        501 |       501 
       HKG |         0      3,062 |     3,062 
       HND |         0      4,002 |     4,002 
       HRV |         0      3,010 |     3,010 
       HTI |         0      1,005 |     1,005 
       HUN |         0      3,043 |     3,043 
       IDN |         0      5,390 |     5,390 
       IND |         0     16,296 |    16,296 
       IRL |         0      2,501 |     2,501 
       IRN |         0      3,344 |     3,344 
       IRQ |         0      3,991 |     3,991 
       ISL |         0        502 |       502 
       ISR |         0      4,004 |     4,004 
       ITA |         0      4,023 |     4,023 
       JAM |         0        543 |       543 
       JOR |         0      6,039 |     6,039 
       JPN |         0      7,150 |     7,150 
       KAZ |         0      5,000 |     5,000 
       KEN |         0      6,200 |     6,200 
       KGZ |         0      5,000 |     5,000 
       KHM |         0      5,024 |     5,024 
       KOR |         0      5,100 |     5,100 
       KWT |         0      4,002 |     4,002 
       LAO |         0      3,001 |     3,001 
       LBN |         0      6,014 |     6,014 
       LBR |         0      3,000 |     3,000 
       LBY |         0      2,000 |     2,000 
       LKA |         0      5,063 |     5,063 
       LTU |         0      4,029 |     4,029 
       LUX |         0        500 |       500 
       LVA |         0      3,045 |     3,045 
       MAR |         0      5,074 |     5,074 
       MDA |         0      5,000 |     5,000 
       MDG |         0      2,000 |     2,000 
       MEX |         0      5,006 |     5,006 
       MKD |         0      3,066 |     3,066 
       MLI |         0      3,000 |     3,000 
       MLT |         0        508 |       508 
       MMR |         0      1,047 |     1,047 
       MNE |         0      2,837 |     2,837 
       MNG |         0      3,000 |     3,000 
       MOZ |         0      3,000 |     3,000 
       MRT |         0      5,984 |     5,984 
       MWI |         0      3,000 |     3,000 
       MYS |         0      5,256 |     5,256 
       NAM |         0      1,000 |     1,000 
       NER |         0      4,000 |     4,000 
       NGA |         0      5,000 |     5,000 
       NIC |         0      4,013 |     4,013 
       NLD |         0      3,000 |     3,000 
       NOR |         0      2,001 |     2,001 
       NPL |         0      5,007 |     5,007 
       NZL |         0      3,278 |     3,278 
       PAK |         0      9,139 |     9,139 
       PAN |         0      4,027 |     4,027 
       PER |         0      5,000 |     5,000 
       PHL |         0      5,200 |     5,200 
       POL |         0      4,000 |     4,000 
       PRI |       500          0 |       500 
       PRT |         0      3,009 |     3,009 
       PRY |         0      5,001 |     5,001 
       PSE |     6,014          0 |     6,014 
       QAT |         0      2,028 |     2,028 
       ROU |         0      3,022 |     3,022 
       RUS |         0     11,021 |    11,021 
       RWA |         0      3,504 |     3,504 
       SAU |         0      6,235 |     6,235 
       SDN |         0      4,000 |     4,000 
       SEN |         0      5,000 |     5,000 
       SGP |         0      6,652 |     6,652 
       SLE |         0      3,000 |     3,000 
       SLV |         0      4,007 |     4,007 
       SOM |     3,000          0 |     3,000 
       SRB |         0      3,564 |     3,564 
       SVK |         0      1,018 |     1,018 
       SVN |         0      1,509 |     1,509 
       SWE |         0      4,003 |     4,003 
       SYR |         0      4,338 |     4,338 
       TCD |         0      4,000 |     4,000 
       TGO |         0      2,000 |     2,000 
       THA |         0      4,473 |     4,473 
       TJK |         0      5,000 |     5,000 
       TKM |         0      1,000 |     1,000 
       TTO |         0      1,010 |     1,010 
       TUN |         0      4,173 |     4,173 
       TUR |         0      3,999 |     3,999 
       TWN |         0      3,002 |     3,002 
       TZA |         0      5,000 |     5,000 
       UGA |         0      5,000 |     5,000 
       UKR |         0      5,323 |     5,323 
       UNK |     3,093          0 |     3,093 
       URY |         0      5,013 |     5,013 
       USA |         0      5,238 |     5,238 
       UZB |         0      4,000 |     4,000 
       VEN |         0      4,000 |     4,000 
       VNM |         0      5,065 |     5,065 
       YEM |         0      4,000 |     4,000 
       ZAF |         0      4,001 |     4,001 
       ZMB |         0      4,001 |     4,001 
       ZWE |         0      5,000 |     5,000 
-----------+----------------------+----------
     Total |    13,607    589,736 |   603,343 


. drop _merge

. 
. drop wp* region* index*

. compress
oecd was float now byte
sat_current was float now byte
sat_past was float now byte
sat_future was float now byte
sat_life was float now byte
yesterday_moredays was float now byte
yesterday_wellrested was float now byte
yesterday_respect was float now byte
yesterday_choose was float now byte
yesterday_smile was float now byte
yesterday_proud was float now byte
yesterday_lean was float now byte
yesterday_goodfood was float now byte
feelings_enjoyment was float now byte
feelings_pain was float now byte
feelings_worry was float now byte
feelings_sadness was float now byte
feelings_stress was float now byte
feelings_boredom was float now byte
feelings_depression was float now byte
feelings_anger was float now byte
feelings_love was float now byte
year was float now int
wave was double now byte
country was str37 now str24
weocountrycode was str74 now str3

. save "..\Proprietary\Gallup_work", replace
file ..\Proprietary\Gallup_work.dta saved

. 
. 
. 
end of do-file

. cd "$project"
C:\Users\jwolfers\Documents\Justin@Wharton\Trust in Public Institutions\AER Archive

. 
. *** Figure 1: Confidence in institutions--Time series plot
. use "Gallup trust\Trust_gallup", clear
(Now I am going to read you a list of institutions in American society.  Please t)

. for var banks-tvnews: gen X_high=(X>3) if X<.

->  gen banks_high=(banks>3) if banks<.
(11365 missing values generated)

->  gen bigbus_high=(bigbus>3) if bigbus<.
(5897 missing values generated)

->  gen church_high=(church>3) if church<.
(1899 missing values generated)

->  gen congress_high=(congress>3) if congress<.
(3712 missing values generated)

->  gen labor_high=(labor>3) if labor<.
(4314 missing values generated)

->  gen military_high=(military>3) if military<.
(4992 missing values generated)

->  gen newspapers_high=(newspapers>3) if newspapers<.
(8363 missing values generated)

->  gen presidency_high=(presidency>3) if presidency<.
(19849 missing values generated)

->  gen schools_high=(schools>3) if schools<.
(7568 missing values generated)

->  gen supcourt_high=(supcourt>3) if supcourt<.
(5073 missing values generated)

->  gen tvnews_high=(tvnews>3) if tvnews<.
(23854 missing values generated)

. gen n=1

. replace year=year(dt) if year==.
(0 real changes made)

. collapse (mean) *_high (sum) n [aw=wt], by(year)

. append using "..\National time series\Unemployment rate.dta"

. collapse (mean) *_high ur (sum) n , by(year)

. replace ur_usa=ur_usa/100
(63 real changes made)

. keep if year>=1972
(24 observations deleted)

. 
. * Add in recession data
. append using "..\National time series\NBER Recessions", keep(recession date)

. rename date nber_date 

. gen zero=0 if nber_date~=.
(40 missing values generated)

. drop if nber_date<1972
(108 observations deleted)

. 
. replace recession=.75 if recession>0
recession was byte now float
(52 real changes made)

. 
. twoway ///
>         (rarea recession zero nber_date, sort lcolor(bg) fcolor(gs12)) ///
>         (line congress year, sort lpattern(dash) lcolor(navy) lwidth(medthick)) ///
>         (line supcourt year, sort lpattern(longdash) lcolor(orange)) ///
>         (line banks year, sort lpattern(solid) lcolor(cranberry) lwidth(medthick)) //
> /
>         (line newspapers year, sort lpattern(shortdash_dot)) ///
>         (line bigbus year, sort lpattern(shortdash) lcolor(green) lwidth(medthick)) /
> //
>         , ///
>         legend( ///
>                 title("Proportion expressing quite a lot of confidence in:") ///
>                 order(4 "Banks" 3 "Supreme Court" 5 "Newspapers" 2 "Congress" 6 "Big 
> business") ///
>                 size(large) symxsize(*.5) keygap(*.05) bmargin(none) ///
>                 rows(1) ///
>                 ring(0) pos(12) ///
>         ) ///
>         xlabel(,nolabel tposition(inside)) xtitle("")  ///
>         ylabel(0(.1)0.75, angle(horizontal) format(%9.2f)) ytitle("") ///
>         xsize(10) ysize(7.5) ///
>         name(trust, replace)
(note:  named style none not found in class margin, default attributes used)

. 
. replace recession=.1 if recession>0
(52 real changes made)

. twoway ///
>         (rarea recession zero nber_date, sort lcolor(bg) fcolor(gs12)) ///
>         (line ur year, sort lcolor(black)) ///
>         , ///
>         title("Unemployment Rate", ring(0) pos(12)) ///
>         ylabel(0.0(.02).1, angle(horizontal) format(%9.2f)) ytitle("") ///
>         xtitle("") xlabel(1970(10)2010, tpos(inside) labsize(medlarge)) ///
>         note("Shaded areas denote NBER-designated recessions.", ring(0) pos(7) size(m
> edium)) ///
>         legend(off) ///
>         fysize(30) ///
>         name(ur, replace)

. 
. graph combine trust ur, ///
>         rows(2)  imargin(none) ///
>         xsize(10) ysize(7.5)
(note:  named style none not found in class margin, default attributes used)
(note:  named style none not found in class margin, default attributes used)
(note:  named style none not found in class margin, default attributes used)

.         
. graph export "$project\fig1.eps", replace
(file C:\Users\jwolfers\Documents\Justin@Wharton\Trust in Public Institutions\AER Archi
> ve\fig1.eps written in EPS format)

. 
. * Table 1: US Time Series
. * Table 1, Panel A: Gallup Trust
. use "$project\Gallup trust\Trust_gallup", clear
(Now I am going to read you a list of institutions in American society.  Please t)

. for var banks-tvnews: gen X_high=(X>3) if X<.

->  gen banks_high=(banks>3) if banks<.
(11365 missing values generated)

->  gen bigbus_high=(bigbus>3) if bigbus<.
(5897 missing values generated)

->  gen church_high=(church>3) if church<.
(1899 missing values generated)

->  gen congress_high=(congress>3) if congress<.
(3712 missing values generated)

->  gen labor_high=(labor>3) if labor<.
(4314 missing values generated)

->  gen military_high=(military>3) if military<.
(4992 missing values generated)

->  gen newspapers_high=(newspapers>3) if newspapers<.
(8363 missing values generated)

->  gen presidency_high=(presidency>3) if presidency<.
(19849 missing values generated)

->  gen schools_high=(schools>3) if schools<.
(7568 missing values generated)

->  gen supcourt_high=(supcourt>3) if supcourt<.
(5073 missing values generated)

->  gen tvnews_high=(tvnews>3) if tvnews<.
(23854 missing values generated)

. gen n=1

. replace year=year(dt) if year==.
(0 real changes made)

. collapse (mean) *_high (sum) n [aw=wt], by(year)

. append using "$project\National time series\Unemployment rate.dta"

. collapse (mean) *_high ur (sum) n , by(year)

. replace ur_usa=ur_usa/100
(63 real changes made)

. keep if year>=1972
(24 observations deleted)

. tsset year
        time variable:  year, 1972 to 2010
                delta:  1 unit

. for X in var congress banks bigbus supcourt newspapers: newey X ur year, lag(3) force
>  \ newey X ur year if year<2007, lag(3) force \ table year if year==2007 | year==2010
> , c(m X)

->  newey congress_high ur year, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        30
maximum lag: 3                                      F(  2,    27)  =     55.64
                                                    Prob > F       =    0.0000

------------------------------------------------------------------------------
             |             Newey-West
congress_h~h |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |  -.8881999   .3778722    -2.35   0.026     -1.66353   -.1128701
        year |  -.0070747   .0009579    -7.39   0.000    -.0090402   -.0051092
       _cons |   14.43351   1.894721     7.62   0.000     10.54586    18.32116
------------------------------------------------------------------------------

->  newey congress_high ur year if year<2007, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        26
maximum lag: 3                                      F(  2,    23)  =      8.66
                                                    Prob > F       =    0.0016

------------------------------------------------------------------------------
             |             Newey-West
congress_h~h |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |   -.853008   .8063633    -1.06   0.301    -2.521098    .8150817
        year |  -.0064371   .0017254    -3.73   0.001    -.0100065   -.0028678
       _cons |   13.16515   3.460636     3.80   0.001     6.006282    20.32402
------------------------------------------------------------------------------

->  table year if year==2007 | year==2010, c(m congress_high)

--------------------------
     year | mean(congre~h)
----------+---------------
     2007 |       .1444877
     2010 |       .1104371
--------------------------

->  newey banks_high ur year, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        27
maximum lag: 3                                      F(  2,    24)  =      9.13
                                                    Prob > F       =    0.0011

------------------------------------------------------------------------------
             |             Newey-West
  banks_high |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |  -2.669143   .9409769    -2.84   0.009    -4.611224    -.727062
        year |  -.0059945   .0019457    -3.08   0.005    -.0100103   -.0019787
       _cons |   12.56596   3.878881     3.24   0.003     4.560345    20.57158
------------------------------------------------------------------------------

->  newey banks_high ur year if year<2007, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        23
maximum lag: 3                                      F(  2,    20)  =      0.37
                                                    Prob > F       =    0.6985

------------------------------------------------------------------------------
             |             Newey-West
  banks_high |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |   .1317013   1.891298     0.07   0.945    -3.813477     4.07688
        year |  -.0014631    .003997    -0.37   0.718    -.0098007    .0068745
       _cons |   3.370169    8.06469     0.42   0.680    -13.45248    20.19282
------------------------------------------------------------------------------

->  table year if year==2007 | year==2010, c(m banks_high)

--------------------------
     year | mean(banks_~h)
----------+---------------
     2007 |       .4160691
     2010 |       .2301793
--------------------------

->  newey bigbus_high ur year, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        30
maximum lag: 3                                      F(  2,    27)  =     17.02
                                                    Prob > F       =    0.0000

------------------------------------------------------------------------------
             |             Newey-West
 bigbus_high |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |  -.7659898    .564994    -1.36   0.186    -1.925262    .3932821
        year |  -.0036302   .0006643    -5.46   0.000    -.0049933   -.0022671
       _cons |   7.543677   1.322566     5.70   0.000     4.829995    10.25736
------------------------------------------------------------------------------

->  newey bigbus_high ur year if year<2007, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        26
maximum lag: 3                                      F(  2,    23)  =      5.66
                                                    Prob > F       =    0.0100

------------------------------------------------------------------------------
             |             Newey-West
 bigbus_high |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |  -.7038655   .9903352    -0.71   0.484     -2.75253    1.344799
        year |  -.0032797   .0010471    -3.13   0.005    -.0054458   -.0011135
       _cons |   6.843511    2.12148     3.23   0.004     2.454895    11.23213
------------------------------------------------------------------------------

->  table year if year==2007 | year==2010, c(m bigbus_high)

--------------------------
     year | mean(bigbus~h)
----------+---------------
     2007 |       .1872198
     2010 |       .1891607
--------------------------

->  newey supcourt_high ur year, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        30
maximum lag: 3                                      F(  2,    27)  =      7.13
                                                    Prob > F       =    0.0033

------------------------------------------------------------------------------
             |             Newey-West
supcourt_h~h |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |  -.8260992   .5115503    -1.61   0.118    -1.875714    .2235152
        year |  -.0034458   .0011644    -2.96   0.006     -.005835   -.0010566
       _cons |   7.392258   2.312666     3.20   0.004      2.64706    12.13746
------------------------------------------------------------------------------

->  newey supcourt_high ur year if year<2007, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        26
maximum lag: 3                                      F(  2,    23)  =      1.31
                                                    Prob > F       =    0.2882

------------------------------------------------------------------------------
             |             Newey-West
supcourt_h~h |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |  -.2726042   .6632087    -0.41   0.685    -1.644556    1.099347
        year |  -.0016849   .0010492    -1.61   0.122    -.0038553    .0004855
       _cons |   3.859174   2.105106     1.83   0.080     -.495569    8.213917
------------------------------------------------------------------------------

->  table year if year==2007 | year==2010, c(m supcourt_high)

--------------------------
     year | mean(supcou~h)
----------+---------------
     2007 |       .3427733
     2010 |       .3724547
--------------------------

->  newey newspapers_high ur year, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        28
maximum lag: 3                                      F(  2,    25)  =     14.59
                                                    Prob > F       =    0.0001

------------------------------------------------------------------------------
             |             Newey-West
newspapers~h |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |   -.836288    .369047    -2.27   0.032    -1.596355   -.0762216
        year |  -.0044813   .0008753    -5.12   0.000    -.0062839   -.0026787
       _cons |   9.327725   1.749923     5.33   0.000     5.723691    12.93176
------------------------------------------------------------------------------

->  newey newspapers_high ur year if year<2007, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        24
maximum lag: 3                                      F(  2,    21)  =      5.78
                                                    Prob > F       =    0.0100

------------------------------------------------------------------------------
             |             Newey-West
newspapers~h |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |  -1.042198   .7576256    -1.38   0.183    -2.617767    .5333704
        year |  -.0040573   .0014843    -2.73   0.012    -.0071441   -.0009705
       _cons |   8.498111   3.000016     2.83   0.010     2.259236    14.73699
------------------------------------------------------------------------------

->  table year if year==2007 | year==2010, c(m newspapers_high)

--------------------------
     year | mean(newspa~h)
----------+---------------
     2007 |        .230329
     2010 |       .2499925
--------------------------

. 
. * Table 1, Panel B
. use "$project\GSS\Trust_GSS", clear

. for var confinan-conarmy: gen X_high=(X==3) if X<.

->  gen confinan_high=(confinan==3) if confinan<.
(20679 missing values generated)

->  gen conbus_high=(conbus==3) if conbus<.
(18510 missing values generated)

->  gen conclerg_high=(conclerg==3) if conclerg<.
(18285 missing values generated)

->  gen coneduc_high=(coneduc==3) if coneduc<.
(17511 missing values generated)

->  gen confed_high=(confed==3) if confed<.
(18059 missing values generated)

->  gen conlabor_high=(conlabor==3) if conlabor<.
(19095 missing values generated)

->  gen conpress_high=(conpress==3) if conpress<.
(17769 missing values generated)

->  gen conmedic_high=(conmedic==3) if conmedic<.
(17421 missing values generated)

->  gen contv_high=(contv==3) if contv<.
(17566 missing values generated)

->  gen conjudge_high=(conjudge==3) if conjudge<.
(18571 missing values generated)

->  gen consci_high=(consci==3) if consci<.
(19842 missing values generated)

->  gen conlegis_high=(conlegis==3) if conlegis<.
(18071 missing values generated)

->  gen conarmy_high=(conarmy==3) if conarmy<.
(18069 missing values generated)

. gen n=1

. collapse (mean) *_high (sum) n [aw=wt], by(year)

. append using "$project\National time series\Unemployment rate.dta"

. collapse (mean) *_high ur (sum) n , by(year)

. replace ur_usa=ur_usa/100
(63 real changes made)

. keep if year>=1972
(24 observations deleted)

. tsset year
        time variable:  year, 1972 to 2010
                delta:  1 unit

. for X in var conlegis confinan conbus conjudge conpress: newey X ur year, lag(3) forc
> e 

->  newey conlegis_high ur year, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        25
maximum lag: 3                                      F(  2,    22)  =      9.06
                                                    Prob > F       =    0.0013

------------------------------------------------------------------------------
             |             Newey-West
conlegis_h~h |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |  -1.362354   .3660483    -3.72   0.001    -2.121492   -.6032162
        year |  -.0026151   .0006799    -3.85   0.001     -.004025   -.0012051
       _cons |   5.424979   1.363798     3.98   0.001     2.596635    8.253323
------------------------------------------------------------------------------

->  newey confinan_high ur year, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        23
maximum lag: 3                                      F(  2,    20)  =      2.44
                                                    Prob > F       =    0.1128

------------------------------------------------------------------------------
             |             Newey-West
confinan_h~h |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |  -1.618719   .9272792    -1.75   0.096    -3.552989    .3155515
        year |  -.0050493   .0023318    -2.17   0.043    -.0099134   -.0001852
       _cons |   10.41427   4.681899     2.22   0.038     .6480049    20.18054
------------------------------------------------------------------------------

->  newey conbus_high ur year, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        25
maximum lag: 3                                      F(  2,    22)  =      8.70
                                                    Prob > F       =    0.0016

------------------------------------------------------------------------------
             |             Newey-West
 conbus_high |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |  -1.459562   .6470413    -2.26   0.034    -2.801443   -.1176804
        year |  -.0032261    .000856    -3.77   0.001    -.0050014   -.0014509
       _cons |   6.757746   1.708587     3.96   0.001     3.214354    10.30114
------------------------------------------------------------------------------

->  newey conjudge_high ur year, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        25
maximum lag: 3                                      F(  2,    22)  =      1.55
                                                    Prob > F       =    0.2349

------------------------------------------------------------------------------
             |             Newey-West
conjudge_h~h |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |  -.6282812      .3669    -1.71   0.101    -1.389185    .1326228
        year |  -.0001816   .0005732    -0.32   0.754    -.0013704    .0010073
       _cons |   .7345621   1.151388     0.64   0.530    -1.653271    3.122395
------------------------------------------------------------------------------

->  newey conpress_high ur year, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        25
maximum lag: 3                                      F(  2,    22)  =     50.76
                                                    Prob > F       =    0.0000

------------------------------------------------------------------------------
             |             Newey-West
conpress_h~h |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |  -.3939417   .5076023    -0.78   0.446    -1.446644     .658761
        year |  -.0056422   .0005791    -9.74   0.000    -.0068431   -.0044413
       _cons |   11.41032    1.16128     9.83   0.000     9.001968    13.81866
------------------------------------------------------------------------------

. 
. * Table 1, Panel C
. use "$project\Gallup honesty\Honesty_gallup", clear
(Please tell me how you would rate the honesty and ethical standards of people in)

. keep st dt ur advertisers-unionleaders wt

. for var advertisers-unionleaders: gen X_high=(X>=4) if X<.

->  gen advertisers_high=(advertisers>=4) if advertisers<.
(3702 missing values generated)

->  gen bankers_high=(bankers>=4) if bankers<.
(5100 missing values generated)

->  gen busexecs_high=(busexecs>=4) if busexecs<.
(2560 missing values generated)

->  gen carsalesmen_high=(carsalesmen>=4) if carsalesmen<.
(4757 missing values generated)

->  gen clergy_high=(clergy>=4) if clergy<.
(5361 missing values generated)

->  gen collegeteachers_high=(collegeteachers>=4) if collegeteachers<.
(9386 missing values generated)

->  gen congressmen_high=(congressmen>=4) if congressmen<.
(3648 missing values generated)

->  gen doctors_high=(doctors>=4) if doctors<.
(1231 missing values generated)

->  gen engineers_high=(engineers>=4) if engineers<.
(10621 missing values generated)

->  gen journalists_high=(journalists>=4) if journalists<.
(6880 missing values generated)

->  gen lawyers_high=(lawyers>=4) if lawyers<.
(3705 missing values generated)

->  gen pharmacists_high=(pharmacists>=4) if pharmacists<.
(5890 missing values generated)

->  gen policemen_high=(policemen>=4) if policemen<.
(3834 missing values generated)

->  gen senators_high=(senators>=4) if senators<.
(8688 missing values generated)

->  gen stockbrokers_high=(stockbrokers>=4) if stockbrokers<.
(11610 missing values generated)

->  gen unionleaders_high=(unionleaders>=4) if unionleaders<.
(10403 missing values generated)

. gen n=1

. gen year=year(dt) 

. collapse (mean) *_high (sum) n [aw=wt], by(year)

. append using "$project\National time series\Unemployment rate.dta"

. collapse (mean) *_high ur (sum) n , by(year)

. replace ur_usa=ur_usa/100
(63 real changes made)

. keep if year>=1972
(24 observations deleted)

. tsset year
        time variable:  year, 1972 to 2010
                delta:  1 unit

. for X in var congressmen bankers busexecs lawyers journalists: newey X ur year, lag(3
> ) force \ newey X ur year if year<2007, lag(3) force \ table year if year==2007 | yea
> r==2010, c(m X)

->  newey congressmen_high ur year, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        26
maximum lag: 3                                      F(  2,    23)  =     10.41
                                                    Prob > F       =    0.0006

------------------------------------------------------------------------------
             |             Newey-West
congressme~h |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |  -1.107445   .3689924    -3.00   0.006    -1.870764   -.3441266
        year |  -.0015477   .0006785    -2.28   0.032    -.0029513   -.0001441
       _cons |   3.310808   1.345503     2.46   0.022     .5274243    6.094193
------------------------------------------------------------------------------

->  newey congressmen_high ur year if year<2007, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        22
maximum lag: 3                                      F(  2,    19)  =      0.61
                                                    Prob > F       =    0.5554

------------------------------------------------------------------------------
             |             Newey-West
congressme~h |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |  -.6764762   .6635129    -1.02   0.321    -2.065225    .7122722
        year |  -.0003165   .0009987    -0.32   0.755    -.0024068    .0017738
       _cons |   .8339557   2.015229     0.41   0.684    -3.383968    5.051879
------------------------------------------------------------------------------

->  table year if year==2007 | year==2010, c(m congressmen_high)

--------------------------
     year | mean(congre~h)
----------+---------------
     2007 |        .086865
     2010 |       .0942079
--------------------------

->  newey bankers_high ur year, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        25
maximum lag: 3                                      F(  2,    22)  =      6.31
                                                    Prob > F       =    0.0068

------------------------------------------------------------------------------
             |             Newey-West
bankers_high |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |  -1.403693   .6808878    -2.06   0.051    -2.815768    .0083817
        year |  -.0032531    .001374    -2.37   0.027    -.0061026   -.0004036
       _cons |   6.908687   2.734226     2.53   0.019     1.238248    12.57913
------------------------------------------------------------------------------

->  newey bankers_high ur year if year<2007, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        21
maximum lag: 3                                      F(  2,    18)  =      0.20
                                                    Prob > F       =    0.8187

------------------------------------------------------------------------------
             |             Newey-West
bankers_high |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |    .501377   1.111891     0.45   0.657    -1.834619    2.837373
        year |  -.0001026   .0023305    -0.04   0.965    -.0049987    .0047935
       _cons |   .5140055   4.687194     0.11   0.914    -9.333423    10.36143
------------------------------------------------------------------------------

->  table year if year==2007 | year==2010, c(m bankers_high)

--------------------------
     year | mean(banker~h)
----------+---------------
     2007 |       .3527403
     2010 |       .2339542
--------------------------

->  newey busexecs_high ur year, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        26
maximum lag: 3                                      F(  2,    23)  =     13.64
                                                    Prob > F       =    0.0001

------------------------------------------------------------------------------
             |             Newey-West
busexecs_h~h |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |  -1.228195   .3283931    -3.74   0.001    -1.907528   -.5488618
        year |   -.002336   .0007334    -3.19   0.004    -.0038532   -.0008188
       _cons |   4.936992   1.462302     3.38   0.003     1.911989    7.961994
------------------------------------------------------------------------------

->  newey busexecs_high ur year if year<2007, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        22
maximum lag: 3                                      F(  2,    19)  =      3.30
                                                    Prob > F       =    0.0589

------------------------------------------------------------------------------
             |             Newey-West
busexecs_h~h |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |  -1.422651   .5566232    -2.56   0.019    -2.587677   -.2576252
        year |  -.0019819   .0011139    -1.78   0.091    -.0043133    .0003495
       _cons |   4.246006   2.249073     1.89   0.074    -.4613575     8.95337
------------------------------------------------------------------------------

->  table year if year==2007 | year==2010, c(m busexecs_high)

--------------------------
     year | mean(busexe~h)
----------+---------------
     2007 |       .1462044
     2010 |       .1465568
--------------------------

->  newey lawyers_high ur year, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        26
maximum lag: 3                                      F(  2,    23)  =     27.86
                                                    Prob > F       =    0.0000

------------------------------------------------------------------------------
             |             Newey-West
lawyers_high |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |   .4499589   .3477048     1.29   0.208    -.2693234    1.169241
        year |   -.003237   .0004386    -7.38   0.000    -.0041443   -.0023298
       _cons |   6.622928   .8761096     7.56   0.000     4.810557    8.435299
------------------------------------------------------------------------------

->  newey lawyers_high ur year if year<2007, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        22
maximum lag: 3                                      F(  2,    19)  =     18.99
                                                    Prob > F       =    0.0000

------------------------------------------------------------------------------
             |             Newey-West
lawyers_high |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |   .8675434   .6709803     1.29   0.212    -.5368345    2.271921
        year |  -.0027961   .0010307    -2.71   0.014    -.0049534   -.0006388
       _cons |   5.718174   2.085777     2.74   0.013     1.352593    10.08376
------------------------------------------------------------------------------

->  table year if year==2007 | year==2010, c(m lawyers_high)

--------------------------
     year | mean(lawyer~h)
----------+---------------
     2007 |       .1482465
     2010 |       .1642689
--------------------------

->  newey journalists_high ur year, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        23
maximum lag: 3                                      F(  2,    20)  =     13.71
                                                    Prob > F       =    0.0002

------------------------------------------------------------------------------
             |             Newey-West
journalist~h |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |   .4632697   .4065805     1.14   0.268    -.3848425    1.311382
        year |  -.0029563   .0006251    -4.73   0.000    -.0042603   -.0016524
       _cons |   6.139892   1.252612     4.90   0.000     3.526989    8.752795
------------------------------------------------------------------------------

->  newey journalists_high ur year if year<2007, lag(3) force

Regression with Newey-West standard errors          Number of obs  =        21
maximum lag: 3                                      F(  2,    18)  =     11.54
                                                    Prob > F       =    0.0006

------------------------------------------------------------------------------
             |             Newey-West
journalist~h |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      ur_usa |   .7507871   .7278051     1.03   0.316    -.7782746    2.279849
        year |  -.0025999   .0013655    -1.90   0.073    -.0054687    .0002689
       _cons |   5.411816   2.755955     1.96   0.065    -.3782315    11.20186
------------------------------------------------------------------------------

->  table year if year==2007 | year==2010, c(m journalists_high)

--------------------------
     year | mean(journa~h)
----------+---------------
     2007 |               
     2010 |               
--------------------------

.         
. * Note: The Gallup World Poll Data are proprietary, so I can't share them.      
. * Figure 2: GWP first differences
. use "$project\Proprietary\Gallup_work", clear 

. gen n=1

. gen after=(year>=2009)

. replace after=. if year==2008
(135703 real changes made, 135703 to missing)

. foreach v of varlist conf_* {
  2.         local l`v': variable label `v'
  3.         di "`l`v''"
  4.         local l`v'=substr("`l`v''", strpos("`l`v''", "in")+2,25)
  5.         di "`l`v''"
  6. }
WP138 Confidence in Judicial System
Judicial System
WP139 Confidence in National Government
National Government
WP141 Confidence in Financial Institutions
Financial Institutions
WP143 Confidence in the Media
the Media

. collapse (mean) conf_* ur oecd (sum) n [aw=wt], by(cty after)

. foreach v of varlist conf_* {
  2.         label var `v' "`l`v''"
  3.         replace `v'=`v'*100
  4. }
(356 real changes made)
(340 real changes made)
(359 real changes made)
(357 real changes made)

. la var conf_media "The Media"

. egen ctyid=group(cty)

. tsset ctyid after
       panel variable:  ctyid (unbalanced)
        time variable:  after, 0 to 1
                delta:  1 unit

. gen dur=d.ur
(304 missing values generated)

. foreach v of varlist conf* {
  2.         local l: variable label `v'
  3.         lowess d.`v' d.ur, nograph gen(low_`v')
  4.         reg d.`v' d.ur
  5.         local b=string(_b[d.ur],"%3.2f")
  6.         local se=string(_se[d.ur], "%3.2f")
  7.         local c=string(_b[_cons],"%3.2f")
  8.         correl d.`v' d.ur
  9.         local rho=string(r(rho),"%3.2f")
 10.         twoway ///
>                 (scatter d.`v' d.ur if oecd==1, mcolor(black) msymbol(square) mlabel(
> cty) mlabcolor(black) mlabpos(6)) ///
>                 (scatter d.`v' d.ur if oecd==0, mcolor(black) msymbol(circle_hollow) 
> mlabel(cty) mlabcolor(black) mlabpos(6)) ///
>                 (line low_`v' dur,  sort lpattern(dot) lcolor(cranberry)) ///
>                 (lfit d.`v' d.ur, lcolor(gray) lpattern(dash)) ///
>                 if d.`v'!=., ///
>                 legend(off) ///
>                 title("`l'", ring(0) pos(12)) ///
>                 subtitle(" " "Correlation = `rho'; Slope = `b' [se=`se']" , ring(0) p
> os(12)) ///
>                 xlabel(-4(2)12) ///
>                 ylabel(-40(10)40, angle(horizontal) format(%9.0f)) ///
>                 xtitle("") ytitle("") ///
>                 xsize(10) ysize(7.5) name(`v', replace)
 11.         
.         drop low_`v'
 12. }       

      Source |       SS       df       MS              Number of obs =      68
-------------+------------------------------           F(  1,    66) =    7.43
       Model |  427.497199     1  427.497199           Prob > F      =  0.0082
    Residual |  3795.07758    66  57.5011754           R-squared     =  0.1012
-------------+------------------------------           Adj R-squared =  0.0876
       Total |  4222.57478    67  63.0235042           Root MSE      =   7.583

------------------------------------------------------------------------------
D.           |
conf_judic~l |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |
         D1. |  -.8887082   .3259349    -2.73   0.008    -1.539458   -.2379581
             |
       _cons |   1.510769   .9741687     1.55   0.126    -.4342217    3.455759
------------------------------------------------------------------------------
(obs=68)

             |        D.       D.
             | conf_j~l       ur
-------------+------------------
conf_judic~l |
         D1. |   1.0000
          ur |
         D1. |  -0.3182   1.0000


      Source |       SS       df       MS              Number of obs =      65
-------------+------------------------------           F(  1,    63) =   15.04
       Model |  2199.64289     1  2199.64289           Prob > F      =  0.0003
    Residual |   9215.6851    63  146.280716           R-squared     =  0.1927
-------------+------------------------------           Adj R-squared =  0.1799
       Total |   11415.328    64    178.3645           Root MSE      =  12.095

------------------------------------------------------------------------------
 D.conf_govt |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |
         D1. |  -2.041777   .5265333    -3.88   0.000     -3.09397   -.9895846
             |
       _cons |   3.164876   1.602449     1.98   0.053    -.0373641    6.367115
------------------------------------------------------------------------------
(obs=65)

             |        D.       D.
             | conf_g~t       ur
-------------+------------------
   conf_govt |
         D1. |   1.0000
          ur |
         D1. |  -0.4390   1.0000


      Source |       SS       df       MS              Number of obs =      71
-------------+------------------------------           F(  1,    69) =   28.51
       Model |  3071.70282     1  3071.70282           Prob > F      =  0.0000
    Residual |  7433.59743    69  107.733296           R-squared     =  0.2924
-------------+------------------------------           Adj R-squared =  0.2821
       Total |  10505.3002    70  150.075718           Root MSE      =  10.379

------------------------------------------------------------------------------
D.           |
conf_finance |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |
         D1. |  -2.363558    .442641    -5.34   0.000    -3.246603   -1.480513
             |
       _cons |  -3.894477   1.296898    -3.00   0.004    -6.481717   -1.307237
------------------------------------------------------------------------------
(obs=71)

             |        D.       D.
             | conf_f~e       ur
-------------+------------------
conf_finance |
         D1. |   1.0000
          ur |
         D1. |  -0.5407   1.0000


      Source |       SS       df       MS              Number of obs =      70
-------------+------------------------------           F(  1,    68) =    1.63
       Model |  81.1482392     1  81.1482392           Prob > F      =  0.2058
    Residual |  3381.41403    68  49.7266769           R-squared     =  0.0234
-------------+------------------------------           Adj R-squared =  0.0091
       Total |  3462.56227    69  50.1820619           Root MSE      =  7.0517

------------------------------------------------------------------------------
D.conf_media |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |
         D1. |  -.3877964   .3035701    -1.28   0.206    -.9935611    .2179682
             |
       _cons |  -1.815566   .8919919    -2.04   0.046    -3.595508    -.035624
------------------------------------------------------------------------------
(obs=70)

             |        D.       D.
             | conf_m~a       ur
-------------+------------------
  conf_media |
         D1. |   1.0000
          ur |
         D1. |  -0.1531   1.0000


. 
. graph combine conf_govt conf_finance conf_judicial conf_media, ///
>         rows(2) imargin(tiny) ///
>         l1title("Change in Confidence (percentage points)") ///
>         b1title("Change in Unemployment rate (percentage points)") ///
>         xsize(10) ysize(7.5) name(changes, replace)

. graph export "$project\fig2.eps", replace
(file C:\Users\jwolfers\Documents\Justin@Wharton\Trust in Public Institutions\AER Archi
> ve\fig2.eps written in EPS format)

. 
.         
. * Table 2: Gallup World Poll
. use "$project\Proprietary\Gallup_work", clear

. * Number of observations
. egen nonmiss=rownonmiss(conf*)

. qui tab cty if nonmiss~=. 

. return list 

scalars:
                  r(N) =  603343
                  r(r) =  155

. qui tab cty if ur~=. 

. return list

scalars:
                  r(N) =  402055
                  r(r) =  98

. qui tab cty if nonmiss~=. & ur~=. 

. return list

scalars:
                  r(N) =  402055
                  r(r) =  98

. 
. * Panel A: Means
. for var conf_*: summ X if ur~=. [aw=wt] \ qui tab cty if ur~=. & X~=. \ return list

->  summ conf_judicial if ur~=. [aw=wt]

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
conf_judic~l |  311085  311123.303    .5133523   .4998225          0          1

->  qui tab cty if ur~=. & conf_judicial~=.

->  return list

scalars:
                  r(N) =  311085
                  r(r) =  96

->  summ conf_govt if ur~=. [aw=wt]

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
   conf_govt |  296706  296605.412    .5081259   .4999348          0          1

->  qui tab cty if ur~=. & conf_govt~=.

->  return list

scalars:
                  r(N) =  296706
                  r(r) =  93

->  summ conf_finance if ur~=. [aw=wt]

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
conf_finance |  321658  321289.488    .6140225    .486826          0          1

->  qui tab cty if ur~=. & conf_finance~=.

->  return list

scalars:
                  r(N) =  321658
                  r(r) =  97

->  summ conf_media if ur~=. [aw=wt]

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
  conf_media |  307841  307918.073    .5378368   .4985671          0          1

->  qui tab cty if ur~=. & conf_media~=.

->  return list

scalars:
                  r(N) =  307841
                  r(r) =  97

. 
. * Panel B: Probit regressions
. replace ur=ur/100
(402055 real changes made)

. egen ctyid=group(cty)

. for X in var sex age marital urban educ: replace X=101 if X==.

->  replace sex=101 if sex==.
sex was byte now int
(21 real changes made)

->  replace age=101 if age==.
age was byte now int
(3113 real changes made)

->  replace marital=101 if marital==.
(22599 real changes made)

->  replace urbanrural=101 if urbanrural==.
urbanrural was byte now int
(105735 real changes made)

->  replace educ=101 if educ==.
educ was byte now int
(94903 real changes made)

. for var conf_*: qui probit X ur i.sex i.age i.marital i.urbanrural i.educ i.ctyid i.y
> ear [pw=wt], cluster(cty) \ margins, dydx(ur) 

->  qui probit conf_judicial ur i.sex i.age i.marital i.urbanrural i.educ i.ctyid i.yea
> r [pw=wt], cluster(cty)

->  margins, dydx(ur)

Average marginal effects                          Number of obs   =     311085
Model VCE    : Robust

Expression   : Pr(conf_judicial), predict()
dy/dx w.r.t. : ur

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |  -.8679904   .3045346    -2.85   0.004    -1.464867   -.2711136
------------------------------------------------------------------------------

->  qui probit conf_govt ur i.sex i.age i.marital i.urbanrural i.educ i.ctyid i.year [p
> w=wt], cluster(cty)

->  margins, dydx(ur)

Average marginal effects                          Number of obs   =     296706
Model VCE    : Robust

Expression   : Pr(conf_govt), predict()
dy/dx w.r.t. : ur

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |  -1.593531   .4447152    -3.58   0.000    -2.465157   -.7219056
------------------------------------------------------------------------------

->  qui probit conf_finance ur i.sex i.age i.marital i.urbanrural i.educ i.ctyid i.year
>  [pw=wt], cluster(cty)

->  margins, dydx(ur)

Average marginal effects                          Number of obs   =     321642
Model VCE    : Robust

Expression   : Pr(conf_finance), predict()
dy/dx w.r.t. : ur

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |  -1.939311   .3724396    -5.21   0.000    -2.669279   -1.209343
------------------------------------------------------------------------------

->  qui probit conf_media ur i.sex i.age i.marital i.urbanrural i.educ i.ctyid i.year [
> pw=wt], cluster(cty)

->  margins, dydx(ur)

Average marginal effects                          Number of obs   =     307841
Model VCE    : Robust

Expression   : Pr(conf_media), predict()
dy/dx w.r.t. : ur

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |  -.1962626   .2613936    -0.75   0.453    -.7085846    .3160595
------------------------------------------------------------------------------

. 
. * Panel C: OECD only
. for var conf_*: qui probit X ur i.sex i.age i.marital i.urbanrural i.educ i.ctyid i.y
> ear [pw=wt] if oecd==1, cluster(cty) \ margins, dydx(ur)

->  qui probit conf_judicial ur i.sex i.age i.marital i.urbanrural i.educ i.ctyid i.yea
> r [pw=wt] if oecd==1, cluster(cty)

->  margins, dydx(ur)

Average marginal effects                          Number of obs   =      94674
Model VCE    : Robust

Expression   : Pr(conf_judicial), predict()
dy/dx w.r.t. : ur

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |  -2.007012   .7842223    -2.56   0.010     -3.54406   -.4699648
------------------------------------------------------------------------------

->  qui probit conf_govt ur i.sex i.age i.marital i.urbanrural i.educ i.ctyid i.year [p
> w=wt] if oecd==1, cluster(cty)

->  margins, dydx(ur)

Average marginal effects                          Number of obs   =      95134
Model VCE    : Robust

Expression   : Pr(conf_govt), predict()
dy/dx w.r.t. : ur

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |  -2.962967   .7929359    -3.74   0.000    -4.517092   -1.408841
------------------------------------------------------------------------------

->  qui probit conf_finance ur i.sex i.age i.marital i.urbanrural i.educ i.ctyid i.year
>  [pw=wt] if oecd==1, cluster(cty)

->  margins, dydx(ur)

Average marginal effects                          Number of obs   =      96205
Model VCE    : Robust

Expression   : Pr(conf_finance), predict()
dy/dx w.r.t. : ur

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |  -2.252253   .8522799    -2.64   0.008    -3.922691   -.5818153
------------------------------------------------------------------------------

->  qui probit conf_media ur i.sex i.age i.marital i.urbanrural i.educ i.ctyid i.year [
> pw=wt] if oecd==1, cluster(cty)

->  margins, dydx(ur)

Average marginal effects                          Number of obs   =      94197
Model VCE    : Robust

Expression   : Pr(conf_media), predict()
dy/dx w.r.t. : ur

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |   -.191977   .5133079    -0.37   0.708    -1.198042    .8140879
------------------------------------------------------------------------------

. 
. 
. 
. *Table 3: Cross-state analysis
. * Table 3, Panel A: Gallup Trust
. use "$project\Gallup trust\Trust_gallup", clear
(Now I am going to read you a list of institutions in American society.  Please t)

. egen surveyid=group(dt)

. for X in var age sex race3 educ: replace X=999 if X==.

->  replace age=999 if age==.
(364 real changes made)

->  replace sex=999 if sex==.
(0 real changes made)

->  replace race3=999 if race3==.
(101 real changes made)

->  replace educ=999 if educ==.
educ was byte now int
(122 real changes made)

. for var congress banks bigbus supcourt newspapers: ///
>         gen X_high=(X>3) if X<. \ ///
>         qui probit X_high ur i.stid i.year i.age i.sex i.race3 i.educ [pw=wt], cluste
> r(st) nolog \ ///
>         margins, dydx(ur) 

->  gen congress_high=(congress>3) if congress<.
(3712 missing values generated)

->  qui probit congress_high ur i.stid i.year i.age i.sex i.race3 i.educ [pw=wt], clust
> er(st) nolog

->  margins, dydx(ur)

Average marginal effects                          Number of obs   =      35352
Model VCE    : Robust

Expression   : Pr(congress_high), predict()
dy/dx w.r.t. : ur

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |  -.2319293   .2875927    -0.81   0.420    -.7956005     .331742
------------------------------------------------------------------------------

->  gen banks_high=(banks>3) if banks<.
(11365 missing values generated)

->  qui probit banks_high ur i.stid i.year i.age i.sex i.race3 i.educ [pw=wt], cluster(
> st) nolog

->  margins, dydx(ur)

Average marginal effects                          Number of obs   =      30712
Model VCE    : Robust

Expression   : Pr(banks_high), predict()
dy/dx w.r.t. : ur

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |  -.0585972   .4253728    -0.14   0.890    -.8923126    .7751182
------------------------------------------------------------------------------

->  gen bigbus_high=(bigbus>3) if bigbus<.
(5897 missing values generated)

->  qui probit bigbus_high ur i.stid i.year i.age i.sex i.race3 i.educ [pw=wt], cluster
> (st) nolog

->  margins, dydx(ur)

Average marginal effects                          Number of obs   =      33187
Model VCE    : Robust

Expression   : Pr(bigbus_high), predict()
dy/dx w.r.t. : ur

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |  -.7367592    .272764    -2.70   0.007    -1.271367   -.2021516
------------------------------------------------------------------------------

->  gen supcourt_high=(supcourt>3) if supcourt<.
(5073 missing values generated)

->  qui probit supcourt_high ur i.stid i.year i.age i.sex i.race3 i.educ [pw=wt], clust
> er(st) nolog

->  margins, dydx(ur)

Average marginal effects                          Number of obs   =      34050
Model VCE    : Robust

Expression   : Pr(supcourt_high), predict()
dy/dx w.r.t. : ur

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |  -.0726488   .2996289    -0.24   0.808    -.6599106    .5146131
------------------------------------------------------------------------------

->  gen newspapers_high=(newspapers>3) if newspapers<.
(8363 missing values generated)

->  qui probit newspapers_high ur i.stid i.year i.age i.sex i.race3 i.educ [pw=wt], clu
> ster(st) nolog

->  margins, dydx(ur)

Average marginal effects                          Number of obs   =      32211
Model VCE    : Robust

Expression   : Pr(newspapers_high), predict()
dy/dx w.r.t. : ur

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |   .2491839   .3367426     0.74   0.459    -.4108194    .9091873
------------------------------------------------------------------------------

. 
. * Table 3, Panel B /* This needs access to the proprietary state codes*/
. use "$project\Proprietary\Trust_GSS", clear

. egen stid=group(st)
(1613 missing values generated)

. for X in var age sex race ed: replace X=999 if X==.

->  replace age=999 if age==.
(0 real changes made)

->  replace sex=999 if sex==.
(0 real changes made)

->  replace race=999 if race==.
(0 real changes made)

->  replace edgroup=999 if edgroup==.
(0 real changes made)

. for var conlegis confinan conbus conjudge conpress: ///
>         gen X_high=(X==3) if X<. \ ///
>         qui probit X_high ur i.stid i.year i.age i.sex i.race i.edgroup [pw=wt], clus
> ter(st) nolog \ ///
>         margins, dydx(ur)

->  gen conlegis_high=(conlegis==3) if conlegis<.
(18071 missing values generated)

->  qui probit conlegis_high ur i.stid i.year i.age i.sex i.race i.edgroup [pw=wt], clu
> ster(st) nolog

->  margins, dydx(ur)

Average marginal effects                          Number of obs   =      30437
Model VCE    : Robust

Expression   : Pr(conlegis_high), predict()
dy/dx w.r.t. : ur

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |  -.0887368   .2415253    -0.37   0.713    -.5621177    .3846441
------------------------------------------------------------------------------

->  gen confinan_high=(confinan==3) if confinan<.
(20679 missing values generated)

->  qui probit confinan_high ur i.stid i.year i.age i.sex i.race i.edgroup [pw=wt], clu
> ster(st) nolog

->  margins, dydx(ur)

Average marginal effects                          Number of obs   =      30765
Model VCE    : Robust

Expression   : Pr(confinan_high), predict()
dy/dx w.r.t. : ur

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |  -1.101846   .2190377    -5.03   0.000    -1.531152   -.6725396
------------------------------------------------------------------------------

->  gen conbus_high=(conbus==3) if conbus<.
(18510 missing values generated)

->  qui probit conbus_high ur i.stid i.year i.age i.sex i.race i.edgroup [pw=wt], clust
> er(st) nolog

->  margins, dydx(ur)

Average marginal effects                          Number of obs   =      30155
Model VCE    : Robust

Expression   : Pr(conbus_high), predict()
dy/dx w.r.t. : ur

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |  -.5591424   .2903526    -1.93   0.054    -1.128223    .0099382
------------------------------------------------------------------------------

->  gen conjudge_high=(conjudge==3) if conjudge<.
(18571 missing values generated)

->  qui probit conjudge_high ur i.stid i.year i.age i.sex i.race i.edgroup [pw=wt], clu
> ster(st) nolog

->  margins, dydx(ur)

Average marginal effects                          Number of obs   =      30042
Model VCE    : Robust

Expression   : Pr(conjudge_high), predict()
dy/dx w.r.t. : ur

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |    .118032   .3416981     0.35   0.730    -.5516839     .787748
------------------------------------------------------------------------------

->  gen conpress_high=(conpress==3) if conpress<.
(17769 missing values generated)

->  qui probit conpress_high ur i.stid i.year i.age i.sex i.race i.edgroup [pw=wt], clu
> ster(st) nolog

->  margins, dydx(ur)

Average marginal effects                          Number of obs   =      30737
Model VCE    : Robust

Expression   : Pr(conpress_high), predict()
dy/dx w.r.t. : ur

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |  -.0371607   .2512023    -0.15   0.882    -.5295082    .4551867
------------------------------------------------------------------------------

. 
. * Table 3, Panel C
. use "$project\Gallup honesty\Honesty_gallup", clear
(Please tell me how you would rate the honesty and ethical standards of people in)

. for X in var age sex race3 ed: replace X=999 if X==.

->  replace age=999 if age==.
(312 real changes made)

->  replace sex=999 if sex==.
(0 real changes made)

->  replace race3=999 if race3==.
(111 real changes made)

->  replace educ=999 if educ==.
educ was byte now int
(98 real changes made)

. for var congressmen bankers busexecs lawyers journalists: ///
>         gen X_high=(X>=4) if X<. \ ///
>         qui probit X_high ur i.stid i.year i.age i.sex i.race3 i.educ [pw=wt], cluste
> r(st) nolog \ ///
>         margins, dydx(ur)

->  gen congressmen_high=(congressmen>=4) if congressmen<.
(3648 missing values generated)

->  qui probit congressmen_high ur i.stid i.year i.age i.sex i.race3 i.educ [pw=wt], cl
> uster(st) nolog

->  margins, dydx(ur)

Average marginal effects                          Number of obs   =      28026
Model VCE    : Robust

Expression   : Pr(congressmen_high), predict()
dy/dx w.r.t. : ur

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |  -.4146907   .2053173    -2.02   0.043    -.8171052   -.0122761
------------------------------------------------------------------------------

->  gen bankers_high=(bankers>=4) if bankers<.
(5100 missing values generated)

->  qui probit bankers_high ur i.stid i.year i.age i.sex i.race3 i.educ [pw=wt], cluste
> r(st) nolog

->  margins, dydx(ur)

Average marginal effects                          Number of obs   =      26596
Model VCE    : Robust

Expression   : Pr(bankers_high), predict()
dy/dx w.r.t. : ur

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |   -.158725   .3469204    -0.46   0.647    -.8386765    .5212265
------------------------------------------------------------------------------

->  gen busexecs_high=(busexecs>=4) if busexecs<.
(2560 missing values generated)

->  qui probit busexecs_high ur i.stid i.year i.age i.sex i.race3 i.educ [pw=wt], clust
> er(st) nolog

->  margins, dydx(ur)

Average marginal effects                          Number of obs   =      29096
Model VCE    : Robust

Expression   : Pr(busexecs_high), predict()
dy/dx w.r.t. : ur

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |  -.4397422   .3607124    -1.22   0.223    -1.146726    .2672411
------------------------------------------------------------------------------

->  gen lawyers_high=(lawyers>=4) if lawyers<.
(3705 missing values generated)

->  qui probit lawyers_high ur i.stid i.year i.age i.sex i.race3 i.educ [pw=wt], cluste
> r(st) nolog

->  margins, dydx(ur)

Average marginal effects                          Number of obs   =      27972
Model VCE    : Robust

Expression   : Pr(lawyers_high), predict()
dy/dx w.r.t. : ur

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |   .3912027   .3282872     1.19   0.233    -.2522284    1.034634
------------------------------------------------------------------------------

->  gen journalists_high=(journalists>=4) if journalists<.
(6880 missing values generated)

->  qui probit journalists_high ur i.stid i.year i.age i.sex i.race3 i.educ [pw=wt], cl
> uster(st) nolog

->  margins, dydx(ur)

Average marginal effects                          Number of obs   =      24833
Model VCE    : Robust

Expression   : Pr(journalists_high), predict()
dy/dx w.r.t. : ur

------------------------------------------------------------------------------
             |            Delta-method
             |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
          ur |   .9259218   .2910206     3.18   0.001     .3555319    1.496312
------------------------------------------------------------------------------

.         
. log close
      name:  <unnamed>
       log:  C:\Users\jwolfers\Documents\Justin@Wharton\Trust in Public Institutions\AE
> R Archive\Log files.txt
  log type:  text
 closed on:   6 Apr 2011, 11:29:01
---------------------------------------------------------------------------------------
