[R] Multinomial Regression for Complex Survey

2017-09-07 Thread Yen Lee
Hi Dear Rusers, I am working on a survey data with the "survey" package. The logistic regression and multinomial regression would be the main statistic method I want to use. I found that the svyglm function could be used to conduct the logistic regression with the complex design but not the

Re: [R-es] Resumen de R-help-es, Vol 103, Envío 9

2017-09-07 Thread Carlos Ortega
Hola, Esto también puede ayudar: https://cloud.r-project.org/web/packages/tibbletime/index.html Es un paquete especialmente orientado para tratar este caso, agregar por fechas... Saludos, Carlos Ortega www.qualityexcellence.es El 6 de septiembre de 2017, 19:51, Eduardo Villagómez <

Re: [R] ISO3 code to 7 continents names

2017-09-07 Thread Jeff Newmiller
The unequivocal answer is that it is possible, and most likely you have bad data or are referring to an incomplete lookup table. For us to see what your problem is would rewquire a reproducible example, but what you have provided is not reproducible [1][2][3]. [1]

Re: [R] ISO3 code to 7 continents names

2017-09-07 Thread David Winsemius
> On Sep 7, 2017, at 12:21 PM, Miluji Sb wrote: > > df is a data frame consisting of one variable (iso3 codes) such as > > USA > RUS > ARG > BGD > ITA > FRA > > > Some of these iso3 codes are repeated and I would like the corresponding > continent name, the countrycode

Re: [R] Using quantmod to obtain current Dow Jones index

2017-09-07 Thread Joshua Ulrich
On Wed, Sep 6, 2017 at 8:11 AM, Dennis Fisher wrote: > R 3.4.1 > OS X > > Colleagues, > > I am just learning to use the quantmod package and I have encountered > something that I don’t understand. > > This works: > getSymbols("^DJI") > > This does not work: >

Re: [R] ISO3 code to 7 continents names

2017-09-07 Thread Miluji Sb
df is a data frame consisting of one variable (iso3 codes) such as USA RUS ARG BGD ITA FRA Some of these iso3 codes are repeated and I would like the corresponding continent name, the countrycode package does not seem to distinguish between North and South America. Thanks. Sincerely, Milu On

Re: [R] post_processor in rmarkdown not working

2017-09-07 Thread Duncan Murdoch
On 07/09/2017 2:04 PM, Duncan Murdoch wrote: On 07/09/2017 10:11 AM, Thierry Onkelinx wrote: Dear Duncan, Thanks for chiming in. Could you explain how you set debug() on post_processor()? I've tried adding debug(post_processor) to rsos_article() or adding debug(post_processor) when after

Re: [R] ISO3 code to 7 continents names

2017-09-07 Thread David Winsemius
> On Sep 7, 2017, at 11:36 AM, Miluji Sb wrote: > > Dear all. > > Is it possible to convert.identify iso3 country names to the seven > continent names? > > # Asia, Africa, Antarctica, Australia, Europe, South America, and North > America, > > I have tried the following: >

[R] Revolutions blog: August 2017 roundup

2017-09-07 Thread David Smith via R-help
Since 2008, Microsoft (formerly Revolution Analytics) staff and guests have written about R every weekday at the Revolutions blog (http://blog.revolutionanalytics.com) and every month I post a summary of articles from the previous month of particular interest to readers of r-help. In case you

[R] ISO3 code to 7 continents names

2017-09-07 Thread Miluji Sb
Dear all. Is it possible to convert.identify iso3 country names to the seven continent names? # Asia, Africa, Antarctica, Australia, Europe, South America, and North America, I have tried the following: ### region <- merge(countryExData,df,by.x='ISO3V10',by.y='iso3') where df is the name of

Re: [R] Geom_smooth

2017-09-07 Thread David Winsemius
> On Jul 20, 2016, at 10:01 AM, Tom Subia wrote: > > Default level = 0.95. > Does this mean +/- 0.025 from estimate? > > [[alternative HTML version deleted]] I would have guessed that it meant something along the lines of localized (or one might say "loess-ized")

Re: [R] post_processor in rmarkdown not working

2017-09-07 Thread Duncan Murdoch
On 07/09/2017 10:11 AM, Thierry Onkelinx wrote: Dear Duncan, Thanks for chiming in. Could you explain how you set debug() on post_processor()? I've tried adding debug(post_processor) to rsos_article() or adding debug(post_processor) when after post_processor was defined in the debugger.

Re: [R] post_processor in rmarkdown not working

2017-09-07 Thread Duncan Murdoch
On 07/09/2017 10:11 AM, Thierry Onkelinx wrote: remove.packages("INBOmd") devtools::install_github("inbo/INBOmd@post_processor") setwd(system.file("rmarkdown/templates/rsos_article/skeleton", package = "INBOmd")) debug(INBOmd::rsos_article) rmarkdown::render("skeleton.Rmd")

Re: [R] extend limited dimension in netcdf

2017-09-07 Thread David W. Pierce
On Thu, Sep 7, 2017 at 5:49 AM, wrote: > Dear all > > I have to combine 3D netCDF files (lon, lat, time). The files contain data > of one month and I need a year file containing all the data. Because the > attributes of all files are the same, I copied the

Re: [R] post_processor in rmarkdown not working

2017-09-07 Thread Thierry Onkelinx
Dear Duncan, Thanks for chiming in. Could you explain how you set debug() on post_processor()? I've tried adding debug(post_processor) to rsos_article() or adding debug(post_processor) when after post_processor was defined in the debugger. Neither work for me. All supporting files are available

[R] extend limited dimension in netcdf

2017-09-07 Thread raphael.felber
Dear all I have to combine 3D netCDF files (lon, lat, time). The files contain data of one month and I need a year file containing all the data. Because the attributes of all files are the same, I copied the first file and appended the data of the other months. This went well until the

Re: [R] Interesting behavior of lm() with small, problematic data sets

2017-09-07 Thread Rainer Krug
Same version on Mac, same results. > On 6 Sep 2017, at 15:22, JRG wrote: > > Indeed (version-specific). > > With R 3.4.1 on linux, I get coefficients and residuals that are > numerically exact, F-statistic = NaN, p-value = NA, R-squared = NaN, etc. > > All of which is

Re: [R] post_processor in rmarkdown not working

2017-09-07 Thread Duncan Murdoch
On 06/09/2017 5:41 AM, Thierry Onkelinx wrote: Dear all, I'm trying to write a post_processor() for a custom rmarkdown format. The goal of the post_processor() is to modify the latex file before it is compiled. For some reason the post_processor() is not run. The post_processor() does work when

Re: [R] post_processor in rmarkdown not working

2017-09-07 Thread Thierry Onkelinx
Dear Heinz, Yes. The idea of the post_processor() is that 1) pandoc converts the .md to .tex 2) the post_processors changes the .tex 3) the .tex is compiled into .pdf Hence the post_processors need to read, change and overwrite the tex output file. Best regards, ir. Thierry Onkelinx Instituut

Re: [R] post_processor in rmarkdown not working

2017-09-07 Thread Heinz Tuechler
Are you sure that you want to read in the output_file in text <- readLines(output_file, warn = FALSE)? best regards, Heinz Thierry Onkelinx wrote/hat geschrieben on/am 06.09.2017 11:41: Dear all, I'm trying to write a post_processor() for a custom rmarkdown format. The goal of the