search for: jcress410

Displaying 3 results from an estimated 3 matches for "jcress410".

2010 Sep 08
1
on error execute:
So, i've been writing code in R interfacing with mysql, its been fun and the documentation has been useful, learning quite a bit. the only annoying thing i've been encountering is while coding/debugging, my session gets clogged, especially with sql connections. At the end of the code i dbDisconnect, but when the script is stopped by an error, the session stays open. Usually i'll
2010 Oct 12
1
R optimization and curve()?
I'm trying to figure out how to plot basic utility maximization results with R, Ideally I'd like to plot the value of u through x1,x2 space, so you can graph income / substitution effects easily... also, it'd be nice if I could put a linear budget constraint on the graph here's an example with cobb douglas utility u <- function(x) { x1 <- x[1] x2 <- x[2]
2010 Oct 06
0
multiple record types from a single file efficiently?
The current population survey march supplements contain records on households, families and individuals, each with distinct record types all in the same file. I'm trying to efficiently read these files, the following function reads the data file "indata", the records are described in lists contained in "dd_by_type" and flag_pos gives the character position in the data