Re: [R-es] setear variable de entorno

2015-07-13 Thread Carlos Ortega
Hola, Mira la ayuda relativa a .Rprofile : http://www.onthelambda.com/2014/09/17/fun-with-rprofile-and-customizing-r-startup/ Saludos, Carlos Ortega www.qualityexcellence.es El 13 de julio de 2015, 11:06, MªLuz Morales mlzm...@gmail.com escribió: Buenos días, alguien sabe cómo asignar valor

[R] Party package: varimp(..., conditional=TRUE) error: term 1 would require 9e+12 columns (fwd)

2015-07-13 Thread Julie Lee-Yaw
Hello, I'm following previous threads on the use of varimp in the R party package. I'm running up against similar problems to that described here (and the thread referenced therein): https://stat.ethz.ch/pipermail/r-help/2011-October/292897.html Specifically, I'm running cforest and then varimp

[R] overlap between line segments

2015-07-13 Thread Karla Shikev
Hi there, This is a newbie question, and I'm sure there are simple ways to do this, but I've spent my entire afternoon and I couldn't get it to work. Imagine that I got my samples distributed along a transect and my data refer to the first and last occurrences of each sample. For instance:

[R] Rolling Granger Causality

2015-07-13 Thread Syed Jawad Hussain Shahzad
I am using MSBVAR package in R, and have used the following codes: library(MSBVAR) data(IsraelPalestineConflict) granger.test.c - function(x) c(granger.test(x, p = 6)) aa-rollapplyr(IsraelPalestineConflict, 1275, granger.test.c, by.column = FALSE ) In rollapply, the width is 1275 (data contains

[R] Function returning multiple objects but printing only one

2015-07-13 Thread Daniel Caro
Hello, Sorry if this has already been addressed before but I could not find any helpful references. I would like to create a function that outputs a single element of a list but stores all elements, similar to 'lm' and many other functions. There are several answers on how to return multiple

[R] problem understanding grid coordinate systems

2015-07-13 Thread Johannes Huesing
According to R Graphics by Paul Murrell, the coordinates that were used for the most recent lattics plot can be retrieved with native units. I have difficulties to access these coordinates. The following code renders the following results: library(grid) library(lattice) pl - xyplot(1:10 ~

Re: [R] R 3.1.2 : arima.sim(model=list(ma=0.5), n=250, innov=rnorm(250, mean=0, sd=0.1)) versus arima.sim(model=list(ma=0.5), n=250, mean=0, sd=0.1) = only the first element is not identical !

2015-07-13 Thread Fabien Tarrade
just to correct something : in your test1 call, you are not supplying arguments for what should be used for the innovations associated with start.innov which is used for the burn in period. So, arima.sim uses the defaults of mean = 0 and sd = 1.0. set.seed(123); test1 -

Re: [R] an error in nlme package

2015-07-13 Thread Sarah Goslee
On Mon, Jul 13, 2015 at 3:04 AM, Patty Haaem via R-help r-help@r-project.org wrote: Dear All,I am trying to fit one compartment IV bolus model on pharmacokinetic data using phenoModel function in nlme package, based on a tutorial entitled Development of population PK model using R- Case

Re: [R] R 3.1.2 : arima.sim(model=list(ma=0.5), n=250, innov=rnorm(250, mean=0, sd=0.1)) versus arima.sim(model=list(ma=0.5), n=250, mean=0, sd=0.1) = only the first element is not identical !

2015-07-13 Thread Fabien Tarrade
Hi Mark, Thanks for your message and sorry for the delay but it took me some time to understand your message and to try few things. I think one would say that that is not a bug. I looked at the details of arima.sim ( using debug(arima.sim) ) and there are two different series that are created

Re: [R] detecting any element in a vector of strings, appearing anywhere in any of several character variables in a dataframe

2015-07-13 Thread Christopher W Ryan
Interesting thoughts about the partial-word matches, and speed On another real data set, about 73,000 records and 6 columns to search through for matches (one column of which contains very long character strings--several paragraphs each), I ran both John's and Bert's solutions. John's was

Re: [R] merge: right set overwrite left set

2015-07-13 Thread aldi
Thank you Ista, Your solution is smart, by sub-setting from x.HHu.map data only HHid, position as indices (because they are unique) for the merge, and any extra columns in x.HHu.map that are not present in y.HHo,map, thus when the merge is done with option all=T, will work among the two sets of

[R] an error in nlme package

2015-07-13 Thread Patty Haaem via R-help
Dear All,I am trying to fit one compartment IV bolus model on pharmacokinetic data using phenoModel function in nlme package, based on a tutorial entitled   Development of population PK model using R- Case study I. The codes are as fallowing: library(nlme)mydata.grp -

Re: [R] merge: right set overwrite left set

2015-07-13 Thread aldi
Thank you Jeff, Your solutions have two great aspects: a) you provide a different approach by using reshape2 syntax / tidyr, and b) the concern that it is better to update x.HHu.map with y.HHo.map, without overwriting x.HHu.map with NA from y.HHo.map, thus keeping intact the old value(s). That

