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?
When I named a specific mirror it worked. Thanks for the help.
2006/5/1, Brian Quinif [EMAIL PROTECTED]:
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
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)))
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
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brian Quinif
Sent: Thursday, April 27, 2006 7:34 PM
To: r-help@stat.math.ethz.ch
Subject: [R] function for linear regression with White std. errors
I would like to know if there is a function
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
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 of matches as
above, but that's just a guess...
These are related but separate issues. The
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
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
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
I just found that out thanks to Frank Harrell. Thanks, though.
2006/4/12, Prof Brian Ripley [EMAIL PROTECTED]:
On Wed, 12 Apr 2006, Brian Quinif wrote:
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
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
Thanks. The c(...) is what i was missing.
BQ
2006/4/12, David Scott [EMAIL PROTECTED]:
On Wed, 12 Apr 2006, Brian Quinif wrote:
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
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
I am using using the latex() function in the Hmisc package. I want to
create some table captions that are relatively long and need to take
up more than one line.
When I do this, the LaTeX output has the majority of the text on one
line with the remainder spilling over into the second line as if
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
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
I am having some problems using the latex() function in the Hmisc
package. When I turned on the ctable option in latex(), the LaTeX
code produced by latex()somehow conflicts with the style back my
unversity uses for theses. Has anyone on the list had a similar
conflict and been able to fix it.
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
Hi Ken,
Thanks for the help, but I should have mentioned that I want to do
this within a loop. Perhaps it would be better for me to explain my
exact situation.
I am running two loops so that I can calculate estimates for years
1,2,3,4 and a categorical GPA variable that takes on three values
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
holtman [EMAIL PROTECTED]:
use a 'list';
x - list()
for (i in 1:3)
for (j in 0:2) {
.your calculations.
x[[as.character(i)]][[as.character(j)]] - yourResults
}
On 4/7/06, Brian Quinif [EMAIL PROTECTED] wrote:
Thanks to the help of many on this list, I am now an R user
[, , i, j] - matrix(c(i1[i], i2[j], i1[i] + i2[j], i1[i]*i2[j]),
nrow=4)
}
}
dimnames(x) - list(NULL, NULL, i1, i2)
x[, , 2, 11, drop=FALSE]
x[, , 3, 11, drop=FALSE]
(Notice you need the drop=FALSE to keep it a matrix, because it only has one
column.)
Andy
From: Brian Quinif
I
can do something like:
x - array('', c(4, 1, 6, 2, 3))
for (m in 1:6) {
for (i in 1:2) {
for (j in 1:3) {
compute `Estimates'
x[, , m, i, j] - Estimates
}
}
}
You still need to tack on the rownames and colnames to x.
Andy
From: Brian Quinif
I have recently become familiar with the latex() function thanks to
the help of many people on this list. However, now I need to figure
out how to make the right dataframe for the tables I want to make.
What I need to do is make tables with the std. errors beneath the
estimates in parentheses
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
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
= .)
On 4/7/06, Brian Quinif [EMAIL PROTECTED] wrote:
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
I am using R for Unix and want to make some LaTeX tables. I have
already played around in R for Windows and have succeeded in making
tables that I want using the following code:
latex(Estimates, file='out.tex', rowlabel='',digits=3)
However, when I use this code in Unix, I can never find the
', rowlabel='',digits=3)
#I use the next line of code for running in Unix--I get an error
message saying the file/directory does not exist
#latex(Estimates, file='/home/b/bquinif/bq/9095/out.tex', rowlabel='',digits=3)
05 Apr 2006 22:29:54 +0200, Peter Dalgaard [EMAIL PROTECTED]:
Brian Quinif [EMAIL
I seem to have straightened out the problem I was having by typing
ls -ald /home/b/bquinif/bq/9095/
before running R.
Thanks again to the ever helpful people on this list.
BQ
before you start
05 Apr 2006 23:11:12 +0200, Peter Dalgaard [EMAIL PROTECTED]:
Brian Quinif [EMAIL PROTECTED] writes
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)
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
33 matches
Mail list logo