search for: metcode

Displaying 7 results from an estimated 7 matches for "metcode".

Did you mean: retcode
2002 Apr 09
1
write.table
...528000 ,0.026 , 1903000 , -0.018 ,0.047 , 0.052 1,AA2008 ,0.011 , 900000 ,0.036 , 2676000 , -0.022 ,0.041 , 0.046 1,AA2009 ,0.011 , 914000 ,0.025 , 1898000 , -0.012 ,0.070 , 0.073 The problem is with the "AA2002", "AA2003" - as can be seen below - the R object has metcode and yr as seperate variables. > d[1:5,] scenario metcode yr ginv cons gocc abs dvac gmre gmer 1 1 AA 2002 0.004 288000 0.004 263000 0.000 -0.015 -0.014 2 1 AA 2003 0.000 0 0.007 493000 -0.006 -0.017 -0.015 3 1 AA 2004 0.000 0 0....
2002 Mar 18
1
line breaks
...urse it is me who is confused). I tried ';' to explictly break the line, but no dice. An example (partial function). inrange _ function(v,Y,s,z,mlv,met){ lower _ mean(v[data$yr==Y])-(var(v[data$yr==Y])^.5) upper _ mean(v[data$yr==Y])+(var(v[data$yr==Y])^.5) ML _ mlv[ML$yr==Y & ML$metcode==met] diff _ 0 if (ML<lower) {diff <- lower-ML; # tried with and without ; v <<- v-diff} } gives: > inrange _ function(v,Y,s,z,mlv,met){ + lower _ mean(v[data$yr==Y])-(var(v[data$yr==Y])^.5) + upper _ mean(v[data$yr==Y])+(var(v[data$yr==Y])^.5) + ML _ mlv[ML$yr==Y & ML$...
2002 Apr 10
0
foreign/write.table
...528000 ,0.026 , 1903000 , -0.018 ,0.047 , 0.052 1,AA2008 ,0.011 , 900000 ,0.036 , 2676000 , -0.022 ,0.041 , 0.046 1,AA2009 ,0.011 , 914000 ,0.025 , 1898000 , -0.012 ,0.070 , 0.073 The problem is with the "AA2002", "AA2003" - as can be seen below - the R object has metcode and yr as seperate variables. > d[1:5,] scenario metcode yr ginv cons gocc abs dvac gmre gmer 1 1 AA 2002 0.004 288000 0.004 263000 0.000 -0.015 -0.014 2 1 AA 2003 0.000 0 0.007 493000 -0.006 -0.017 -0.015 3 1 AA 2004 0.000 0 0....
2002 May 16
1
foreign library - negative integers??
I am having a problem with the foreign library correctly reading some integer data. Specifically, d _ read.dta('aptaa.dta') > d[1:5,] scenario metcode yr ginv cons gocc abs dvac gmre gmer 1 1 AA 2002 0.007 1377 -0.071 51710 0.071 -0.011 -0.127 2 1 AA 2003 0.000 0 -0.016 62568 0.014 -0.043 -0.538 3 1 AA 2004 0.000 0 -0.002 65122 0.002 -0.090 -0.338 4 1 AA 2005 0.000 0 0.000...
2002 Mar 18
3
function design
I have a, no doubt, simple question. I wish to write a function such that a <- 9 b <- 10 changer _ function(x,y) { if (y>x){ x <<- Y+1}} Of course there are easier ways to accomplish the task above, but I am more interested in how to have the "x <<- Y+1" part of the function to change x in place for purposes of a much larger function. I have been wrestling with
2001 Jul 24
3
Memory/data -last time I promise
...7:53 off10yr6.dta -rw-r--r-- 1 ctaylor econ 14M Jun 27 19:30 off10yr7.dta -rw-r--r-- 1 ctaylor econ 14M Jun 27 21:08 off10yr8.dta -rw-r--r-- 1 ctaylor econ 14M Jun 27 23:02 off10yr9.dt DATA CONTENTS (IN TEXT FORM OF COURSE) head off10yr1.out scenario metcode yr ginv cons gocc abs dvac gmre gmer 1 "AA" 2001 .04 3384000 .047 3641000 -.006 .025 .028 1 "AA" 2002 .042 3657000 .046 3716000 -.004 .034 .035 1 "AA" 2003 .031 2816000 .047 397200...
2001 Jul 24
3
Memory/data -last time I promise
...7:53 off10yr6.dta -rw-r--r-- 1 ctaylor econ 14M Jun 27 19:30 off10yr7.dta -rw-r--r-- 1 ctaylor econ 14M Jun 27 21:08 off10yr8.dta -rw-r--r-- 1 ctaylor econ 14M Jun 27 23:02 off10yr9.dt DATA CONTENTS (IN TEXT FORM OF COURSE) head off10yr1.out scenario metcode yr ginv cons gocc abs dvac gmre gmer 1 "AA" 2001 .04 3384000 .047 3641000 -.006 .025 .028 1 "AA" 2002 .042 3657000 .046 3716000 -.004 .034 .035 1 "AA" 2003 .031 2816000 .047 397200...