Displaying 20 results from an estimated 1000 matches similar to: "another very simple loop question"
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 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 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 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 05
2
using latex() in R for Unix
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 file
"out.tex". I assumed that R would send the file to whatever directory
I
2004 Jan 16
2
Weird problem with trying to change a variable
I have a dataframe called cvar, with two variables (among many others)
called MSA and ACTUP. Both are numeric. This was working fine. Then I
found out that for two MSAs, ACTUP should be 1, not 0.
so I tried
cvar$ACTUP[cvar$MSA == 6840] <- 1
cvar$ACTUP[cvar$MSA == 5360] <- 1
but when I try
table(cvar$MSA, cvar$ACTUP)
the level of ACTUP for those two MSAs has not changed, and is still
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
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
2011 May 05
4
Using functions/loops for repetitive commands
I still need to do some repetitive statistical analysis on some outcomes
from a dataset.
Take the following as an example;
id sex hiv age famsize bmi resprate
1 M Pos 23 2 16 15
2 F Neg 24 5 18 14
3 F Pos 56 14 23 24
4 F Pos 67 3 33 31
5 M Neg 34 2 21 23
I want to know if there are statistically detectable differences in all of
the continuous variables in
2012 Jul 18
4
The best solver for non-smooth functions?
# Hi all,
# consider the following code (please, run it:
# it's fully working and requires just few minutes
# to finish):
require(CreditMetrics)
require(clusterGeneration)
install.packages("Rdonlp2", repos= c("http://R-Forge.R-project.org",
getOption("repos")))
install.packages("Rsolnp2", repos= c("http://R-Forge.R-project.org",
2006 Mar 09
2
Merlin Magix Integration
Hi List,
Merlin Magix hardware v02
I'm trying to get asterisk to act as a voicemail server for a lucent
merlin magix PBX that we purchased used. We have 4 FXO channels between
the two PBXs on a Sangoma A200 card. The 770 dialgroup is working
properly, in that calls to 770 are answered by Asterisk. The magix is
sending mode codes in the format #XX#XXX#, where the 2nd block of digits
2003 Oct 01
3
sas.get problem
When I try
citypro <- sas.get('c:/ndri/cvar/data', member = 'citypro2')
I get the following errors and warnings:
'sas' is not recognized as an internal or external command,
operable program or batch file.
'less' is not recognized as an internal or external command,
operable program or batch file.
Error in sas.get("c:/ndri/cvar/data", member =
2006 Jul 09
3
acts_as_ferret.. what does it actually do?
Okay in this plea for help I''m going to repeat some of what i posted
before but with a larger amount of background info in the hope that i
can get a decent grip on ferret before it wriggles away..
Firstly, what does installing the acts_as_ferret plugin actually do? I
install it and add it to my model and then the index is automatically
generated and a few methods are added to it and
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:
2007 May 08
3
Median
Hello.
I need calculate the median of several column of a data.frame, in a new
column of this data frame, but the median operator only calculate from a
vector.
I have made a functionc that calculate the median but it is very slow.
Are there any method in any package to calculate this?
Best regards.
Jose Sierra.
A B C
-0.01678042
2006 May 31
5
Help with sorting arrays with objects in it
I have to build an array through both activerecord and also through a ferret
index.
I was hoping to find a way of sorting the array as i combine the two so
def advanced_search(search_text, store, format, sortby)
# find items in ferret index
items = Item.find_by_contents(search_text)
# and now find all the items from a certain store or category
items_from_sql = Item.find_by_sql("SELECT *
2002 May 15
1
ploting a linear model
Hi
I have the result of a linear model "lm98" and I want to plot it to
analyse the regression but I'm getting the folowing error message
> lm98<-lm(log(U+1)~Bq+Gi+Lv+Tb+Bq:Gi+Bq:Lv+Bq:Tb+Gi:Lv+Gi:Tb+Lv:Bq)
> plot(lm98)
Error in plot.window(xlim, ylim, log, asp, ...) :
need finite ylim values
In addition: Warning message:
NaNs produced in: sqrt(1 - hii)
The
2005 Sep 07
2
[NU-BQ+CentOS] Special Chars not showing up in browsers
Greetings,
I am in the process of moving several large sites to a Tyan+BQ+CentOS box
(built from the Nuonce ISO) and I see that special characters are not
showing up in the browser properly but do show up in the source "view
source" properly. -- very strange.
Example:
on the web page --> Heizungsbau M?ller
in the source --> Heizungsbau M?ller
When I view this on the existing
2000 Jun 21
3
SAS dataset
Hello,
Is there any way we convert SAS dataset into R dataset?
Kindest Regards,
Peppy Adi-Purnomo
------
Peppy Adi-Purnomo
Energy Market Analyst
Energy Link Ltd
Dunedin - New Zealand
Ph.: +64 3 479 2475
Fax: +64 3 477 8424
Email: s.adi.purnomo at energylink.co.nz
www.EnergyLink.co.nz
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read