Re: [R] Equality of multiple vectors

2012-05-04 Thread Jan van der Laan
or identical(vec1, vec2) identical(vec2, vec3) Jan Petr Savicky savi...@cs.cas.cz schreef: On Fri, May 04, 2012 at 12:53:12AM -0700, aaurouss wrote: Hello, I'm writing a piece of code where I need to compare multiple same length vectors. I've gone through the basic functions like

Re: [R] Can't import this 4GB DATASET

2012-05-04 Thread Jan van der Laan
first 5 lines lines - readLines(con, n=5) # read the rest in blocks of 100.000 lines while (TRUE) { lines - readLines(con, n=1E5) if (length(lines) == 0) break; strangelines - lines[nchar(lines) != 97] writeLines(strangelines, con=out) } close(con) close(out) Jan Quoting iliketurtles

Re: [R] Handling 8GB .txt file in R?

2012-03-25 Thread Jan van der Laan
read.table.ffdf ffdf - read.table.ffdf(file=con) # close connection close(con) HTH Jan On 03/25/2012 06:20 AM, iliketurtles wrote: Thanks to all the suggestions. To the first individual that replied, I can't do any stuff with unix or perl. All I know is R. @KEN: I'm using Windows 7, 64 bit. @Steve: Here's

Re: [R] Reading big files in chunks-ff package

2012-03-25 Thread Jan van der Laan
Your question is not completely clear. read.csv.ffdf automatically reads in the data in chunks. You don´t have to do anything for that. You can specify the size of the chunks using the next.rows option. Jan On 03/24/2012 09:29 PM, Mav wrote: Hello! A question about reading large CSV

Re: [R] Reading big files in chunks-ff package

2012-03-25 Thread Jan van der Laan
have a look at the LaF package. Especially the process_blocks routine which does exactly that. The manual vignette (http://cran.r-project.org/web/packages/LaF/vignettes/LaF-manual.pdf) contains some examples how to do that. Jan Quoting Mav mastorvar...@gmail.com: Thank you Jan My problem

Re: [R] Singleton pattern

2012-03-16 Thread Jan T. Kim
once and then passing it around as necessary, taking care that called functions don't change it, is perhaps good enough. Best regards, Jan On Fri, Mar 16, 2012 at 12:15:27PM -0400, Bryan Hanson wrote: Since no one else has bit, I'll take a stab. I'm an experienced R person, but I've recently

[R] JSS support

2012-03-15 Thread Jan de Leeuw
=== Jan de Leeuw; Distinguished Professor and Chair, UCLA Department of Statistics; Editor: Journal of Multivariate Analysis, Journal of Statistical Software; US mail: 8125 Math Sciences Bldg, Box 951554, Los Angeles, CA 90095-1554 phone (310)-825-9550; fax (310)-206-5658; email: dele

Re: [R] check for data in a data.frame and return correspondent number

2012-03-14 Thread Jan van der Laan
I saw some spaces in some of your strings (I have removed these in the example above). Be aware that the character string appearance ground-n is not equal to appearance ground-n. HTH Jan On 03/14/2012 06:49 PM, mari681 wrote: Dear R-ers, still the newbie. With a question about

Re: [R] Reading in 9.6GB .DAT File - OK with 64-bit R?

2012-03-09 Thread Jan van der Laan
file block by block and filtering it. Jan RHelpPlease rrum...@trghcsolutions.com schreef: Hi Barry, You could do a similar thing in R by opening a text connection to your file and reading one line at a time, writing the modified or selected lines to a new file. Great! I'm aware

Re: [R] Novice Alert!: odfWeave help!

2012-03-08 Thread Jan van der Laan
, hello_out.odt) You can now open hello_out.odt (or whatever you named it) and see the resulting output. HTH, Jan metatarsals sjcast...@gmail.com schreef: Hello world, I'm pretty new to computer code: for example, I consider it a small victory that I (all by myself!) managed to ssh

Re: [R] Week number from a date

2012-02-22 Thread Jan van der Laan
of 2012 starts on 2nd januari; week 1 of 2008 starts on december 29th 2008). http://www.r-bloggers.com/iso-week/ gives a function for that type of week numbers (not tested by me). Jan Patrick Breheny patrick.breh...@uky.edu schreef: To give a little more detail, you can convert your character

