Re: [R] Legend position in ggplot

2021-06-17 Thread Felipe Carrillo via R-help
Like this? theme(legend.position= 'top' On Thursday, June 17, 2021, 10:52:04 AM PDT, peri He wrote: Dear Friends, I would like to see my legend outside of a ggplot (at the top). This code is showing the legend inside of a plot: theme(legend.position=c(0.15,0.97)) But when I changed

Re: [R] Arranging ggplot2 objects with ggplotGrob()

2020-07-24 Thread Felipe Carrillo via R-help
What about cowplot? https://cran.r-project.org/web/packages/cowplot/vignettes/introduction.html On Friday, July 24, 2020, 11:51:17 AM PDT, H wrote: On 07/24/2020 02:03 PM, Jeff Newmiller wrote: > The set of people interested in helping when you supply a minimal > reproducible example i

Re: [R] [External Email] Re: [External] Re: access for free more than 500 essential Springer Nature textbooks

2020-05-22 Thread Felipe Carrillo via R-help
They can be downladed. I saved two of them to my desktop as pdf earlier. Sent from Yahoo Mail on Android On Fri, May 22, 2020 at 10:35 PM, Mark Leeds wrote: Hi: I'm not sure about the other link that was sent because I didn't try it  but, in the case of the link that I sent, you can obtain

Re: [R] Tinn-R project: new version (6.01.01.03) released

2019-12-23 Thread Felipe Carrillo via R-help
Josè Sent from Yahoo Mail on Android On Mon, Dec 23, 2019 at 12:15 PM, Abby Spurdle wrote: Hi Jose,Same here, I use tinn-R on a daily basis..thanks for the update and have a merry christmas That's awesome. I used Tinn-R, back in 2006, when I starting learning nontrivial R programming

Re: [R] Preserving numeric columns

2019-10-19 Thread Felipe Carrillo via R-help
is for you to indicate what that solution was so people searching the archives can learn from your question. Was it to set the kable option? options(knitr.kable.NA = '-')  On October 19, 2019 12:50:20 PM PDT, Felipe Carrillo wrote: >You are correct. I didnt explain well and fail

Re: [R] Preserving numeric columns

2019-10-19 Thread Felipe Carrillo via R-help
nvert everything to character format intentionally then. On October 19, 2019 12:44:26 AM PDT, Felipe Carrillo via R-help wrote: >Consider the following dataset:  I need to replace NAs with "-" but I >lose my numeric formatting  fall.estimate <- structure(list(`Salmon` = >c("

[R] Preserving numeric columns

2019-10-19 Thread Felipe Carrillo via R-help
Consider the following dataset:  I need to replace NAs with "-" but I lose my numeric formatting  fall.estimate <- structure(list(`Salmon` = c("salmon River", "Ant Creek", "big Creek", "oso River", "linda Creek"), `baseline` = c(80874.384012, 361.1997, 5012.8311, 638.6912, 402.1044), `ta

[R] time series x axis labels

2017-06-07 Thread Felipe Carrillo via R-help
I hope this is the appropriate list for this type of question Consider the dataset below:I have a column DOC with values from 3 to 101and those are the values that I want to show on my x axis, howeverI only get 3, 3.1, 3.2 and so on. I tried to change those values with xlim(3, 101) but I getthe

[R] Time series axis breaks

2017-06-07 Thread Felipe Carrillo via R-help
I hope this is the appropriate list for this type of question Consider the dataset below:I have a column DOC with values from 3 to 101and those are the values that I want to show on my x axis, howeverI only get 3, 3.1, 3.2 and so on. I tried to change those values with xlim(3, 101) but I getthe

Re: [R] gridExtra-arrangeGrob

2017-01-09 Thread Felipe Carrillo via R-help
gt;    On Monday, January 9, 2017 1:08 AM, Felipe Carrillo via R-help > wrote: > > >  Hi;The code below used to work on my older version of gridExtra but doesn't >work with the new version. Could someonegive me a hint on how to translate >this code to the new version

[R] gridExtra-arrangeGrob

2017-01-08 Thread Felipe Carrillo via R-help
 Hi;The code below used to work on my older version of gridExtra but doesn't work with the new version. Could someonegive me a hint on how to translate this code to the new version of gridExtra code? Thank you beforehand. p1 <- ggplot(iris,aes(Sepal.Length,  Petal.Length, colour=Species)) + geom_

[R] Help

2015-02-09 Thread Andrés Felipe Flórez Rivera
Hi everyone, I am trying to automate (on a Win7 system) an R script to read data from a DB2 data base and write it to file, for processing by another system. My code runs in the R gui perfectly. So I wrote a batch file to call this .r file and output results to script.out as shown below. When I do

[R] Bug in myintegrate in Elliptic package

2014-10-09 Thread Luis Felipe Parra
- 1/pi*Re(myintegrate(integrand_cdf,0,100,x=x,psi_measure=psi_measure))) + } > CDF_Merton(x=0.1,psi_measure=psi) [1] 59.03344 where you can see that both codes are exactly the same except for the dummy variable used to integrate, does any body know what might be going on here? Thanks Feli

[R] ddply question

2014-08-30 Thread Felipe Carrillo
I apologize about cross posting but my question keeps bouncing back from the list How come pct doesn't work in this ddply call? I am trying to get a percent of 'TotalCount' by SampleDate and Age library(plyr) b <- structure(list(SampleDate = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L), .La

[R] t.test of matching columns from two datasets using plyr

2014-08-12 Thread Felipe Carrillo
Hi, I Have two datasets df1 and df2 with 3 matching columns. I need to do a t.test of sp1, sp2 and sp3� and var1, var2 and var3 where the year, month and location match. I can do it with sapply or mapply but I want the end result to be a data.frame. I prefer to do it with plyr or dplyr as I have

Re: [R] predicted values

2014-02-03 Thread Felipe Carrillo
Wiley wrote: Dear Felipe, > >That is a normal behavior --- The prediction for that simple model >decreases over time, and ends up negative.  If the outcome cannot take >on negative values, treating it as a continuous gaussian may not be >optimal --- perhaps some transformation, like

[R] predicted values

2014-02-01 Thread Felipe Carrillo
Consider this dummy dataset. My real dataset with over 1000 records has scatter large and small values. I want to predict for values with NA but I get negative predictions. Is this a normal behaviour or I am missing a gam argument to force the model to predict positive values. library(mgcv) test <-

Re: [R] Problem with convergence in optim

2013-05-15 Thread Luis Felipe Parra
l parameters) but your > setting of reltol is too small. Try using the default. It's > sqrt(.Machine$double.eps), about 1e-8, you are using 1e-16. > > Hope this helps, > > Rui Barradas > > Em 15-05-2013 17:02, Luis Felipe Parra escreveu: > >> Hello to a

[R] Problem with convergence in optim

2013-05-15 Thread Luis Felipe Parra
74822 -0.07592360.5 $e2 [1] 74.84273 $conv [1] 10 $v [1] 74.84273 My intuition tells me the correct solution is no convergence. Does anybody know why this might be happening. Thank you Felipe Parra [[alternative HTML version deleted]] ___

Re: [R] print multiple plots to jpeg, one lattice and one ggplot2

2013-05-03 Thread Felipe Carrillo
Something like this? library(gridExtra) grid.arrange(one,two) Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA http://www.fws.gov/redbluff/rbdd_jsmp.aspx > >From: Christophe Bouffiou

Re: [R] Tobit Fixed Effects

2013-03-09 Thread Felipe Nunes
+ gdp.cap + coa.power + margin + lula.perc.vot2 + reelec + voters + gov.fac + year.fac, left=0, right=Inf, data=dNI.p, method=BHHH) Error in solve.default(crossprod(X.m)) : system is computationally singular: reciprocal condition number = 2.84374e-18 Thanks *Felipe Nunes* CAPES/Fulbright Fellow

Re: [R] Summary of data for each year

2013-02-01 Thread Felipe Carrillo
 Here is another option using plyr:   library(plyr) creek <- read.csv("creek.csv")  library(ggplot2)  creek[1:10,]  colnames(creek) <- c("date","flow")  creek$date <- as.Date(creek$date, "%m/%d/%Y")   ddply(creek,"year",summarise,MED=medi

Re: [R] readJPEG function cannot open jpeg files

2013-01-14 Thread Felipe Carrillo
I have used the biOps package to read pictures and it works fine. For example you can plot a pic just by: library(biOps) x <- readJpeg("mypic.jpg")  ##mypic should be in you working directory plot(x) Notice that is only one uppercase letter on "readJpeg" and mypic is "

Re: [R] save to file

2012-12-17 Thread Felipe Carrillo
I actually got it to do what I want running my R routine through a batch file. It saves to a file everything on the console. Thanks for your suggestions. Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA http://www.fws

Re: [R] save to file

2012-12-16 Thread Felipe Carrillo
ocurred. I've seen text files with every single text from the R console but can't find the way to capture that. Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA http://www.fws.gov/redbluff/rbdd_jsmp.aspx From: aru

Re: [R] save to file

2012-12-16 Thread Felipe Carrillo
I did check that link but it doesn't do what I want..thanks for trying though. Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA http://www.fws.gov/redbluff/rbdd_jsmp.aspx From: arun >To: Felipe Carrillo &

[R] save to file

2012-12-16 Thread Felipe Carrillo
 Hi, What's the equivalent of "Save to File" from the R console File menu on an R routine? Just trying to capture the whole R console into a text file when my code fails. Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Serv

Re: [R] Count cell Count by her frequency

2012-12-10 Thread Felipe Carrillo
And another way: library(plyr) ddply(dta,"A",summarise,B=length(B)) Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA http://www.fws.gov/redbluff/rbdd_jsmp.aspx From: David L Carlson >To: 'Mat' ;

Re: [R] simple subset question

2012-12-02 Thread Felipe Carrillo
I finally see what you and David W mean...I was under the assumption that by subsetting Year==2012 it would also extract the max for that year.I guess I have to review 'subset' again :) Thank you much Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interi

Re: [R] simple subset question

2012-12-02 Thread Felipe Carrillo
oming in to the weeks of interest (weeks 45 to 52) and put a point on the 2012 max catch which is week 37     windows()   test + coord_cartesian(xlim=c(45,52)) + scale_x_continuous(breaks=c(45,47,49,51)) +   scale_y_continuous(limits=c(0,35)) + opts(title="Zooming in to weeks 45 to 52&q

Re: [R] simple subset question

2012-12-02 Thread Felipe Carrillo
n I try to subset only one year out of my whole dataset, it returns empty rows it regardless of what year I am subsetting. I am doing  a few tests to see what's going on Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service C

Re: [R] simple subset question

2012-12-02 Thread Felipe Carrillo
ks for your help and will try to figure out why subset returns an empty row Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA http://www.fws.gov/redbluff/rbdd_jsmp.aspx From: William Dunlap >To: Felipe Carrillo ; arun &

Re: [R] simple subset question

2012-12-02 Thread Felipe Carrillo
Works with the small dataset (2 years) but I get the error message with the whole dataset (12 years of data). I am going to have to check what's wrong with it...Thanks Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California,

Re: [R] simple subset question

2012-12-02 Thread Felipe Carrillo
x(Total));x I get: [1] IDWeek Total  Fry    Smolt  FryEq  Year  <0 rows> (or 0-length row.names)   I will start a fresh session to see if that helps...Thank you all Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA

[R] simple subset question

2012-12-02 Thread Felipe Carrillo
It works if I subset the year first and then get the Total max from it   xx <- subset(winter,Year==2012)  xxx <- subset(xx,Total==max(Total));xxx   xxx Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service Califor

Re: [R] arrange data

2012-11-12 Thread Felipe Carrillo
Since you specifically want either nov or dec you actually don't need '>=' use instead '= ='   Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA http://www.fws.gov/redbluff/rbdd_jsmp.aspx Fr

Re: [R] arrange data

2012-11-11 Thread Felipe Carrillo
Something like this...untested I think cbind recicles the last value(31) since nov and dec are of different length nov <- kuantan.dt[(kuantan.dt$Bulan >=11);nov dec <- kuantan.dt[(kuantan.dt$Bulan >=12);dec both <- cbind(nov,dec) # get the first 30 records both <- head(both,3

Re: [R] mean of a value of the last 2 hours

2012-10-25 Thread Felipe Carrillo
=c(1,1,1,2,2,1) ) myframe myframestime <- as.POSIXct (strptime(as.character(myframe$Timestamp), "%d.%m.%Y %H:%M"), tz="GMT") myframestime myframe2 <- cbind (myframe,myframestime) myframe2 ddply(myframe2,.(ID),summarise,Last2=mean(tail(Hunger,2))) Felipe D. Carrillo Supervis

[R] splines package

2012-09-11 Thread Luis Felipe Parra
Hello all, I have been working with b-splines and noted that the splines package is not available in CRAN. Does any body know what happened with it? Or, is there any package that replaces it? Thank you Felipe Parra [[alternative HTML version deleted

Re: [R] nls question

2012-07-12 Thread Felipe Carrillo
Thank you all for your help. Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA http://www.fws.gov/redbluff/rbdd_jsmp.aspx > >From: Gabor Grothendieck >To: Felipe Carrillo &

Re: [R] nls question

2012-07-12 Thread Felipe Carrillo
trace=TRUE) 1466475181 :  0.2 Error in qr.qty(QR, resid) :   'qr' and 'y' must have the same number of rows Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA http://www.fws.gov/redbluff/rbdd_jsmp.as

Re: [R] nls question

2012-07-12 Thread Felipe Carrillo
. Looking at the model coefficients:   alpha  beta gamma -49.108008320  52.394172340   0.005269907 If I change the alpha and beta values inside start..I still get the error... Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Servic

[R] nls question

2012-07-12 Thread Felipe Carrillo
= "Week") with(weightData, points(week, weight,col='blue')) Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA http://www.fws.gov/redbluff/rbdd_jsmp.aspx [[alternative HTML version deleted]] _

Re: [R] Fisher's LSD multiple comparisons in a two-way ANOVA

2012-04-05 Thread Mendiburu, Felipe (CIP)
phics par(mfrow=c(2,2)) bar.err(comp1,ylim=c(0,100), col="yellow") bar.group(comp2,ylim=c(0,100),density=4,col="blue") bar.group(comp3,ylim=c(0,100), col="brown",las=2) bar.err(comp3,ylim=c(0,100),col=0,las=2) Regards, Felipe de Mendiburu Statistician -Origi

Re: [R] Tobit Fixed Effects

2012-03-22 Thread Felipe Nunes
singular: reciprocal condition number = 4.41531e-17 Thanks, *Felipe Nunes* CAPES/Fulbright Fellow PhD Student Political Science - UCLA Web: felipenunes.bol.ucla.edu On Fri, Mar 2, 2012 at 10:29 AM, Felipe Nunes wrote: > Hi Arne, > > thanks for the improvements in the package. I'

Re: [R] Tobit Fixed Effects

2012-03-02 Thread Felipe Nunes
Hi Arne, thanks for the improvements in the package. I'm using it right now and it's working very well. Best, *Felipe Nunes* CAPES/Fulbright Fellow PhD Student Political Science - UCLA Web: felipenunes.bol.ucla.edu On Fri, Mar 2, 2012 at 2:13 AM, Arne Henningsen <

Re: [R] ggplot- using geom_point and geom_line at the same time

2012-01-16 Thread Felipe Carrillo
ne(lwd=0.8) g <- g + geom_point() g <- g + scale_x_continuous(name='Number of inputs') g <- g + scale_y_continuous('Conversion time (sec.)') Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA http

Re: [R] Select rows based on multiple comparisons

2012-01-16 Thread Felipe Nunes
Thanks, everybody! *Felipe Nunes* CAPES/Fulbright Fellow PhD Student Political Science - UCLA Web: felipenunes.bol.ucla.edu On Mon, Jan 16, 2012 at 2:33 PM, Marc Schwartz wrote: > > On Jan 16, 2012, at 4:13 PM, Felipe Nunes wrote: > > > Dear all, > > > > I have a

[R] Select rows based on multiple comparisons

2012-01-16 Thread Felipe Nunes
C 21 4 B 33 Thanks, *Felipe Nunes* CAPES/Fulbright Fellow PhD Student Political Science - UCLA Web: felipenunes.bol.ucla.edu [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] Averaging over data sets

2012-01-12 Thread Felipe Nunes
more than 2 observations. I do not know how to average them out. Any help? Below I provide a small example: Suppose Amelia provided two datasets: d1 <- data.frame(subject = c("Felipe", "John"), eat1 = 1:2, eat3 = 5:6, trt = c("t1", "t2")) d2 <-

[R] Bayesian Neural Networks

2011-12-09 Thread Felipe Bhering
I wanted to do a modelling like this, many variables, will simplificate for understanding y1 in [a1,b1] => (weight 1) => number 1.1 y2 in [a1,b1] => (weight 1) => number 1.2 y3 in [a1,b1] => (weight 1) => number 1.3 y4 in [a1,b1] => (weight 1) => number 1.4 y5 in [a1,b1] => (weight 2) => number 2

Re: [R] Group several variables and apply a function to the group

2011-12-04 Thread Felipe Carrillo
 Like this? library(plyr) ddply(df,.(comn,mi),summarise,stDEV=sd(x)) Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA http://www.fws.gov/redbluff/rbdd_jsmp.aspx From: Aurélien PHILIPPOT >To: R-help@r-project.org

Re: [R] factor level issue after subsetting

2011-11-01 Thread Felipe Carrillo
15    60 113.1 16    60 112.3"),header=T) dat  plot(dat$treat,dat$yield)  dat.sub <- subset(dat,treat!="cont");dat.sub  dat.sub <- droplevels(dat.sub)    # drop unwanted levels plot(dat.sub$treat,dat.sub$yield) Felipe D. Carrillo Supervisory Fishery Biologist Department of th

Re: [R] Tobit Fixed Effects

2011-10-01 Thread Felipe Nunes
Any good news Arne? *Felipe Nunes* CAPES/Fulbright Fellow PhD Student Political Science - UCLA Web: felipenunes.bol.ucla.edu On Thu, Sep 29, 2011 at 5:10 AM, Arne Henningsen < arne.henning...@googlemail.com> wrote: > Hi Felipe > > On 25 September 2011 00:16, Felipe Nunes wro

Re: [R] Tobit Fixed Effects

2011-09-24 Thread Felipe Nunes
ect number of dimensions thanks! *Felipe Nunes* CAPES/Fulbright Fellow PhD Student Political Science - UCLA Web: felipenunes.bol.ucla.edu On Sat, Sep 24, 2011 at 3:38 PM, Joshua Wiley wrote: > Can you fit a simpler model successfully? I would play around with > all your RHS variables to try

Re: [R] Tobit Fixed Effects

2011-09-24 Thread Felipe Nunes
you my data set, could you try to help me? I have been struggling with that for two months now. I hope you can help! Thanks, *Felipe Nunes* CAPES/Fulbright Fellow PhD Student Political Science - UCLA Web: felipenunes.bol.ucla.edu On Sun, Sep 18, 2011 at 9:42 AM, Felipe Nunes wrote: >

Re: [R] Tobit Fixed Effects

2011-09-18 Thread Felipe Nunes
Thanks! *Felipe Nunes* CAPES/Fulbright Fellow PhD Student Political Science - UCLA Web: felipenunes.bol.ucla.edu On Sun, Sep 18, 2011 at 2:19 AM, Arne Henningsen < arne.henning...@googlemail.com> wrote: > Hi Felipe > > On 18 September 2011 09:09, Felipe Nunes wrote: > >

Re: [R] Tobit Fixed Effects

2011-09-18 Thread Felipe Nunes
ers.cap.lag + pib.cap + ifdm + log(populat) + mayor.vot.per + bol.fam + factor(uf.name) + factor(year), left=0, right=Inf, method="BHHH", nGHQ=15, data = pdata) Error in maxNRCompute(fn = logLikAttr, fnOrig = fn, gradOrig = grad, hessOrig = hess, : NA in the initial gradient Thanks!

Re: [R] Tobit Fixed Effects

2011-09-17 Thread Felipe Nunes
Do you guys know how could I increase the time limit for the iterations in censReg? I'm receiving the following message whatever method I use: Newton-Raphson maximisation, 150 iterations Return code 4: Iteration limit exceeded. Log-likelihood: -67680.41 on 42 Df thanks, *Felipe Nunes*

Re: [R] Tobit Fixed Effects

2011-09-15 Thread Felipe Nunes
Hi Arne, I did both ways (pooled and pdata.frame), but in none I got a result. The coefficients are estimated, but not the std. errors. I'm using BFGS method, but I didn't increase the number of iterations yet. Let me try! Best, *Felipe Nunes* CAPES/Fulbright Fellow PhD Student

Re: [R] Tobit Fixed Effects

2011-09-15 Thread Felipe Nunes
model using the tobit function. I appreciate your help! *Felipe Nunes* CAPES/Fulbright Fellow PhD Student Political Science - UCLA Web: felipenunes.bol.ucla.edu On Thu, Sep 15, 2011 at 12:03 AM, Joshua Wiley wrote: > On Wed, Sep 14, 2011 at 11:56 PM, Daniel Malter wrote: > > Not

[R] Tobit Fixed Effects

2011-09-14 Thread Felipe Nunes
, and tobit but none of them were satisfactory. Thanks, *Felipe Nunes* CAPES/Fulbright Fellow PhD Student Political Science - UCLA Web: felipenunes.bol.ucla.edu [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

[R] Difference in function arima estimation between 2.11.1 and R 2.12.2

2011-09-12 Thread Luis Felipe Parra
likelihood = -3316.07, aic = 6658.13 and as you can see in the results some coefficients (for example ar2 and ar8) are different in the different R versions. does anybody know what might be going on. Was there any change in the arima function between the two versions? Thank you Felipe Parra

[R] Different results with arima in R 2.12.2 and R 2.11.1

2011-09-09 Thread Luis Felipe Parra
likelihood = -3316.07, aic = 6658.13 and as you can see in the results some coefficients (for example ar2 and ar8) are different in the different R versions. does anybody know what might be going on. Was there any change in the arima function between the two versions? Thank you Felipe Parra -- Este

Re: [R] Problems installing SJava

2011-08-17 Thread Luis Felipe Parra
Uggs, as I understand rJava is for calling Java from within R and what I need is to call R within Java. Am I wrong? 2011/8/17 Uwe Ligges > Are you sure "rJava" is not fine for you? > > Uwe Ligges > > > On 16.08.2011 17:16, Luis Felipe Parra wrote: > >> Hell

[R] Problems installing SJava

2011-08-16 Thread Luis Felipe Parra
. Or which is an easier way to install this package? My computer is on Window 7 professional (32 bits) Thank you Felipe Parra [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

[R] problems with predict in fGarch

2011-07-27 Thread Luis Felipe Parra
NA NA NA beta1 1.000e-08 NA NA NA --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Log Likelihood: 297.5401normalized: 2.438853 Thank you Felipe Parra [[alternative HTML version dele

[R] ARIMA simulations

2011-07-25 Thread Luis Felipe Parra
Hello, I have estimated an ARIMA model and I would like to make simulations from this estimated model 1,5 and 10 steps ahead. Does anybody know how to do this? Thank You Felipe Parra [[alternative HTML version deleted]] __ R-help@r

Re: [R] ggplot geom_boxplot vertical margins

2011-05-18 Thread Felipe Carrillo
Is this what you want? You can control how much space you want to see on the sides of the plot: df<-data.frame(x=factor(1:100),y=rnorm(1000)) ggplot(df,aes(x=x,y=y))+geom_boxplot() + scale_x_discrete(expand=c(0,0))   Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior

Re: [R] Summarize by two or more attributes

2011-05-17 Thread Felipe Carrillo
g a column to Df ddply(Df,c('Type','Bin'),mutate,Summed=sum(Rate))   # Convert the result to a list dlply(Df,c('Type','Bin'),summarise,Summed=sum(Rate))   Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wil

[R] Installing a Package tar.gz in windows

2011-05-12 Thread felipe beckedorff
ROR: compilation failed for package 'spp' * removing 'C:/Program Files/R/R-2.13.0/library/spp' Mensagens de aviso perdidas: 1: execução do comando 'C:/PROGRA~1/R/R-213~1.0/bin/x64/R CMD INSTALL -l "C:/Program Files/R/R-2.13.0/library" "D:/Felipe/

Re: [R] Problems saving an Object called by get

2011-04-26 Thread Luis Felipe Parra
Sorry David, I understand what you mean but could you help with how it would be done more specifically. Thanks On Wed, Apr 27, 2011 at 11:27 AM, David Winsemius wrote: > > On Apr 26, 2011, at 7:37 PM, Luis Felipe Parra wrote: > > Hello. I am trying to save an object which I c

[R] Problems saving an Object called by get

2011-04-26 Thread Luis Felipe Parra
\\Port_",NombreAlgoritmo,"\\",NombreAlgoritmo,"_Portafolio.Rdata",sep="")) but I am getting the following error: Error in save(get(paste(NombreAlgoritmo, "_Portafolio", sep = "")), file = paste(camino, : object 'get(paste(NombreAlgoritm

Re: [R] Matching a vector with a matrix row

2011-04-22 Thread Luis Felipe Parra
Hello Niels, I am trying to find the rows in Matrix which contain all of the elements in LHS. Thank you Felipe Parra On Fri, Apr 22, 2011 at 10:30 PM, Niels Richard Hansen < niels.r.hansen+li...@math.ku.dk> wrote: > Joshua and Luis > > Neither of you is exactly solving the pr

[R] Matching a vector with a matrix row

2011-04-21 Thread Luis Felipe Parra
ply(Matrix,1,function(x)all(x%in%LHS)) but this isn't too fast actually. I would like to know if any body knows an efficient (fast) way of doing this? The matrix contains stings (not numbers). Thank you Felipe Parra [[alternative HTML

[R] Memory allocation problem

2011-04-08 Thread Luis Felipe Parra
y.size() [1] 676.3 > memory.size(T) [1] 1124.69 > memory.limit() [1] 4000 which should in theory allow to have a vector of size 443.Mb. I am running it on a pc on windows, 4gb RAM and intel core i7 processor. Does anybody know what might be going on? Thank you Felipe Parra -- Este mensaje de corre

[R] predict fGarch doubt

2011-04-07 Thread Luis Felipe Parra
ots in the output? Thank you Felipe Parra [[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 a

[R] solveRsocp in fPortfolio

2011-04-05 Thread Luis Felipe Parra
g error: Error en .socp.phase1(f, A, b, N, control) : Phase 1 failed, alpha>=0 Does anybody knkow what might be going on? Is there any problem with this solver for negative weights? Thank you Felipe Parra [[alternative HTML version deleted]] _

[R] RmetricsTools.R

2011-04-03 Thread Luis Felipe Parra
ose it might be somewhere on R-Forge but I haven't been able to find it. Thank you Felipe Parra [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the postin

Re: [R] another question on shapefiles and geom_point in ggplot2

2011-04-03 Thread Felipe Carrillo
(manuel,region="id")   manuel_merged <- join(manuel_fort,manuel@data, by ="id") Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA http://www.fws.gov/redbluff/rbdd_jsmp.aspx > >F

Re: [R] another question on shapefiles and geom_point in ggplot2

2011-04-03 Thread Felipe Carrillo
 colours = rainbow(6), breaks = c(2, 4, 6, 8, 10, 12, 14, 16, 18, 20))+  xlab("Longitud") + ylab("Latitud") + opts(axis.text.x = theme_text(size = 8, vjust = 1)) +  opts(axis.text.y = theme_text(size = 8, hjust = 1))        Felipe D. Carrillo Supervisory Fishery Biologist

Re: [R] Rexcel path problem

2011-04-01 Thread Felipe Carrillo
WithRowNames:=False) Call rinterface.RRun("attach(scatter)") 'Run the RScatter script rinterface.RunRFile ThisWorkbook.Path & "\RScatter.r" Call rinterface.StopRServer End Sub I   Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wi

[R] Problems reading excel file with RODBC connect

2011-03-30 Thread Luis Felipe Parra
s an empty cell). From the third row onwards the actual data appears. The actual file has 473 columns but i am only getting R to read 255. I know files with to many missings can be troublesome. Is there a way to tell R how many colums to read? Or does anybody know how can I sort out this problem

[R] Problems installing fPortfolioSolver

2011-03-29 Thread Luis Felipe Parra
haven't been able to. Does anybody know what can I do to be able to use the package? thank you Felipe Parra [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do re

Re: [R] Installing a Package tar.gz in windows

2011-03-29 Thread Luis Felipe Parra
Brian and Duncan. Thank you for your help. What I actually am trying to install is fPortfolioSolver, and symphony is the only package I am missing in order to be able to complete the installation. Do you know by any chance what could I do about this? Thank you Felipe Parra On Tue, Mar 29, 2011

Re: [R] Installing a Package tar.gz in windows

2011-03-28 Thread Luis Felipe Parra
to recognize the command for me. It always tells me "R" it is an unrecognized command. I am new to all this about tar.gz files and running commands directly in the CMD windowf, so could you please be more specific with me. Thank you Felipe Parra On Mon, Mar 28, 2011 at 8:47 PM, Duncan Murd

Re: [R] Problems installing fPortfolioSolver

2011-03-28 Thread Luis Felipe Parra
Thank you. The problem is that I tryed to use the repository provided in R-forge and it didn't work. Do you know by any chance a repository where I could find this package? thank you 2011/3/28 Uwe Ligges > > > On 28.03.2011 15:58, Luis Felipe Parra wrote: > >> Hello,

[R] Problems installing fPortfolioSolver

2011-03-28 Thread Luis Felipe Parra
s=NULL) ERROR: dependencies 'fEcofin', 'RlpSolve', 'RlpSolveAPI', 'Rsymphony', 'Ripop', 'Rdonlp2' are not available for package 'fPortfolioSolver' * removing 'C:/Users/Hp/Documents/R/win-library/2.12/fPortfoli

Re: [R] Installing a Package tar.gz in windows

2011-03-28 Thread Luis Felipe Parra
quot; "fPortfolioSolver.tar.gz"' had status 1 2: In install.packages("fPortfolioSolver.tar.gz", type = "source", : installation of package 'fPortfolioSolver.tar.gz' had non-zero exit status > Do you know what might be going on or where I can find a manua

[R] Installing a Package tar.gz in windows

2011-03-28 Thread Luis Felipe Parra
Hello I have downloaded the fPortfolioSolver package from R-forge but I have not been able to install it. I don't know exactly where I should place the file and which commands to give R. Could somebody please help me with this. Thank you Felipe Parra [[alternative HTML version de

[R] portfolioBacktest in fPortfolio

2011-03-27 Thread Luis Felipe Parra
Hello. I am trying to use the portfolio backtesting function in fPortfolio package, but I don't now why in my version of fPortfolio I don't have either the portfolioBactest nor the portfolioBacktesting functions. Does anybody knows what might be going on? thank you Fe

Re: [R] Tinn-R looses connection to R (Windows Vista)

2011-03-26 Thread Felipe Carrillo
Nutter, Benjamin ccf.org> writes: I've noticed it, but I haven't looked into it much since I rarely work on Vista. I have found that opening R before I open Tinn-R tends to work better than using Tinn-R to open the preferred GUI. Benjamin -Original Message- From: r-help-boun

[R] Problems with predict in fGarch

2011-03-24 Thread Luis Felipe Parra
ing the following error: Error en optim(init[mask], armafn, method = optim.method, hessian = TRUE, : non-finite finite-difference value [1] does anybody know what might be going on? Thank you Felipe Parra [[alternative HTML version deleted]] ___

[R] trunc function

2011-03-09 Thread Luis Felipe Parra
places to have as ouput 0.974. Thank you Felipe Parra [[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

[R] Problems with a function warning

2011-03-03 Thread Luis Felipe Parra
the function twice before the warning or the error message appear. I dont know why if I just run the function once none of them appear. Does any body know what can be going on? Thank you Felipe Parra [[alternative HTML version deleted]] __ R-he

[R] Difference in numeric Dates between Excel and R

2011-03-01 Thread Luis Felipe Parra
2011-3-4")-as.Date("1900-1-1") Time difference of 40604 days but if I do the same operation in Excel the answer is 40605. Does anybody know what can be going on? Thank you Felipe Parra [[alternative HTML version deleted]] __ R-hel

[R] Transforming list into an array

2011-02-27 Thread Luis Felipe Parra
anybody does how to do this? or how to generate directly and array composed of independent random nomrmal numbers of dimensions Ncurvas x 3 x NumSim. Thank you Felipe Parra [[alternative HTML version deleted]] __ R-help@r-project.org mailing

[R] Nested logit

2011-02-23 Thread Luis Felipe Parra
Hello. Does anybody know how to estimate nested logit models in R? I know that the package mlogit does it, but It doesn´t report the logsum parameters. I would like to have the logsum parameters, and the elasticites if possible. Thank you Felipe Parra [[alternative HTML version deleted

[R] sem problem - did not converge

2011-02-14 Thread Felipe Bhering
Someone can help me? I tried several things and always don't converge I am making a confirmatory factor analysis model. # Model library(sem) dados40.cov <- cov(dados40,method="spearman") model.dados40 <- specify.model() F1 -> Item11, lam11, NA F1 -> Item31, lam31, NA F1 -> Item36, lam36, NA F1

[R] sem problem - did not converge

2011-02-14 Thread Felipe Bhering
Someone can help me? I tried several things and always don't converge I am making a confirmatory factor analysis. # Model library(sem) dados40.cov <- cov(dados40,method="spearman") model.dados40 <- specify.model() F1 -> Item11, lam11, NA F1 -> Item31, lam31, NA F1 -> Item36, lam36, NA F1 -> I

  1   2   3   4   >