search for: jerosenb

Displaying 14 results from an estimated 14 matches for "jerosenb".

Did you mean: jeroen
2004 Nov 05
3
Resources for optimizing code
...;-matrix(nrow=n, ncol=ncol(DATAFRAME)) j<-1 for(i in 1:length(data)) { if (asst[i]==1) { newdata[j,]<-DATAFRAME[i,] j<-j+1 } } newdata.f<-as.data.frame(newdata) names(newdata.f)<-names(DATAFRAME) return(newdata.f) } -- Janet Rosenbaum jerosenb at fas.harvard.edu PhD Candidate in Health Policy, Harvard GSAS Harvard Injury Control Research Center, Harvard School of Public Health
2003 Mar 14
2
numbers and decimal points
...nience to require that all data use a period as decimal point? (i.e., 3.14159 rather than 3,14159). We're trying to make our program as foolproof as possible, and would prefer not to give users a chance to have commas as both decimal points and field delimiters. Thanks, Janet Rosenbaum jerosenb at fas.harvard.edu Center for Basic Research in the Social Sciences, Harvard University
2003 Mar 11
0
different file types
...imilar commands. > > Also, is there a way to make associative arrays? > It would be nice to be able to get the format from input and then have > command<-array[format] > > Otherwise, I guess I'll just do cascading if's. > > Thanks, > > Janet Rosenbaum jerosenb at fas.harvard.edu > Center for Basic Research in the Social Sciences, Harvard University > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help __________________________________________...
2003 Apr 01
1
Windows GUI palimpsest
...indow had been. Also, when it computes something, the window will often decide to move itself over for no apparent reason, so it moves one button at a time, very slowly --- this doesn't happen under linux or Mac. Is there any way to stop this from happening? Thanks, Janet Rosenbaum jerosenb at fas.harvard.edu Center for Basic Research in the Social Sciences, Harvard University
2005 May 17
1
install.packages parameters
Hello. R is having some trouble installing a package because it passed arguments to gcc which were non-existent directories and files. It also didn't find g77, although it's in a directory in my $PATH; I tricked it by making a sym link in /usr/bin. What file does R get these parameters from? I've looked for the parameters in the package source, the install.packages help
2004 Mar 09
5
Adding data.frames together
I have a series of data frames that are identical structurally, i.e. - made with the same code, but I need to add them together so that they become one, longer, data frame, i.e. - each of the slot vectors are increased in length by the length of the added data frame vectors. So if I have df1 with a slot A so that length(df1$A) = 100 and I have df2 with a slot A so that length(df2$A)=200 then I
2003 Mar 10
4
terms.formula
I'm in the very initial stage of expanding the formula processing in my quantile regression function rq() to handle additive nonparametric components, say qss(x), or qss(x,z). I need some advice about strategy for formula processing. My initial foray was to use: terms(formula,specials="qss") and then modify the components of the resulting terms.object. But in changing formula
2003 Mar 06
1
tkexit
Sorry, my question is if exists a command tkexit in R, i need a command how exit of tcl for close an aplication. How to use him. Thank
2004 May 04
3
increasing memory
...ms to indicate that R ought to manage its memory itself. I know I have enough memory since stata handles these files perfectly well. I have a mac running OS 10.3 and am running RAqua 1.8.1. Is there anything I can do to make it deal with these files successfully? Janet -- Janet Rosenbaum jerosenb at fas.harvard.edu Harvard Injury Control Research Center, Harvard School of Public Health
2003 Apr 08
2
quotes within quotes
How does one put quotes within quotes, if it's possible? I've tried replacing one set of the quotes by single quotes. If it's not possible, is there any way to do the following? > cmd <- "read.dta" > opt <- "convert.factors=FALSE" > data.file <- " file="/full/path/name.dta" " > eval(call(cmd,data.file,opt)) Prior to
2007 Mar 23
2
Simple bar plot question
Dear all, This is a simple question, but as far as I can tell, it's not in MASS or the R help archives or par man pages. Are there any cex.* parameters which allow me to set the text size of the labels for the axes? I want to plot the following table in which the "Definitely not", etc. are large. cex.lab lets me change the size of the xlab text, but I don't care
2003 Feb 27
1
R problems
Hi. I have an ibook G3/800 running 10.2.4, with Mac's X11. Up until a few days ago, R was working fine but recently it stopped working. The error I get is: dyld: /usr/local/lib/R/bin/R.bin version mismatch for library: /usr/lib/libncurses.5.dylib (compatibility version of user: 6.0.0 greater than library's version: 5.0.0) Trace/BPT trap which seems to imply that it wants a higher
2003 Apr 08
2
use of variable labels
The R documentation for some of the foreign package's functions says that the set of variable labels becomes attributes in the resulting data frame. Thus, e.g., 5="strongly agree", 4="agree", etc. I'm happy that the labels are being passed, but unfortunately, when R summarizes the data, it will list it only as categories, and doesn't deal with the
2006 Aug 21
2
polychor error
Hi. Does anyone know whether the following error is a result of a bug or a feature? I can eliminate the error by making ML=F, but I would like to see the values of the cut-points and their variance. tmp.vec<-c(0, 0, 0 , 0 ,0 , 1, 0, 2, 0 , 0, 5 ,5 ,3 ,1, 0 , 1, 5, 10, 27, 20, 9, 0, 1, 1, 12, 29, 57, 34, 0, 0, 1, 2, 11, 31, 32) tmp.mat<-matrix(tmp.vec, nrow=7)