[R] Triangular Test

2012-02-20 Thread kende jan
Hello, I would like to perform triangular test for clinical trial with R. can you help me please ? Jan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Problems reading tab-delim files using read.table and read.delim

2012-02-08 Thread Jan van der Laan
not be correct. HTH Jan mails mails00...@gmail.com schreef: Hello, I used read.xlsx to read in Excel files but for large files it turned out to be not very efficient. For that reason I use a programme which writes each sheet in an Excel file into tab-delim txt files. After that I tried using

[R] 2011 Journal of Statistical Software

2012-02-04 Thread Jan de Leeuw
The Journal of Statistical Software published eight volumes in 2011, five of them as special volumes. V38: Special Volume: Competing Risks and Multi-State Models V39: Regular Volume V40: Regular Volume V41: Special Volume: Statistical Software for State Space Methods V42: Special Volume:

Re: [R] Not generating line chart

2012-01-19 Thread Jan van der Laan
Devarayalu, This is FAQ 7.22: http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-do-lattice_002ftrellis-graphics-not-work_003f use print(qplot()) Regards, Jan Sri krishna Devarayalu Balanagu balanagudevaray...@gvkbio.com schreef: Hi All, Can you please help me, why this code

Re: [R] Not generating line chart

2012-01-19 Thread Jan van der Laan
) { Orange2 - Orange1[i == Orange1$REFID, ] pdf(paste('PGA', i, '.pdf', sep='')) print(qplot(TIME1, BASCHGA, data=Orange2, geom= c(line), colour= ACTTRT)) dev.off() } Regards, Jan Sri krishna Devarayalu Balanagu balanagudevaray...@gvkbio.com schreef: Jan Thank you, for your valuable

Re: [R] Not generating line chart

2012-01-19 Thread Jan van der Laan
the pdf(...) and dev.off() outside of the loop. I am not an ggplot2 expert, but you could also have a look at the facets option of qplot. As for your second question: have a look at levels(Orange1$ACTTRT) and ?factor Regards, Jan Sri krishna Devarayalu Balanagu balanagudevaray...@gvkbio.com

[R] compare means

2012-01-12 Thread kende jan
Dear all,   I would compare two means between cases and controls taking into account that I have  matched 1 case to two controls. How i can do it with R. Thanks in advance  Jan [[alternative HTML version deleted]] __ R-help@r-project.org

[R] Web analytics / Customer Analytics book recommendation

2012-01-03 Thread Jan Hornych
Hi, I am curious if you know about any book that is dealing with the web analytics / customer analytics subject and is referencing R as the main statistical tool. I am particularly interested into using R in the real production environment and not only as the analytical tool. Thank you Jan

[R] simple ggplot2 question

2011-12-23 Thread Albert-Jan Roskam
) +   coord_flip() +   geom_abline(intercept=35, slope=0, colour=red) +   facet_grid(location ~ ., scales=free_y) R.version.string # R version 2.10.1 (2009-12-14) Thank you in advance merry xmas!   Cheers!! Albert-Jan ~~ All right

[R] Journal of Statistical Software 2011

2011-12-20 Thread Jan de Leeuw
CSDA 0.226 - 1.281 - 1.089 JCGS 1.505 - 1.258 - 1.206 JSS 1.033 - 2.320 - 2.647 You may be interested our success in Computer Science http://www.sciencewatch.com/inter/jou/2011/11decJofStatSoft/ You can follow and befriend us at http://www.facebook.com/jstatsoft === Jan de Leeuw; Distinguished

[R] maptools/spatial analysis question

2011-12-18 Thread Albert-Jan Roskam
/etopo5.png sessionInfo() R version 2.11.1 (2010-05-31) i686-pc-linux-gnu ...   Thank you in advance! Cheers!! Albert-Jan ~~ All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation

[R] slight documentation error in stats package arima

2011-12-15 Thread Jan Theodore Galkowski
€“7. [2]http://www.r-project.org/doc/Rnews/Rnews_2002-2.pdf Anyone know who I should tell about this? Thanks! - Jan References 1. http://www.r-project.org/doc/Rnews/Rnews_2002-1.pdf 2. http://www.r-project.org/doc/Rnews/Rnews_2002-1.pdf -- Jan Theodore Galkowski Senior Systems Software

Re: [R] Generating input population for microsimulation

2011-12-14 Thread Jan van der Laan
) ddply(units, .(id), generate_unit) HTH, Jan Emma Thomas thomas...@yahoo.com schreef: Hi all, I've been struggling with some code and was wondering if you all could help. I am trying to generate a theoretical population of P people who are housed within X different units. Each unit

Re: [R] Generating input population for microsimulation

2011-12-14 Thread Jan van der Laan
Emma, That is because generate_unit expects a data.frame with one row and columns id and size: generate_unit(data.frame(id=1, size=10)) Jan Emma Thomas thomas...@yahoo.com schreef: Dear Jan, Thanks for your reply. The first solution works well for my needs for now, but I have

Re: [R] R - Linux_SSH

2011-12-14 Thread Jan van der Laan
pages for at and/or batch. You probably need something like atd running. I do not know if current linux distributions have that running by default. You'll get an email when the job is finished. HTH Jan R CMD BATCH [options] my_script.R [outfile] Chris Mcowen chrismco...@gmail.com

[R] CART with rpart

2011-12-02 Thread kende jan
dear all, i want to keep in my data file the results of  terminal nodes (groups) after CART analysis for performing other statisticals analysis by this groups. can you help me please? thanks. jan. [[alternative HTML version deleted

Re: [R] Read TXT file with variable separation

2011-11-29 Thread Jan van der Laan
in the first 2 columns of your file (the first 2 characters of every line), the second field in the next five columns, etc. Regards, Jan Citeren Raphael Saldanha saldanha.plan...@gmail.com: Hi! I have to import some TXT files into R, but the separation between the columns are made with different

[R] Survival curves for case control and control

2011-11-21 Thread kende jan
Hi, I want to perform Survival curves for case and control subjects in the propensity score-matched cohort  that accounted for the clustering of matched pairs. How I can do it with R. Thanks for your help, Jan [[alternative HTML version deleted

Re: [R] RV: Reporting a conflict between ADMB and Rtools on Windows systems

2011-11-17 Thread Jan van der Laan
cmd /K PATH c:\Rtools\bin;c:\Rtools\MinGW\bin;c:\Rtools\MinGW64\bin;C:\Program Files (x86)\MiKTeX 2.9\miktex\bin (I haven't tried this so it might need some tinkering to get it to actually work) HTH Jan On 17-11-2011 9:54, Rubén Roa wrote: De: Rubén Roa Enviado el: jueves, 17 de

Re: [R] hierachical code system

2011-11-17 Thread Albert-Jan Roskam
) #mtrace(getTotals) df - getDepth(df) for( depth in max(df$diepte):2 ) {     if (depth == max(df$diepte)) {     x - getTotals(df, depth)     } else {     x - getTotals(x, depth)     }     } Cheers!! Albert-Jan ~~ All

[R] hierachical code system

2011-11-16 Thread Albert-Jan Roskam
.01.02.03 6077.089518 19 STAT.01.02.03.01  NA 20 STAT.01.02.03.02 1427.180073 21 STAT.01.02.03.03 455.9387993 22 STAT.01.02.03.04  859.766603 23 STAT.01.02.03.05 1002.983331 24   STAT.01.03 2225.328211 Thank you in advance! Cheers!! Albert-Jan

Re: [R] Reading a specific column of a csv file in a loop

2011-11-15 Thread Jan van der Laan
doesn't read headers) Jan On 11/08/2011 11:04 AM, Sergio René Araujo Enciso wrote: Dear all: I have two larges files with 2000 columns. For each file I am performing a loop to extract the ith element of each file and create a data frame with both ith elements in order to perform further

[R] [R-pkgs] LaF 0.3: fast access to large ASCII files

2011-11-14 Thread Jan van der Laan
The LaF package provides methods for fast access to large ASCII files. Currently the following file formats are supported: * comma separated format (csv) and other separated formats and * fixed width format. It is assumed that the files are too large to fit into memory, although the package

[R] JSS Special Volumes for 2011

2011-11-14 Thread Jan de Leeuw
://www.jstatsoft.org/v41 Putter, Guest Editor Volume 38: Competing Risks and Multi-State Models http://www.jstatsoft.org/v38 Additional regular volumes, of course, at http://www.jstatsoft.org. === Jan de Leeuw; Distinguished Professor and Chair, UCLA Department of Statistics; Editor: Journal of Multivariate

[R] overloading + operator for chars

2011-11-02 Thread Albert-Jan Roskam
= character, e2 = character),  :   the method for function + and signature e1=character, e2=character is sealed and cannot be re-defined Cheers!! Albert-Jan ~~ All right, but apart from the sanitation, the medicine, education, wine

Re: [R] Chi-Square test and survey results

2011-10-12 Thread Jan van der Laan
George, Perhaps the site of the RISQ project (Representativity indicators for Survey Quality) might be of use: http://www.risq-project.eu/ . They also provide R-code to calculate their indicators. HTH, Jan Quoting ghe...@mathnmaps.com: An organization has asked me to comment

Re: [R] Applying function to only numeric variable (plyr package?)

2011-10-12 Thread Jan van der Laan
(plyr) pct.colwise - colwise(pct) df[, cols] - pct.colwise(df[,colwise]) HTH, Jan Quoting michael.laviole...@dhhs.state.nh.us: My data frame consists of character variables, factors, and proportions, something like c1 - c(A, B, C, C) c2 - factor(c(1, 1, 2, 2), labels = c(Y,N)) x - c(0.5234

Re: [R] Problem with .C

2011-10-06 Thread Jan van der Laan
) library(inline) test - cxxfunction(signature(x = numeric ) , ' Rcpp::NumericVector v(x); Rcpp::NumericVector result(v.length()); for (int i = 0; i v.length(); ++i) { result[i] = v[i] + i; } return(result); ', plugin = Rcpp ) HTH, Jan Quoting Grigory

Re: [R] Problem with .C

2011-10-06 Thread Jan van der Laan
be frustrating when windows locks the dll. 2. Inline performs typechecking and casts variables to the right type. You can now type test(1:10,10) without needing as.numeric or as.integer. Reducing the amount of r code and the probabiliry of screwing things up by passing the wrong type. Jan Uwe

Re: [R] help with regexp

2011-10-05 Thread Albert-Jan Roskam
Hello!   library(gsubfn) test - c('filename_1_def.pdf', 'filename_2_abc.pdf') gsubfn((.+_)([a-z]+)(\\.pdf), \\2, test) Cheers!! Albert-Jan ~~ All right, but apart from the sanitation, the medicine, education, wine, public

Re: [R] optimize R code: replace for loop

2011-10-05 Thread Albert-Jan Roskam
Hello,   I'd do: ave(testvec, FUN=cumsum)+1 But in R everything can be done in a trillion different ways. ;-) Cheers!! Albert-Jan ~~ All right, but apart from the sanitation, the medicine, education, wine, public order

[R] plot: how to fix the ratio of the plot box?

2011-10-02 Thread Hofert Jan Marius
Dear all, this should be trivial, but I couldn't figure out how to solve it... I would like to have a plot with fixed aspect ratio of 1. Whenever I resize the Quartz window, the axes are extended so that the plot fills the whole window. However, if you have different extensions for the

Re: [R] plot: how to fix the ratio of the plot box?

2011-10-02 Thread Hofert Jan Marius
ahh, perfect, thanks. Cheers, Marius On 2011-10-02, at 13:08 , Jim Lemon wrote: On 10/02/2011 07:20 PM, Hofert Jan Marius wrote: Dear all, this should be trivial, but I couldn't figure out how to solve it... I would like to have a plot with fixed aspect ratio of 1. Whenever I resize

[R] last observation carried forward +1

2011-09-30 Thread Jan Wijffels
their vectorized solution. thanks, Jan -- groeten/kind regards, Jan Jan Wijffels Statistical Data Miner www.bnosac.be | +32 486 611708 [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Data import

2011-09-26 Thread Jan van der Laan
You can with the routines in the memisc library. You can open a file using spss.system.file and then import a subset using subset. Look in the help pages of spss.system.file for examples. HTH Jan On 09/25/2011 11:56 PM, sassorauk wrote: Is it possible to import only certain variables from

Re: [R] R help on write.csv

2011-09-22 Thread Jan van der Laan
-io:ms_windows . I have no experience in this. Regards, Jan PS I am sorry for my previous triple post. I had a little fight with my webmail client. On 09/22/2011 06:14 AM, Ashish Kumar wrote: IS there a way we can append row wise, so that it all stacks up horizontally, the way you do

Re: [R] R help on write.csv

2011-09-21 Thread Jan van der Laan
=TRUE) close(con) Using a file connection is probably also more efficient when doing a large number of appends. Jan Quoting R. Michael Weylandt michael.weyla...@gmail.com: Touche -- perhaps we could make one though? write.csv.append - function(..., append = TRUE) { Call - match.call

Re: [R] R help on write.csv

2011-09-21 Thread Jan van der Laan
) close(con) Using a file connection is probably also more efficient when doing a large number of appends. Jan Quoting R. Michael Weylandt michael.weyla...@gmail.com: Touche -- perhaps we could make one though? write.csv.append - function(..., append = TRUE) { Call - match.call

Re: [R] R help on write.csv

2011-09-21 Thread Jan van der Laan
) close(con) Using a file connection is probably also more efficient when doing a large number of appends. Jan Quoting R. Michael Weylandt michael.weyla...@gmail.com: Touche -- perhaps we could make one though? write.csv.append - function(..., append = TRUE) { Call - match.call

[R] Possible or not possible: serif axis labels with plotmath [but everything else sans serif]?

2011-09-19 Thread Hofert Jan Marius
Dear expeRts, I it possible to have serif labels in the following plot? x - 1:10 y - x plot(x, y, type=b, xlab=expression(x[1]), ylab=expression(x[2])) I know that one can use pdf(, family=serif), but then also the axis tick marks are printed in serif font. Apart from the fact that it may not

Re: [R] Possible or not possible: serif axis labels with plotmath [but everything else sans serif]?

2011-09-19 Thread Hofert Jan Marius
, at 14:38 , Eik Vettorazzi wrote: Hi Jan Marius, using the tikzDevice-package, nearly everything is possible (at least, all what can be done in LaTeX). cheers Am 19.09.2011 11:58, schrieb Hofert Jan Marius: Dear expeRts, I it possible to have serif labels in the following plot? x - 1

Re: [R] Where to put tryCatch or similar in a very big for loop

2011-09-16 Thread Jan van der Laan
=TRUE) } Regards, Jan Quoting Bonnett, Laura l.j.bonn...@liverpool.ac.uk: Hi, The simulation occasionally generates either a rare event meaning that the Cox model is not appropriate or it generates a covariate with most responses being the same which means that the Cox model cannot

Re: [R] odfWeave: Combining multiple output statements in a function

2011-09-16 Thread Jan van der Laan
can tell). Could you perhaps just tell me how I should combine the output of multiple odf* calls inside a function? Thanks again. Jan Quoting Max Kuhn mxk...@gmail.com: formatting.odf, page 7. The results are in formattingOut.odt On Thu, Sep 15, 2011 at 2:44 PM, Jan van der Laan rh

[R] odfWeave: Combining multiple output statements in a function

2011-09-15 Thread Jan van der Laan
(This is the second paragraph)) print(odfItemize(letters[1:5])) } In another document this seemed to work, but in my current document strange odf-output is generated. Regards, Jan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] odfWeave: Combining multiple output statements in a function

2011-09-15 Thread Jan van der Laan
Max, Thank you for your answer. I have had another look at the examples (I already had before mailing the list), but could find the example you mention. Could you perhaps tell me which example I should have a look at? Regards, Jan On 09/15/2011 04:47 PM, Max Kuhn wrote

[R] list of all methods winthin an S4 class

2011-09-06 Thread Albert-Jan Roskam
']   Thanks in advance! Cheers!! Albert-Jan ~~ All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system, and public health, what have the Romans ever done for us

[R] Question about object permanence/marshalling

2011-08-25 Thread Albert-Jan Roskam
and instance do not appear! :-( Cheers!! Albert-Jan ~~ All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system, and public health, what have the Romans ever done

Re: [R] Question about object permanence/marshalling

2011-08-25 Thread Albert-Jan Roskam
Hi Jim,   Thanks for your reply. It seems that save and load can only be used for datasets (as the title in ?load suggests). I'd be very glad if I'm mistaken though!  Cheers!! Albert-Jan ~~ All right, but apart from

[R] How to colour specific edges in a dendrogram

2011-08-01 Thread Jan Teichmann
the dendrogram list of labels to colour their edges I would like to colour the edges between the final leaf node and their parental node. Thank you very much for your help! Jan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

[R] time series question

2011-06-28 Thread Albert-Jan Roskam
that to work either :-( Suggestions for clean code, anyone? Thank you in advance! Cheers!! Albert-Jan ~~ All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system

[R] Standards for delivery of GPL software in CRAN packages

2011-06-27 Thread Galkowski, Jan
? - Jan - Jan, from Sierpinski, a Blackberry, 6072391834, Google Talk to: bayesianlogi...@gmail.com __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

Re: [R] Standards for delivery of GPL software in CRAN packages

2011-06-27 Thread Galkowski, Jan
Sent: Monday, June 27, 2011 10:18 AM To: Galkowski, Jan Cc: r-help@r-project.org Subject: Re: [R] Standards for delivery of GPL software in CRAN packages On Mon, Jun 27, 2011 at 1:24 PM, Galkowski, Jan jgalk...@akamai.com wrote: I wondered if there were standard practices in CRAN for delivery of R

Re: [R] Standards for delivery of GPL software in CRAN packages

2011-06-27 Thread Galkowski, Jan
to understand what this eta partameter was and how to interpret it. As mentioned, not the first package this has been an issue for. Thanks, - Jan - Jan, from Sierpinski, a Blackberry, 6072391834, Google Talk to: bayesianlogi...@gmail.com - Original Message - From

Re: [R] Standards for delivery of GPL software in CRAN packages

2011-06-27 Thread Galkowski, Jan
was correct, merely trying to understand how it worked. When I wasn't satisfied by the documentation in the package, I turned to the source. Again, I meant no offense to anyone. I thank you all for your responses and efforts, and am grateful. - Jan __ R-help

Re: [R] Ranking submodels by AIC (more general question)

2011-06-23 Thread Jan van der Laan
Alexandra, Have a look at add1 and drop1. Regards, Jan On 06/23/2011 07:32 PM, Alexandra Thorn wrote: Here's a more general question following up on the specific question I asked earlier: Can anybody recommend an R command other than mle.aic() (from the wle package) that will give back

Re: [R] Documenting variables, dataframes and files?

2011-06-22 Thread Jan van der Laan
The memisc package also offers functionality for documenting data. Jan On 06/22/2011 04:57 PM, Robert Lundqvist wrote: Every now and then I realize that my attempts to document what all dataframes consist of are unsufficient. So far, I have been writing notes in an external file

Re: [R] omitting columns from a data frame

2011-06-21 Thread Albert-Jan Roskam
But isn't this version of which() typo-proof? x - iris[-which(c(Sepal.Length, SSSepal.Width) %in% names(iris))] Btw, I prefer the following, ie. simply assigning to NULL. Much easier notation. y - iris y$Sepal.Width - y$SSSepal.Width - NULL Cheers!! Albert-Jan

Re: [R] is this a bug?

2011-06-18 Thread Albert-Jan Roskam
a data.frame within a data.frame. Thanks again! Cheers!! Albert-Jan ~~ All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system, and public health, what have

[R] is this a bug?

2011-06-17 Thread Albert-Jan Roskam
31 svn revlanguage 52157 R version.string R version 2.11.1 (2010-05-31) # Thanks! Cheers!! Albert-Jan

Re: [R] Running a GMM Estimation on dynamic Panel Model using plm-Package

2011-06-12 Thread Jan Schulz
Just for the record: I had the same error with my data and finaly gave up and used stata. Kind regards and good luck! Jan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

[R] reshape::cast: invalid 'yinds' argument

2011-05-31 Thread Albert-Jan Roskam
using R2.10.1 and either WinXP or Win2000. Thanks in advance, Albert-Jan ~~ All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system, and public health, what

Re: [R] NaN, Inf to NA

2011-05-27 Thread Albert-Jan Roskam
-project.org] On Behalf Of Marc Schwartz Sent: Thursday, May 26, 2011 2:15 PM To: Albert-Jan Roskam Cc: R Mailing List Subject: Re: [R] NaN, Inf to NA On May 26, 2011, at 3:18 PM, Albert-Jan Roskam wrote: Hi, I want to recode all Inf and NaN values to NA, but I;m surprised to see

[R] NaN, Inf to NA

2011-05-26 Thread Albert-Jan Roskam
! Cheers!! Albert-Jan ~~ All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system, and public health, what have the Romans ever done for us

[R] Gui immediately closes when started from command-line

2011-05-19 Thread Albert-Jan Roskam
combinations of switches, but none of them works.   TIA Cheers!! Albert-Jan ~~ All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system, and public health

Re: [R] Gui immediately closes when started from command-line

2011-05-19 Thread Albert-Jan Roskam
Thanks, we tried it, but it didn't solve the problem. Some more info (mostly strings of ) was shown in the Dos box, but that was all.  Cheers!! Albert-Jan ~~ All right, but apart from the sanitation, the medicine

Re: [R] Unexpected behaviour as.data.frame

2011-05-16 Thread Jan van der Laan
(multiple actually for R.utils). But thanks again for pointing it out. Jan On 05/16/2011 10:42 AM, Santosh Srinivas wrote: Hi Ivan, Take a look dataFrame in R.utils ... is that what you want? from the help file: Examples df- dataFrame(colClasses=c(a=integer, b=double), nrow=10) df[,1

Re: [R] Unexpected behaviour as.data.frame

2011-05-15 Thread Jan van der Laan
Forget I asked. There was a typo in my example (stringsAsFactor instead of stringAsFactors) which explained the difference. My apologies. My second question however still stands: How does on create a data.frame with given column types and given dimensions? Thanks. Regards, Jan Quoting

[R] Unexpected behaviour as.data.frame

2011-05-15 Thread Jan van der Laan
. Is there a more simple/elegant way of creating this data.frame? Regards, Jan PS: I am running R on 64 bit Ubuntu 11.04: sessionInfo() R version 2.12.1 (2010-12-16) Platform: x86_64-pc-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8LC_COLLATE

Re: [R] Unexpected behaviour as.data.frame

2011-05-15 Thread Jan van der Laan
to create a data.fame with given column types and dimensions? Regards, Jan On 05/15/2011 04:43 PM, Bert Gunter wrote: In your post, you're missing the final s on the stringsAsFactors argument in the d1 assignment. When I typed it correctly, it works as expected. -- Bert On Sun, May 15, 2011 at 4

[R] first occurrence of a value?

2011-05-04 Thread Albert-Jan Roskam
-9]+, , names(df)[1])) ) } df$year2 - sapply(x, giveYear) Thanks in advance! Cheers!! Albert-Jan ~~ All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system

Re: [R] first occurrence of a value?

2011-05-04 Thread Albert-Jan Roskam
Hi Patrick, Dimitri, Thank you! Yes, 'match' was exactly what I was looking for. I like it as it doesn't require too many functions to be nested. Cheers!! Albert-Jan ~~ All right, but apart from the sanitation, the medicine

[R] Rodbc quesion: how to reliably determine the data type?

2011-05-03 Thread Albert-Jan Roskam
, those characters become NA. Cheers!! Albert-Jan ~~ All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system, and public health, what have the Romans ever

Re: [R] Rodbc quesion: how to reliably determine the data type?

2011-05-03 Thread Albert-Jan Roskam
conversions are driving me nuts. StringsAsFactors=F should be the default, for instance. Cheers!! Albert-Jan ~~ All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh

Re: [R] blank space escape sequence in R?

2011-04-25 Thread Jan van der Laan
difficulties using, for example, utf8 encoding in source files (which you'll probably need). Jan On 04/25/2011 03:28 PM, Duncan Murdoch wrote: On 25/04/2011 9:13 AM, Mark Heckmann wrote: I use a function that inserts line breaks (\n as escape sequence) according to some criterion when there are blanks

Re: [R] blank space escape sequence in R?

2011-04-25 Thread Jan van der Laan
difficulties using, for example, utf8 encoding in source files (which you'll probably need). Jan On 04/25/2011 03:28 PM, Duncan Murdoch wrote: On 25/04/2011 9:13 AM, Mark Heckmann wrote: I use a function that inserts line breaks (\n as escape sequence) according to some criterion when there are blanks

[R] Automatic splitting/combining nested categorical variable in glm

2011-04-14 Thread Jan van der Laan
split into Provinces and the remaining parts not. Also: I am using logistig regression (glm). Thank you for your help. With regards, Jan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] How to reference a package in academical paper

2011-03-07 Thread Jan Hornych
Jan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained

[R] df.residual for rlm()

2011-03-01 Thread Jan
for rlm() because df.residual() is NA. Can I get the degrees of freedom by calculating n = length(lm.result) - length(coefficients(lm.result)) Thanks for any help! Jan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo

[R] Transitions probability comparison

2011-02-27 Thread kende jan
Hello, I am training to use the changeLOS package. Using data provided in this package (los.data), I want to compare transition probability P01 and P03 like the Kaplan-Meier Method.Can someone help me ? Thank you. Jan data(los.data) my.observ - prepare.los.data(x=los.data) my.model

[R] changeLOS package use

2011-02-24 Thread kende jan
? Thank you. Jan data(los.data) my.observ - prepare.los.data(x=los.data) my.model - msmodel(c(0,1,2,3),cens.name=cens) my.trans - trans(model=my.model,observ=my.observ) my.aj - aj(my.trans, s=0, t=80) plot(my.aj,c(0,0,0,0),c(0,1,2,3)) [[alternative HTML version deleted

[R] error with 'hash' library

2011-02-22 Thread Albert-Jan Roskam
for 'hash' Can anybody tell how to solve this? Thanks in advance!  Cheers!! Albert-Jan ~~ All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system

Re: [R] RGtk2 on Debian Testing

2011-02-18 Thread Jan van der Laan
It has been a while back, but I believe I had to install libgtk2.0-dev (that was on Ubuntu) You could also try to install the r-cran-rgtk2 debian-package using dpkg, aptitude, or whatever you use as package manager. This makes rgtk available for all users. HTH, Jan Quoting Lorenzo

Re: [R] RGtk2 on Debian Testing

2011-02-18 Thread Jan van der Laan
It has been a while back, but I believe I had to install libgtk2.0-dev (that was on Ubuntu) You could also try to install the r-cran-rgtk2 debian-package using dpkg, aptitude, or whatever you use as package manager. This makes rgtk available for all users. HTH, Jan Quoting Lorenzo

[R] lm without intercept

2011-02-18 Thread Jan
the intercept to become zero, a bad regression becomes an extremely good one? 3. Why doesn't lm suggest a value of zero (or near zero) by itself if the regression is so much better with it? Please excuse my ignorance. Jan Rheinländer __ R-help@r

Re: [R] lm without intercept

2011-02-18 Thread Jan
that the intercept should be zero, what can I say to support one model against the other? Thanks, Jan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

Re: [R] lm without intercept

2011-02-18 Thread Jan
never be omitted. Is this true even if I know that the physical reality behind the numbers suggests an intercept of zero? Thanks, Jan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] monitor variable change

2011-02-16 Thread Jan van der Laan
. Jan Quoting Alaios ala...@yahoo.com: I think we are both talking for watchpoints-breakpoints --- On Wed, 2/16/11, Rainer M Krug r.m.k...@gmail.com wrote: From: Rainer M Krug r.m.k...@gmail.com Subject: Re: [R] monitor variable change To: Alaios ala...@yahoo.com Cc: R-help@r-project.org

Re: [R] help with aggregate()

2011-02-15 Thread Jan van der Laan
a look at: http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think-these-numbers-are-equal_003f HTH, Jan On 02/15/2011 12:42 AM, Sam Steingold wrote: Hi, I am trying to aggregate some data and I am confused by the results. I load a data frame all from a csv file, and then I

[R] Proportions comparison

2011-02-08 Thread kende jan
Dear all, I want to compare two proportions of disease in two populations : group 1 (1200/15000) and group 2 (26/650). However I would take into account the number of physicians involved in each group G1 (1600 physicians) and G2 (1.6 million). Please can someone can help me ?

<    1   2   3   4   5   >