[R] Code problem with R/Microeconomics

2021-11-01 Thread Olga Pervushina
Dear Sir/Madam, I am working on a statistical evaluation with R at the Erasmus University and have a problem with one coding sentense. Who can help me with that? Thank you. Kind regards, Olga Pervushina [[alternative HTML version deleted

[R] ZINB multi-level model using MCMCglmm

2016-04-18 Thread MARIA OLGA VIEDMA SILLERO
Hi, I am Olga Viedma. I am running a Zero-inflated negative binomial (ZINB) multi-level model using MCMCglmm package. I have a doubt. Can I use the "Liab" outputs as fitted data, instead of the predicted values from "predict"? The liab outputs fit very well with the ob

[R] R in Excel

2014-04-29 Thread Olga Albutova
Hello! I need some help. I'd like to make a button in Excel which performes functions wrote in R. Is there is any macros to do this? I don't want to use RExcel. Thank you very much! Sincerely yours, Olga [[alternative HTML versi

[R] Making visible Rcommander

2014-03-29 Thread Olga Albutova
Rcommander ->with Excel menus (see the pic.2) But in my work book there are no such an item (see the pic.3), but I've made a connection between R and Excel Please, help me to make visible Rcommander Thank you! Sincerely yours, Olga __ R

[R] Complex Association Plots

2013-07-08 Thread Olga Musayev
I'm new to R plotting, so please be gentle. I want to make a large association plot, showing whether each combination of variables averages more or less than the whole for proportion in a certain category. So, for example: Dependent Variable: eye color (30% green, 45% brown, 25% blue on average)

Re: [R] Scaling Statistical

2013-06-24 Thread Olga Musayev
.115/NA. > So when it tries to interpolate the p-value, the variable 'interpol' is > equal to NaN and the if test fails. > > With a standard error like NA, maybe you don't have enough data points to > run the tests. (Only 3 residuals, all zero, like seen above.) > >

Re: [R] Scaling Statistical

2013-06-24 Thread Olga Musayev
; > Em 23-06-2013 21:44, Rui Barradas escreveu: > > Hello, >> >> See if the following does what you want. >> >> lapply(seq_len(obsv), function(i) adf.test(df[df$ID == i, 3])) >> >> >> Hope this helps, >> >> Rui Barradas >> >

[R] Scaling Statistical

2013-06-23 Thread Olga Musayev
Short question: Is it possible to use statistical tests, like the Augmented Dickey-Fuller test, in functions with for-loops? If not, are there any alternative ways to scale measures? Detailed explanation: I am working with time-series, and I want to flag curves that are not stationary and which di

Re: [R] permutation of vectors (1 or 0)

2012-12-20 Thread Olga Lyashevska
ng the maximum number of permutations that R can handle? Cheers, Olga __ 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, m

Re: [R] permutation of vectors (1 or 0)

2012-12-20 Thread Olga Lyashevska
On 12/20/2012 02:13 PM, arun wrote: > library(gtools) > permutations(2,10,0:1,repeats.allowed=TRUE) Thanks, this is exactly what I need. Regards, Olga __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE d

[R] RV: problems for making grids from lmer models

2012-09-26 Thread MARIA OLGA VIEDMA SILLERO
perator not defined for this S4 class Thanks in advance, and my best regards, Olga Olga Viedma Sillero Profesora Ordenacion del Territorio Departamento Ciencias Ambientales Facultad Ciencias del Medio Ambiente Avd/ Carlos III, s/n 45071 Toledo (Spain) email: olga.vie...@uclm.es Tel: 925-26

Re: [R] rShowMessage "Fatal error: unable to open the base package

2011-03-08 Thread Olga
file "base" in ...\R-2.12.2\src\main\startup.c. ( FILE *R_OpenLibraryFile(const char *file) { char buf[259]; FILE *fp; snprintf(buf, 259, "%s/library/base/R/%s", "C:/Rcpp_and_RInside/R/R-2.12.2", file); fp = R_fopen(buf, "r"); return fp

Re: [R] vegan and sweave using xtable

2011-02-04 Thread Olga Lyashevska
Thanks Ista, Very instructive and works like a charm! Cheers! Olga __ 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

[R] vegan and sweave using xtable

2011-02-04 Thread Olga Lyashevska
61.0465 340.9567 346.0219 Mandelbrot 100.52 -2.31224.084 4.2271 286.1372 293.7350 Many thanks, Olga __ 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.o

[R] Linear mixed model: question about t-values

2011-01-28 Thread Kostenko, Olga
Dear all, I have a question about the output of linear mixed model fitted in R using nlme package. In particular, what are the t-values that are given in an output, how are they calculated and based on what test? I guess it cannot be a simple Student t-test, otherwise how can the simple Student

[R] Linear mixed model: question about t-values

2011-01-24 Thread Kostenko, Olga
Dear all, I have a question about the output of linear mixed model fitted in R using nlme package. In particular, what are the t-values that are given in an output, how are they calculated and based on what test? I guess it cannot be a simple Student t-test, otherwise how can the simple Student t-

Re: [R] lower triangle of the correlation matrix with xtable

2010-09-02 Thread Olga Lyashevska
st(cor(mydata)),digits=3)) Error in UseMethod("xtable") : no applicable method for 'xtable' applied to an object of class "dist" Jorge's solution with upper.tri works fine! Thanks everyone for your prompt response. Cheers Olga ___

[R] lower triangle of the correlation matrix with xtable

2010-09-02 Thread Olga Lyashevska
ion matrix? Using 'dist' doesn't seem to be useful as it doesnt allow to convert this table with xtable. print(xtable(cor(mydata),digits=3)) Any ideas? Cheers, Olga __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinf

Re: [R] standardize columns selectively within a dataframe

2010-09-01 Thread Olga Lyashevska
good time to reference Burns', The R Inferno, which > has an entry for sweep (p 57) as well tips regarding the drop=FALSE > maneuver (p 54) that I tried first for this problem but it "didn't > work". Thanks for the references! Your solution with scale() is nice and neat

Re: [R] standardize columns selectively within a dataframe

2010-09-01 Thread Olga Lyashevska
Thanks! It is exactly what I was looking for! Cheers Olga __ 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

[R] standardize columns selectively within a dataframe

2010-09-01 Thread Olga Lyashevska
een trying to use subscripts but did not succeed so far. Any tips? Many thanks, Olga __ 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 prov

Re: [R] frequency table for a list matching some conditions

2010-08-26 Thread Olga Lyashevska
Thanks Dimitris, It works nicely! Regards, Olga On Thu, 2010-08-26 at 11:55 +0200, Dimitris Rizopoulos wrote: > one way is the following: > > mylist <- list(x1 = c("A","A","A","B","C","Z","Y"), > x2 = c

[R] frequency table for a list matching some conditions

2010-08-26 Thread Olga Lyashevska
t; $x3 [1] "A" "A" "A" "B" "Y" "Z" I also have another list, that contains some specific elements. newlist<-c("A","B","C","D","E","F") newlist [1] "A" "B" &

[R] decision tree display

2010-08-19 Thread Olga Shaganova
the middle). Where can I get info on how to adjust the tree display and text size display? Please help. Thank you! Olga [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] decision tree finetune

2010-08-13 Thread Olga Shaganova
I figured it out myself, here it is: control=rpart.control(cp=.001)) Thank you! On Fri, Aug 13, 2010 at 12:58 PM, Olga Shaganova wrote: > My decision tree grows only with one split and based on what I see in > E-Miner it should split on more variables. How can I adjust splitting > cr

[R] decision tree finetune

2010-08-13 Thread Olga Shaganova
nfo_G=0" instead of "2) Info_G<0.5". Thank you in advance! And thanks for Eric who helped with my previous question about starting "rpart". Olga > fit <- rpart(Retention ~ Info_G+AOPD+Mail+Xref_Umbr+Ins_Age+Discount+Xref_A + Con6 + + Con5 +Con4

[R] rpart package

2010-08-12 Thread Olga Shaganova
Hi, I am a brand new user and may be my question is too simple. I have R on our (not Unix) server. I am trying to build a decision tree and the error message says "couldn't find function rpart". Does it mean I have to ask our server guy to install an additional package?

Re: [R] try-error within for loop

2010-08-06 Thread Olga Lyashevska
Wu Gong wrote: > So, try() inside loop should work. Like > > for () { > if (class(try(...,silent=T))=="try-error") result[[i]] <- NA > ... > } Thanks a lot, it worked for me! Cheers Olga __ R-help@r

Re: [R] PageUp/Down in gnome-terminal

2010-08-05 Thread Olga Lyashevska
On Thu, 2010-08-05 at 10:59 +0100, Liviu Andronic wrote: > On Thu, 05 Aug 2010 11:13:00 +0200 > Olga Lyashevska wrote: > > I do not have any desktop environment (running R on a server), can I > > still try xfce? > > > I am not very sure. If you are running gnome-te

[R] try-error within for loop

2010-08-05 Thread Olga Lyashevska
this case missing 5 rows were omitted. Any suggestions? Thanks, Olga result<-list() for(i in 1:1000)try({ hclass<-mydata2$tclass[mydata2$tspecies%in%com[[i]][[5]][[1]]] horder<-mydata2$torder[mydata2$tspecies%in%com[[i]][[5]][[1]]] hfamily<-mydata2$tfamily[mydata2$t

Re: [R] PageUp/Down in gnome-terminal

2010-08-05 Thread Olga Lyashevska
Thanks Liviu, On Thu, 2010-08-05 at 09:51 +0100, Liviu Andronic wrote: > On Thu, 05 Aug 2010 08:56:30 +0200 > Olga Lyashevska wrote: > > I am using gnome-terminal to run R, and I noticed that standard > > PageUp/Down do not work but they do work for other programs within the

[R] PageUp/Down in gnome-terminal

2010-08-04 Thread Olga Lyashevska
hanks Olga -- R version 2.11.1 (2010-05-31) 2010 x86_64 GNU/Linux Ubuntu 10.04.1 LTS __ 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

Re: [R] multiple R sessions from one working directory using GNU screen

2010-08-04 Thread Olga Lyashevska
to manage massive matrices with shared memory and memory-mapped files. Now I will try to see how it can be implemented in my code. Many thanks Olga On Wed, 2010-08-04 at 13:51 +0100, david.jes...@ubs.com wrote: > Olga > > There was a presentation at the London R user group about doing

Re: [R] multiple R sessions from one working directory using GNU screen

2010-08-04 Thread Olga Lyashevska
reaching its limits quite often resulting in shutdown, so I wanted to split one task into pieces which indeed similar to cluster computing. I will check documentation on this topic. Kind regards, Olga On Tue, 2010-08-03 at 13:04 -0700, Steven McKinney wrote: > Dear Olga > An R session is con

[R] multiple R sessions from one working directory using GNU screen

2010-08-03 Thread Olga Lyashevska
tried to save.image(), q() and then restart both sessions, but it does not help. Any suggestions? Many thanks Olga R version 2.11.1 (2010-05-31) 2010 x86_64 GNU/Linux Ubuntu 10.04.1 LTS Intel(R) Xeon(R) CPU X3220 @ 2.40GHz MemTotal: 4050180 kB __ R-h

[R] jtest to test significance of R2 change

2010-05-19 Thread Olga Lyashevska
generalize it? Would jtest be appropriate technique if I want to find out whether change in R2 across models is significant? Many thanks Olga __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] U de Theil

2010-05-09 Thread Olga Maria Formigoni Carvalho Walter
Hi I need to calculate the indicator U de Theil from my forecasts, so I want to know if there is a specific command or function that provides me the indicator U de Theil Thanks.. Olga Maria Formigoni C. Walter E-mail: <mailto:olgaformig...@gmail.com> olgaformig...@gmail.com

[R] how to plot forecast together with historical series in OLS or special ARIMA model

2010-05-02 Thread Olga
ist(...), .makeNamesTs(...), dframe = dframe, union = TRUE) : non-time series not of the correct length Does it exists the code how to plot it together with historical data or how to include the additional variable in the first ARIMA model? Thank you in advance, Olga Series: Year HCPI 1993

Re: [R] barplot with a probability density curve

2010-03-15 Thread Olga Lyashevska
suitable tool to use. However, it also means that I cannot plot probability density curve using this type of data because I would need to have a histogram instead. Did I get it right? Many thanks, Olga On 03/15/2010 08:32 AM, Olga Lyashevska wrote: Dear all, I am making a barplot as

[R] barplot with a probability density curve

2010-03-14 Thread Olga Lyashevska
o trying to add a probability density curve, however using lines(density(c(1,2,3,5,2,3,1))) does not give a desired result. Any tips? Thanks Olga __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the post

[R] looking into function body without package installation

2010-03-05 Thread Olga Lyashevska
explore function syntax I end up installing loads of packages I am never going to use. I have also tried to use package 'sos' which does provide a good facility to find relevant information, but it seems it does not give any info on function body. Th

Re: [R] Conditional sampling?

2010-02-09 Thread Olga Lyashevska
going to sample from to only those elements that correspond to col1 That is, I want to take a sample from f, g, h, i. Elements corresponding to level a need to be dropped. col1col2 3 b f 4 b g 5 c h 6 c i s <- sample(col1,2,replace=T) co

Re: [R] Conditional sampling?

2010-02-04 Thread Olga Lyashevska
Thanks Thierry! On 04.02.2010, at 13:22, ONKELINX, Thierry wrote: selection <- subset(somedf, col1 != "a") sample(selection$col2, 2, replace = TRUE) I simplified it, but in fact it is not only 'a' to be eliminated, but thousands of rows. Can I use: col1sample<-sample(col1,2,replace=T)

[R] Conditional sampling?

2010-02-04 Thread Olga Lyashevska
Hello, I have a dataframe consisting of two columns. > col1<-factor(c("a","a","b","b","c","c")) > col2<-factor(c("a","b","c","d","e","f")) > somedf<-data.frame(col1,col2) > somedf col1 col2 1 a d 2 a e 3 b f 4 b g 5 c h 6 c i > s

[R] working with taxonomic trees: sampling

2010-02-01 Thread Olga Lyashevska
hout any leaves. How to get rid of those branches? And after all I want to repeat this procedure lets say 1000 times, each time obtaining different number of elements at each taxonomic level. Sorry for this long-winded post, I hope it is clear what I am trying to do. I would appreci

Re: [R] Microsoft SQL Server and R

2010-01-27 Thread Olga Lyashevska
Yes, checking it now, I see you are absolutely right. Sorry for this confusion. Cheers, Olga On 27.01.2010, at 12:45, Orvalho Augusto wrote: RMySQL is for MySQL. MySQL is not MSSQL. There is not RMSSQL. So the best you have something to conneto MSSQL... RODBC or you may connect. Or as

Re: [R] Microsoft SQL Server and R

2010-01-27 Thread Olga Lyashevska
Hi David, > I have a client running Microsoft SQL Server. I am interested in > ways of accessing data from this server using R. > Why don't you try RMySQL package? It works fine for me. [[alternative HTML version deleted]] __ R-help@r-project

Re: [R] RMySQL - Bulk loading data and creating FK links

2010-01-27 Thread Olga Lyashevska
bit how you entity-relationship diagram looks like? Cheers, Olga __ 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, reproducible code.

[R] Nested Anova and type II sum of square

2009-10-01 Thread Olga Ivanikova
derstood well, this is because anova() calculate type 1 sum of square. Thus, I would like to calculate type II, and I tried Anova() within car package: library(car) Anova( lm(leafsize~month+condition*(species/variety),data=exple)) I get the following error : “One or more terms aliased in modelâ€

Re: [R] read.csv from a remote machine

2009-08-05 Thread Olga Lyashevska
em is solved. Cheers, Olga __ 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, reproducible code.

Re: [R] read.csv from a remote machine

2009-08-04 Thread Olga Lyashevska
, from this machine I establish ssh with a Linux machine. I run R on Linux, while all my data files are stored on Mac. So in this case although physically I am using Mac, it is in fact remote. I hope it answers your question. Thanks again, Olga

[R] read.csv from a remote machine

2009-08-04 Thread Olga Lyashevska
Dear all, I am trying to import data with read.csv and my file is on remote machine. I believe that I need to open a connection, not sure about syntax though. I would appreciate any suggestions, Thanks! Olga __ R-help@r-project.org mailing list

[R] Call C code from R

2007-09-12 Thread Olga K. Kamneva
and then include the file? Thanks All :) Olga [[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