Re: [R] an error in nlme package

2015-07-13 Thread David Winsemius
On Jul 13, 2015, at 12:04 AM, Patty Haaem via R-help wrote: Dear All,I am trying to fit one compartment IV bolus model on pharmacokinetic data using phenoModel function in nlme package, based on a tutorial entitled Development of population PK model using R- Case study I. The codes are as

Re: [R] an error in nlme package

2015-07-13 Thread Sarah Goslee
On Mon, Jul 13, 2015 at 11:19 AM, Bert Gunter bgunter.4...@gmail.com wrote: No, Sarah. na.action must be a function, not a character string. But you're close: there is no na.include function, as the message says. It should be na.exclude . My apologies: I was assuming it worked like

Re: [R] an error in nlme package

2015-07-13 Thread Bert Gunter
No, Sarah. na.action must be a function, not a character string. But you're close: there is no na.include function, as the message says. It should be na.exclude . Cheers, Bert Bert Gunter Data is not information. Information is not knowledge. And knowledge is certainly not wisdom. --

[R] R squared change value for a moderation effect

2015-07-13 Thread Marcel Meyer
Hello, I want to test a regression model with neuroticism as focal predictor, agreeableness as moderator and RT variability as dependent measure (covariates: attentional control and mean RT). Previously, I have used the modprobe macro in SPSS by Andrew Hayes for this (for full reference see

[R] Output of the probemod package

2015-07-13 Thread Marcel Meyer
Hello, I am trying to follow up a significant moderation effect in my data, using the pick-a-point (pap) and Johnson-Neyman (J-N) techniques. I have found the probemod package for this, which is very useful. Working with it over the last few weeks, 3 minor queries about the output have come up

Re: [R] an error in nlme package

2015-07-13 Thread David Winsemius
On Jul 13, 2015, at 8:36 AM, Sarah Goslee wrote: On Mon, Jul 13, 2015 at 11:19 AM, Bert Gunter bgunter.4...@gmail.com wrote: No, Sarah. na.action must be a function, not a character string. But you're close: there is no na.include function, as the message says. It should be na.exclude .

[R] Simulation of panel data

2015-07-13 Thread deva d
Dear all, I have a strongly balanced panel dataset of 46 entities x11 years. Observed vars are not normally distributed How should I simulate the ov ? I do not know the distribution Can somebody pl help --TR ... Deva, [[alternative HTML version deleted]]

[R] remove 0 and NA values

2015-07-13 Thread Lida Zeighami
Hi there, I have a matrix which its elements are 0, 1,2,NA I want to remove the columns which the colsums are equal to 0 or NA and drop these columns from the original matrix and create the new matrix for the nonzero and NA value? (I think I have consider na.rm=True and remove the colums with

Re: [R] Understanding mod.matrix for directed networks

2015-07-13 Thread Gábor Csárdi
I am sorry for the slow response. Please note that these are better channels for igraph help: http://igraph.org/r/#help As for your question, can you please send some R code that demonstrates your problem? Gabor On Tue, May 19, 2015 at 1:50 AM, Aziz, Muhammad Fayez az...@illinois.edu wrote: