search for: quinif

Displaying 19 results from an estimated 19 matches for "quinif".

2006 Apr 07
4
saving estimates from a for loop for later use
Thanks to the help of many on this list, I am now an R user and have been able to write some functioning code to do matching estimation. I have two for loops (i in 1:3, and j in 0:2). Within the loops, I had been creating matrices of relevant estimation coefficents in order to make lots of LaTeX tables. Well, now I want to be able to combine the results of many different estimations from within
2006 Apr 02
1
New R user looking from help
Dear R users, I am trying to become a convert to R (from Stata), and I'm having some growing pains. Is there anyone would be willing to answer a few basic questions I have? Of course I am using the relevant help guides... Thanks, Brian Quinif ps. If there is anyone at UGA on this list, I'd love to hear from someone local.
2006 Apr 14
2
another very simple loop question
I have a dataset with 4 years of students, and normally I want to estimate things using each individual year, so I have a for loop as follows for (i in 1:4){} However, the only way I know how to calculate estimates using all four years of data is to put the estimations outside of the loop. Is there anyway to make a for loop that uses all four years at once, then uses each individual year?
2006 Apr 12
2
extremely simple "for loop" question
I am sorry to ask such a simple question, but my knowledge of programming language is extremely limited, and I couldn't find the answer in any of the normal resources. I want to do a for loop in which m takes on the values 1, 5, 10, 15, 20. What is the syntax for doing that? I had been doing a loop for m in 1:20, but I only want those values above. Thanks, Brian
2006 May 01
2
problem installing Econometrics view
When I try to install hte Econometrics view I get the following error: CRAN task view Econometrics not available in: install.views("Econometrics") I have already install the ctv package and loaded it before trying to install the above... Any ideas as to what's going on?
2006 Apr 11
3
problems with rounding in output
Perhaps someone will have a solution to my more general problem, but here is the specific one: I used the round() function to round some estimates to 3 decimal places. I then sent put the rounded estimates in a matrix and used latex() to make a LaTeX table from them. However, in my table, there are estimtes which only have 2 decimal places. I assume that the third decimal place in these numbers
2006 Apr 07
3
simple if statement
I am ashamed to be asking this question, but I couldn't find the solution anywhere. Searching for "if" and "R" is not very productive... I cannot get a simple if statement to work. I have data on college students. I want to make a string variable that has the names of the years. That is, when the year variable i is equal to 1, I want to have a variable called years
2006 Apr 07
3
strange matrix behaviour: is there a matrix with one row?
Consider this: > y <- matrix(1:8, ncol=2) > is.matrix(y[-c(1,2),]) [1] TRUE > is.matrix(y[-c(1,2,3),]) [1] FALSE > is.matrix(y[-c(1,2,3,4),]) [1] TRUE It seems like an inconsistent behaviour: - with 2 or more rows we have a matrix - with 1 row we do not have a matrix and - with 0 rows we have a matrix again I just stumbled on this behaviour, because I had a problem with my
2006 Apr 07
1
Referencing variables in a dataframe.
I have a question about how to reference variables in a dataframe. Normally, after I have read in some Stata data using the following command all <- read.dta('all.dta') Whenever I want to use the variable "sat.vr1" in the "all" data frame, I do so using all$sat.vr1 However, I'd like to be able to use the sat.vr1 variable without the "all$" (as well
2006 Apr 07
1
creating files using for loop
I would like to use a for loop to run estimations on 12 different subsets of a dataset. I have the basics of my script figured out, but I am having problems getting the loop to name some files as I would like. Here is a sketch of my code: sub.dataset <- c(101, 201) #Assume I only have two subsets which I call 101 and 201 for (i in 1:length(sub.dataset)) { #Estimation commands
2006 Apr 12
1
long captions -- new issue
I have found out that the way to have a break apart a long caption in the way that one desires is to have a short caption for use in the list of tables that is not broken with \\ I can manually adjust the LaTeX output from the Hmisc function latex() to get the tables how I want them. However, I would like to automate the creation of these tables. Inside the latex() function, I tried this:
2006 Apr 16
1
dcolumn
Does anyone out there use dcolumn=TRUE in the latex() function in the Hmisc library? I would like to line up the data in a latex table I'm making using latex(), but I'm having some issues with this feature. Since there is no description of it in the help, I thought that it might be incomplete or something like that. On a related note, if anyone knows how to get the end result I want
2006 Apr 16
1
Var.calc in Match()
Does anyone else find that using the Var.calc option (for heteroscedasticity consistent std. errors) in Match() (from the Matching library) slows down computation of the matching estimator by a lot? I don't really understand why when I use this option it slows down so much, but for me it does significantly. I want to use the heteroscedasticity consistent std. errors in my project, but as long
2006 Apr 28
1
function for linear regression with White std. errors
I would like to know if there is a function that will run a linear regression and report the White (heteroscedasticity consistent) std. errors. I've found the hccm() function in the car library, but that just gives me the White covariance matrix. I'd like to be able to see the White std. errors without having to do much more work, if possible. Thanks, Brian
2006 Apr 28
1
displaying numbers not in scientific notation
Sorry for asking such a simple question, but I couldn't find the answer through a search... How can I get R to show me the values of estimates *not* in scientific notation? When I use summary() after using lm() I am getting numbers like 4.485107e-01, when what I want to see is 0.4485.... Thanks, Brian
2006 May 01
1
code for latex function in Hmisc
Forgive my ignorance, but how I can take a look at the code for the latex function in the Hmisc library? I tried just typing "latex" but all I got was this: > latex function (object, title = first.word(deparse(substitute(object))), ...) { if (!length(oldClass(object))) oldClass(object) <- data.class(object) UseMethod("latex") } What should I do?
2006 Apr 04
1
generating LaTeX tables from Match output
Dear R users, I am using the Match function to generate nearest neighbor matching estimators. On that front I am ok, but where I am having problems is getting my output into nice LaTeX tables. Here is some basic code imitating the estimation I'm doing. No problem there. library(Matching) #make up some data X1 <- matrix(rnorm(1000*5), ncol=5) Y1 <- as.vector(rnorm(1000)) Tr1 <-
2006 Apr 05
2
using latex() in R for Unix
..., when I use this code in Unix, I can never find the file "out.tex". I assumed that R would send the file to whatever directory I was working in, but that does not seem to be the case. So, I tried specifiying the exact location where I want the file: latex(Estimates, file='/home/b/bquinif/bq/9095/out.tex', rowlabel='',digits=3) When I do that, I get an error message sayin that the file/directory does not exist. I have written lots of files from Stata to locations specified like above, so I don't understand what's going on. Can anyone help me straighten this ou...
2006 Apr 13
1
number of matches when using Match()
To anyone who uses the Match() function in the Matching library... How do you go about deciding how many matches you will use? With my data, my standard errors generally get smaller if I use more matches. Speaking of standard errors, when correcting for heteroscedasticity, how many matches do you use (this is the Var.cal option). It seems to me that it might make sense to use the same number