[R] Free financial data - equities, equity options and ETFs - for quantmod package (or other packages)

2019-04-02 Thread H
I am relatively new to analyzing financial data but have some experience with R. I understand that the data available from Yahoo Finance via its API is often questionable in quality and Google Finance is no longer available. Although Googling pointed me to some other sources such as Quandl etc.,

Re: [R] Free financial data - equities, equity options and ETFs - for quantmod package (or other packages)

2019-04-03 Thread H
On 04/03/2019 03:12 AM, Eric Berger wrote: > You might want to post this to the group R-Sig-Finance > https://stat.ethz.ch/mailman/listinfo/r-sig-finance  > >  and also check their archives > > > On Wed, Apr 3, 2019 at 1:11 AM H <mailto:age...@meddatainc.com>> wrot

[R] R SIG mailing lists

2019-04-04 Thread H
Are there any SIGs for the use of R in healthcare or in genomics or biology? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] R SIG mailing lists

2019-04-05 Thread H
> Bert Gunter > > "The trouble with having an open mind is that people keep coming along and > sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Thu, Apr 4, 2019 at 8:34 PM H <ma

Re: [R] [R-pkgs] salesforcer v0.2.2: An Implementation of Salesforce APIs Using Tidy Principles

2020-09-15 Thread H
On September 13, 2020 6:42:18 AM EDT, "Steven M. Mortimer" wrote: >The {salesforcer} package allows users to query and analyze Salesforce >data >and administer their Org's records and object metadata (fields, >triggers, >layouts). It has been three years in the making to map multiple >Salesforce

[R] Mapping 2D to 3D

2020-09-17 Thread H
I am trying to understand how to map 2D to 3D using ggplot() and eventually plot_gg(). I am, however, stuck on understanding how to express the third variable to be mapped. This example: ggdiamonds = ggplot(diamonds, aes(x, depth)) + stat_density_2d(aes(fill = stat(nlevel)), geom = "polygon", n

Re: [R] Mapping 2D to 3D

2020-09-18 Thread H
On 09/18/2020 02:26 AM, Jeff Newmiller wrote: > No, but fortunately you are off in the weeds. Density has an > internally-computed "z" coordinate... you should be looking at ?geom_contour. > > On September 17, 2020 7:17:33 PM PDT, H wrote: >> I am trying to understa

Re: [R] Mapping 2D to 3D

2020-09-18 Thread H
s/32206623/what-does-level-mean-in-ggplotstat-density2d > > Kind Regards, > Carlos. > > > On Fri, Sep 18, 2020 at 4:17 AM H <mailto:age...@meddatainc.com>> wrote: > > I am trying to understand how to map 2D to 3D using ggplot() and > eventually plot_gg(). I am

Re: [R] Mapping 2D to 3D

2020-09-19 Thread H
t; theory of kernel density estimates, which is off topic here. (Technically > contributed packages like ggplot2 are off topic here also, though sometimes > people will answer questions about them anyway.) > > On September 18, 2020 6:34:43 PM PDT, H wrote: >> On 09/18/2020

Re: [R] Mapping 2D to 3D

2020-09-20 Thread H
On 09/19/2020 04:33 PM, Abby Spurdle wrote: >> Understood > I'd recommend you try to be more precise. > >> I just began looking at the volcano dataset which uses geom_contour. > The volcano dataset does *not* use geom_contour. > However, the help file for the volcano dataset, does use the > filled.

[R] FREDR and R 3.6

2020-10-29 Thread H
I tried to install the fredr package yesterday to access the data series hosted by the St. Louis Fed but my installation of R, version 3.6, tells me it is not available from a cran repository. I could not find any information on this on the fredr information package and was wondering if anyone

Re: [R] FREDR and R 3.6

2020-10-29 Thread H
On 10/29/2020 01:49 PM, Marc Schwartz wrote: >> On Oct 29, 2020, at 1:29 PM, H wrote: >> >> I tried to install the fredr package yesterday to access the data series >> hosted by the St. Louis Fed but my installation of R, version 3.6, tells me >> it is not av

Re: [R] FREDR and R 3.6

2020-10-29 Thread H
On 10/29/2020 07:20 PM, Marc Schwartz wrote: >> On Oct 29, 2020, at 6:35 PM, H wrote: >> >> On 10/29/2020 01:49 PM, Marc Schwartz wrote: >>>> On Oct 29, 2020, at 1:29 PM, H wrote: >>>> >>>> I tried to install the fredr package yesterday to ac

Re: [R] FREDR and R 3.6

2020-10-30 Thread H
On 10/30/2020 03:52 AM, Enrico Schumann wrote: > On Thu, 29 Oct 2020, H writes: > >> I tried to install the fredr package yesterday to >> access the data series hosted by the St. Louis Fed but >> my installation of R, version 3.6, tells me it is not >> available f

[R] Markov modeling using msm

2021-08-07 Thread H
I would like to use R and msm to replicate the results from a published study where the authors used Tree Age Pro 2011 for their Markov modeling. I am new to Markov modeling and while I have tried to read up, my understanding is still quite limited... The papers contains the the state transitio

Re: [R] Markov modeling using msm

2021-08-08 Thread H
ed-with-markov-chains/ > > > Hope this helps, > > Rui Barradas > > Às 02:21 de 08/08/21, H escreveu: >> I would like to use R and msm to replicate the results from a published >> study where the authors used Tree Age Pro 2011 for their Markov modeling. I >> am

[R] Problem with plotmat package

2021-09-15 Thread H
I am using plotmat 1.6.5 (part of the diagram package) in R 3.6 to plot Markov transition charts but have run into an issue that I was hoping someone could shed light on here. I did e-mail the maintainer over a month ago but have not received a reply. The issue is that the directional arrows po

Re: [R] Problem with plotmat package

2021-09-16 Thread H
On 09/15/2021 09:40 PM, Jim Lemon wrote: > Oops, your plot > > On Thu, Sep 16, 2021 at 11:39 AM Jim Lemon wrote: >> Hi H, >> Looking at your example and the help page, it looks to me as though >> the plot is consistent with the "A" matrix: >> >> O

Re: [R] Problem with plotmat package

2021-09-16 Thread H
On 09/16/2021 09:00 PM, Jim Lemon wrote: > Okay, that was just my reading of the help page. I hope that I haven't > added to the confusion. > > Jim > > On Fri, Sep 17, 2021 at 10:50 AM H wrote: >> On 09/15/2021 09:40 PM, Jim Lemon wrote: >>> Oops, your plot

Re: [R] Problem with plotmat package

2021-09-16 Thread H
On 09/16/2021 09:26 PM, H wrote: > On 09/16/2021 09:00 PM, Jim Lemon wrote: >> Okay, that was just my reading of the help page. I hope that I haven't >> added to the confusion. >> >> Jim >> >> On Fri, Sep 17, 2021 at 10:50 AM H wrote: >>> On

[R] Extracting data from list of lists of dataframes

2020-05-27 Thread H
I am a newcomer to R and have been struggling with the following problem: I have a list1(1:N) containing a list2(1:2) each containing dataframes with the same column names but different number of rows. Both lists are named and the rows and the columns in the dataframe are named. I then would lik

[R] Help with read.csv.sql()

2020-07-17 Thread H
I have created a dataframe with columns that are characters, integers and numeric and with column names assigned by me. I am using read.csv.sql() to read portions of a number of large csv files into this dataframe, each csv file having a header row with columb names. The problem I am having is

Re: [R] Help with read.csv.sql()

2020-07-18 Thread H
nter > > "The trouble with having an open mind is that people keep coming along and > sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Fri, Jul 17, 2020 at 6:28 PM H <mailto:age...@meddatainc.com>>

Re: [R] Help with read.csv.sql()

2020-07-18 Thread H
d to change. > Then the function would return this final object. > > Rui Barradas > > Às 16:43 de 18/07/2020, H escreveu: > >> On 07/17/2020 09:49 PM, Bert Gunter wrote: >>> Is there some reason that you can't make the changes to the data frame >>>

Re: [R] Help with read.csv.sql()

2020-07-19 Thread H
-NA-quot-for-missing-td4642327.html > > Otherwise you can try reading through the FAQ on Github: > > https://github.com/ggrothendieck/sqldf > > HTH, Bill. > > W. Michels, Ph.D. > > > > On Sat, Jul 18, 2020 at 9:59 AM H wrote: >> On 07/18/2020 11:54 AM, Rui B

Re: [R] Help with read.csv.sql()

2020-07-20 Thread H
On 07/18/2020 11:42 PM, Rasmus Liland wrote: > On 2020-07-18 18:09 +0100, Rui Barradas wrote: > | �s 17:59 de 18/07/2020, H escreveu: > | | On Fri, Jul 17, 2020 at 6:28 PM H wrote: > | | | > | | | The problem I am having is that > | | | the csv files have header rows > |

[R] Arranging ggplot2 objects with ggplotGrob()

2020-07-23 Thread H
I am trying to arrange two plots vertically, ie plot 2 below plot 1, where I want the plots to align columnwise but have a height ratio of eg 3:1. My attempts so far after consulting various webpages is that the following code aligns them columnwise correctly but I have, so far, failed in settin

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

2020-07-24 Thread H
-great-r-reproducible-example > > On Fri, 24 Jul 2020 at 01:16, H <mailto:age...@meddatainc.com>> wrote: > > I am trying to arrange two plots vertically, ie plot 2 below plot 1, > where I want the plots to align columnwise but have a height ratio of eg 3:1. > > M

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

2020-07-24 Thread H
On 07/24/2020 05:29 AM, Erich Subscriptions wrote: > Hav a look at the packages cowplot and patchwork > >> On 24.07.2020, at 02:36, H wrote: >> >> I am trying to arrange two plots vertically, ie plot 2 below plot 1, where I >> want the plots to align columnwise but

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

2020-07-24 Thread H
plots are   and we > cannot play around with them to see if we can help you if we have nothing to > work with. > > On Fri, 24 Jul 2020 at 12:12, H <mailto:age...@meddatainc.com>> wrote: > > On 07/24/2020 05:29 AM, Erich Subscriptions wrote: > >

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

2020-07-24 Thread H
trouble with. > > On July 24, 2020 10:46:57 AM PDT, H wrote: >> On 07/24/2020 01:14 PM, John Kane wrote: >>> Well, I am not looking for help debugging my code but for >> information to better understand arranging plots vertically. The code >> above aligns them horizon

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

2020-07-24 Thread H
On 07/24/2020 02:50 PM, 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 is rather larger than the set of people willing to read >> the documentation for you (hint) and

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

2020-07-25 Thread H
v <- ggplot(data = subset(iris, Species == 'setosa'), aes(Sepal.Length, > Sepal.Width)) + geom_point() > > #g2 <- ggplotGrob(s) > #g3 <- ggplotGrob(v) > #g <- rbind(g2, g3, size = "first") > > cowplot::plot_grid(s, v, align = "h", nrow

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

2020-07-25 Thread H
On 07/25/2020 12:36 PM, Rui Barradas wrote: > Hello, > > Inline. > > Às 16:54 de 25/07/2020, H escreveu: >> On 07/24/2020 05:56 PM, Rui Barradas wrote: >>> Hello, >>> >>> I've just tried it. >>> >>> library(ggplot2) >>

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

2020-07-25 Thread H
6_2.4.1 rlang_0.4.6 fansi_0.4.1 >  [9] tools_4.0.2  grid_4.0.2   gtable_0.3.0 utf8_1.1.4 > [13] cli_2.0.2    withr_2.2.0  ellipsis_0.3.1 digest_0.6.25 > [17] assertthat_0.2.1 tibble_3.0.1 lifecycle_0.2.0 crayon_1.3.4 > [21] farver_2.0.3 purrr_0.3.4  vctrs_0.3.1 glue_1

[R] Modifying dataframe with mutate()

2020-07-25 Thread H
In a statement like: df %>% mutate(v1 = as.double(v1)) I expect the variable v1 in dataframe df to have been converted into a double. However, when I do: str(df) v1 still shows as int. Do I need to save the modified dataframe after mutating a variable? ___

Re: [R] Modifying dataframe with mutate()

2020-07-25 Thread H
>>> >>> If you want your df variable to reflect changes made then you need >> to >>> assign your result back into it. >>> >>> df <- df %>% mutate(v1 = as.double(v1)) >>> >>> (Note that the data.table package violates thi

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

2020-07-26 Thread H
On 07/25/2020 03:05 PM, H wrote: > On 07/25/2020 03:01 PM, Rui Barradas wrote: >> Hello, >> >> OK, now it's reproducible, thanks. >> align = "hv" works like I had suggested. >> >> The full code is now >> >> library(ggplot2)

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

2020-07-28 Thread H
to resort to the underlying grid framework rather >> than the ggplot2 interface. >> >> Bert Gunter >> >> "The trouble with having an open mind is that people keep coming along and >> sticking things into it." >> -- Opus (aka Berkeley Breathed in his "Blo

Re: [R] Help with read.csv.sql()

2020-07-30 Thread H
416.0 > 5 515.6 > 6 719.8 > > On Fri, Jul 17, 2020 at 9:28 PM H wrote: >> I have created a dataframe with columns that are characters, integers and >> numeric and with column names assigned by me. I am using read.csv.sql() to >> read portions

[R] executing rscript from VB

2009-09-10 Thread H Rao
Hi, I am looking to execute an R script from VB as below. The script runs fine but the redirection doesnt seem to happen. The redirection operator and the out file seem to be treated as arguments to the R script. Is there a way to get the > operator working thanks, R System.Diagnostics.Process p

[R] packaging R

2009-10-14 Thread H Rao
so that just installing the application should take care of everything. Is this something which is possible with R H. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] packaging R

2009-10-15 Thread H Rao
I can license the application under GPL On Wed, Oct 14, 2009 at 6:47 PM, Duncan Murdoch wrote: > On 14/10/2009 6:35 PM, H Rao wrote: > >> Hi, >> >> I am planning to use R as the backend in my application and VB as the >> front >> end. I want to be ab

[R] dyn.load a package for dev purposes?

2009-05-07 Thread Tom H
Hi, I don't seem to be able to get a package to detach and reload in my debugging R session once I have already loaded it. R CMD REMOVE -l /usr/lib64/R/library quantmod R CMD build /home/user1/eclipse/workspace/quantmod/; R CMD INSTALL -l /usr/lib64/R/library quantmod_0.3-7.tar.gz in R... de

[R] caching of the .Rprofile file

2009-05-08 Thread Tom H
Hi, It seems that if I make a change to the .Rprofile file in my working directory, it is not immediately reflected when the session is restarted. (I am using statET and rJava) Is that something I should expect? Thanks, #T __ R-help@r-project.org mai

[R] need help

2009-05-15 Thread H Z
Dear all please ,I need to write a function in R to estimate the parameters of negative binomial distribution and then calculate the loglikelihood amount for given data.Is there any one to help me. thank you very much for any help Best regards [[alternative HTML version deleted

[R] filling area under a function line

2009-05-24 Thread Tom H
Hi R collective, I quite like the "curve" function because you can chuck a R function into it, and see the graph in one line of R. I had a google and found some threads for filling under the line; http://tolstoy.newcastle.edu.au/R/e2/help/07/09/25457.html However they seem to miss the point of

Re: [R] filling area under a function line

2009-05-24 Thread Tom H
On Sun, 2009-05-24 at 19:32 +0100, Tom H wrote: > polygon( > c(from, x, to), > c(min(y),y,min(y)), > col=areacol, lty=0 > ) > I guess my question should have been, I don't seem to be ab

[R] C++ to R : 64bit to 32bit problem.

2009-06-02 Thread H c
Hi, I'm new to calling C++/C programs from R and am having some trouble getting started. Following Sigal Blay (Simon Fraser University)'s instructions, I have a .c file called "useC1.c": /* useC1.c*/ void useC(int *i) { i[0] = 11; } This produces a .o file : "useC1.o" in a

Re: [R] Most used R editors

2009-06-02 Thread Tom H
On Tue, 2009-06-02 at 07:06 +, Martial Sankar wrote: > Hi, > > I am a little lonely as R users in my group. So, I would like to know which > editor is the most used in the R community. > This post is some kind of survey. Hi, I have been enjoying using statET - http://www.walware.de/goto/st

[R] off topic -- publicly available datasets for opinions on the death penalty in the UK

2009-05-01 Thread Tom H
Hi, Apologies in advance for a question that's not directly related to R. I had a quick google, and didn't find any nicely formatted datasets that I could use for a quick idea I have. I was wondering whether anyone could point me towards a source of data for UK death penalty opinion. I guess th

[R] NLMINB() produces NaN!

2009-05-06 Thread H c
I am having the same problem as one Rebecca Sela(see bellow). On 21/12/2007 12:07 AM, Rebecca Sela wrote: >* I am trying to optimize a likelihood function using NLMINB. After running >without a problem for quite a few iterations (enough that my intermediate >output extends further than I can s

Re: [R] Using read.table for importing gz file

2019-08-11 Thread J H
Unsubscribe On Sat, 10 Aug 2019 at 20:30, Spencer Brackett < spbracket...@saintjosephhs.com> wrote: > Hello, > > I am trying to read the following Xena dataset into R for data analysis: > > https://tcga.xenahubs.net/download/TCGA.GBMLGG.sampleMap/HumanMethylation450.gz > > I tried to run the foll

[R] read.csv fails in R console in Ubuntu terminal but works in RStudio after R 3.6.3 upgrade to R 4.0.2?

2020-07-15 Thread Sam H
Hi, I am trying to download some data using read.csv and it works perfectly in RStudio and fails in the R console in the terminal in Ubuntu 18.04 after upgrading from R 3.6.3 to 4.0.2. Before upgrading this worked in the R console in the terminal also without any issues. Why would that be? How to

Re: [R] [External] Re: read.csv fails in R console in Ubuntu terminal but works in RStudio after R 3.6.3 upgrade to R 4.0.2?

2020-07-17 Thread Sam H
t; Enviado a partir do meu smartphone Samsung Galaxy. > Mensagem original > De: luke-tier...@uiowa.edu > Data: 17/07/2020 02:59 (GMT+00:00) > Para: Ista Zahn > Cc: Rui Barradas , r-help@r-project.org, Sam H < > sam.h...@gmail.com> > Assunto: Re: [External] Re

Re: [R] [External] Re: read.csv fails in R console in Ubuntu terminal but works in RStudio after R 3.6.3 upgrade to R 4.0.2?

2020-07-18 Thread Sam H
This issue was now solved in TTR::stockSymbols() by package author https://github.com/joshuaulrich/TTR/commit/98dec2b5aa68c3cee750397c7d11b164895e0140 Thanks for all the help and ideas. Best, Sam On Fri, Jul 17, 2020, 13:54 Sam H wrote: > Hello, > > Thank you very much to you all to

[R] fPortfolio-portfolio optimization

2013-01-06 Thread Darius H
Hello everyone, I have been spending many hours on a seemingly simple portfolio optimization problem using the package fPortfolio. My optimization problem is slightly different than a standard one such that I have a known set of asset returns. My problem is how to collect this information int

[R] Using R commander within R Studio (Mac)

2013-04-15 Thread h moore
Hi. I am a R studio user and would like to use RCommander within R studio. Each time I try to install and use Rcommander, I see the following message: Loading Tcl/Tk interface ... Error : .onLoad failed in loadNamespace() for 'tcltk', details: call: dyn.load(file, DLLpath = DLLpath, ...) erro

[R] Differencing with auto.arima and xreg

2010-07-06 Thread Kim H
I am having some issues with differencing using auto.arima when also specifying an xreg dataframe. The xreg dataframe contains dummy variables that specify time periods that had a promotion running. When I model diff(y) with order (1,0,1), the coefficients for these dummy variables are very diff

[R] date from weeknumber

2010-07-20 Thread H Rao
Hi, Is there a function to get the last(or first) day of the week, given the week number of the year? For eg, week number for 7/20 is 29 as obtained by format(Sys.Date(),"%U"), is there a function which returns 7/25 - the last day of week # 29 TIA, Rao. [[alternative HTML version delete

[R] class "matrix" lost when extracting a row from matrix

2010-09-19 Thread h...@wiseadvice.eu
Good morning experts! situation: class(myMatrix)="matrix" class(myMatrix[(1:2),]))="matrix" class(myMatrix[1,])= "character" consequences are far reaching as, for instance colnames(myMatrix[(1:2),]) != colnames(myMatrix[1,]) or names(myMatrix[(1:2),]) != names(myMatrix[1,]) My question: 1.

[R] How does the data.frame function generate column names?

2011-01-23 Thread H Roark
Hi all, I'm a new R user and am confused about how R behaves when converting a vector to a data frame when using the data.frame function. I'm specifically interested in cases where the vector is expressed as a subset of another data frame. For example, say I want to create a data frame from

[R] Dataframe horizontal scrolling

2010-05-10 Thread Michael H
R experts, I am working with large multivariable data frames (> 50 variables) and I would like to scroll horizontally across my output to view each data frame rather than having to scroll down vertically- wrapped data frames.I have been using R Commander as a programming interface. If I assign

[R] How to extract rows from data frame based on unique variable groupings

2010-05-20 Thread Michael H
R community, I would like to know how to extract rows from a data frame (DF) such that each row in the new data frame (D.F) represents the first instance of a unique variable pairing in the original dataframe (ordered first by variable V1 then by variable V2). The unique function does not se

[R] read.table() versus scan()

2011-01-27 Thread H Roark
I need to import a large number of simple, space-delimited text files with a few columns of data each. The one quirk is that some rows are missing data and some contain junk text at the end of each line. A typical file might look like: a b c d 1 2 3 x 4 5 6 7 8 9 x 1 2 3 x c c 4 5 6 x 7 8 9 x

[R] Efficient way to determine if a data frame has missing observations

2011-02-02 Thread H Roark
I have a data set covering a large number of cities with values for characteristics such as land area, population, and employment. The problem I have is that some cities lack observations for some of the characteristics and I'd like a quick way to determine which cities have missing data. For

[R] Merging by factor variables

2011-02-02 Thread H Roark
I'm wondering about the behavior of the merge function when using factors as by variables. I know that when you combine two factors using c() the results can be odd, as in: c(factor(1:5),factor(6:10)) which prints: [1] 1 2 3 4 5 1 2 3 4 5 I presume this is because factors are actually stored

Re: [R] Efficient way of creating a shifted (lagged) variable?

2011-08-04 Thread Ken H
Hey all, Correct me if I'm wrong but, the 'stats' package has a lag() function like so lagged.series=lag(series,number of lags wanted) Furthermore, I am pretty sure that lag( ) accepts negative lags:=> leads. lag(x,1)=> object of one lag, lag(x,-1) object with one lead

Re: [R] Loop: noob question

2011-08-05 Thread Ken H
Hey, no problem! We all have to start somewhere, welcome to R! The structure of the for loop is as follows: First lets define the number you want, say >vector.size = 10 First allocate an empty vector to store the results, you could do this like so > V95.Vector<-c() But I recommend you do

Re: [R] Loop: noob question

2011-08-05 Thread Ken H
R is pretty good if you're into that kind of thing... Did not know about the data manipulation or graphics books, I'll definitely be checking those out. Thanks for the info, Ken On Fri, Aug 5, 2011 at 1:16 PM, Joshua Wiley wrote: > On Fri, Aug 5, 2011 at 9:20 AM, Ken

[R] AIC or AICc for a system of equations

2011-08-14 Thread Darius H
Hi all, does anyone know of a function that would calculate AIC or AICc for a system of equations. I have several systems and I have individual AIC values but I need a global one to assess amongst several systems of equations. The systems are very similar to, but not exactly like VAR groups of

[R] predict() function on a list made up of a system of equations

2011-08-14 Thread Darius H
Hi everyone, Does anyone know how I can use the predict() function or anything similar in a various packages to forecast future values of a system of equations in a list? I keep getting an error message when I try to use the predict function and I cannot find anything on the help arc

[R] Writing multiple regression in one function

2011-08-02 Thread Darius H
Hello all, I am newbie to R and have not been able to find too much stuff on a version of VAR(p) I am working on. Would someone be able to tell me if there is a more elegant way of writing A function for the following? Many thanks in advance. Darius I am regressing returns of 8 asset classes

[R] Binary ARMA

2011-11-14 Thread Napon H.
) } mle<-optim(c(0,0,0),logitfun,y=y) mle summary(mle) what i tring to do is to modified "ne<-zeta1+zeta2*lag(y,-1)+zeta3*lag(y,-2)" How can i do "ne" with lag(y,-1) , lag(y,-2), (lag(y,-1)-lag(mu,-1)), (lag(y,-2)-lag(mu,-2)) thanks Napon H. -- View this message in

[R] rolling regression

2011-10-02 Thread Darius H
Dear all, I have spent the last few days on a seemingly simple and previously documented rolling regression. I have a 60 year data set organized in a ts matrix. The matrix has 5 columns; cash_ret, epy1, ism1, spread1, unemp1 I have been able to come up with the following based on previous hel

Re: [R] rolling regression

2011-10-03 Thread Darius H
t variables) > > Michael Weylandt > > On Sun, Oct 2, 2011 at 11:41 PM, Darius H wrote: > > > > Dear all, > > > > I have spent the last few days on a seemingly simple and previously > > documented rolling regression. > > > > I have a 60 yea

Re: [R] rolling regression

2011-10-05 Thread Darius H
Hello everyone, I would like assistance with updating a snippet I have written to do a recursive out-of-sample portfolio optimization. The trouble I am having is with the fact that the return on the riskless asset is time varying and so is different in each period. This is what I have writt

[R] Rolling optimization

2011-10-10 Thread Darius H
Hello everyone, I would like assistance with a snippet I have written to do a recursive portfolio optimization given time-varying return forecasts. In my case, I have forecast the monthly returns for nearly 55 years out on 8 asset classes. I need to calculate the weights for the optimal (

[R] Reading Genepop files

2008-01-21 Thread H. Skaug
Dear list, Does there exist R routines for reading output files from Genepop? (GENEPOP is a population genetics software package by Raymond & Rousset; http://genepop.curtin.edu.au/ ) I find several R packages that contain function for writing Genepop input files, but non that does the reverse.

Re: [R] Reading Genepop files

2008-01-22 Thread H. Skaug
enepop.html > > On 21/01/2008, H. Skaug <[EMAIL PROTECTED]> wrote: > > Dear list, > > > > Does there exist R routines for reading output files from Genepop? > > > > (GENEPOP is a population genetics software package by Raymond & Rousset; > >

[R] weighted-ML estimates

2009-02-13 Thread H c
Hi, We are trying to calculate ML-parameter estimates of a mixed effects models where the observations are weighted. The "weights" option in lmer() with RELM=FALSE seems attractive. Does anyone know the mechanism it uses to calculate weighted ML estimates? (Is there a paper?). Also, our model i

Re: [R] Custom Plot - means, SD & 5th-95th% (Plotmeans or Boxplot)

2008-02-17 Thread h . wickham
It's fairly simple to set up something like this for ggplot2: install.packages("ggplot2") library(ggplot2) library(ggplot2) q5 <- function(data) { q <- function(p) unname(quantile(data$y, p)) data.frame(min = q(0.05), max = q(0.95)) } ggplot(diamonds, aes(x = cut, y = price)) + stat_summary(f

Re: [R] main title x title and y title with ggplot2

2008-03-05 Thread h . wickham
> I had the same problem and found a solution in some forums. Try this: > > p<-ggplot(data, aes(x,y,fill)) + geom_point() + scale_x_continuous("your > xlabel") + scale_y_continuous("your ylabel") The new (more ggplot-like way) is to do: ggplot(data, aes(x,y,fill)) + ... + opts(title = "my title")

[R] negative binomial lmer

2007-11-15 Thread H. Skaug
If lmer() does not do it, you can try: http://otter-rsch.com/admbre/examples/glmmadmb/glmmADMB.html It handles negative binomial responce (but you may have to remove data entries involving NA manually). Regards, hans >Hi >I am running an lmer which works fine with family=poisson > >mixed.mode

[R] detecting if a variable has changed

2016-06-05 Thread Neal H. Walfield
Hi, I have a huge list. Normally it is sorted, but I want to be able to add elements to it without having to use any special interfaces and then sort it on demand. My idea is to use something like weak references combined with attributes. Consider: # Initialization. l = as.list(1:10) # N

Re: [R] detecting if a variable has changed

2016-06-05 Thread Neal H. Walfield
RUE > > > > x$getData() > > > [1] 1 2 4 5 8 9 > > > > x > > > Reference class object of class "sortedNumeric" > > > Field "fData": > > > [1

Re: [R] detecting if a variable has changed

2016-06-05 Thread Neal H. Walfield
TRUE > > } > > )) > > > > Use it as: > > > >> x <- SortedNumeric$new() > >> x$appendData(c(4,2,5)) > >> x$appendData(c(1,8,9)) > >> x > > Reference class object of class "sortedNumeric" > >

[R] %in% with matrix of lists

2016-07-30 Thread Neal H. Walfield
I have a matrix of lists. Something along the lists of (but much bigger than): x = array(dim=c(2, 2), data=list()) x[1,1] = list(1:5) x[2,1] = list(6:9) x[1,2] = list(10:13) x[2,2] = list(14:16) Each list contains a number of observations/ground truth for a particular state. That is,

Re: [R] %in% with matrix of lists

2016-07-30 Thread Neal H. Walfield
On Sat, 30 Jul 2016 19:28:42 +0200, Bert Gunter wrote: > Bottom line: No, I dont see any vectorized way to do this. > > However, the following may offer some slight improvement over your approach. > > 1. Why do you need to store these as arrays, which are merely vectors > with a "dim" attribute?

Re: [R] %in% with matrix of lists

2016-07-30 Thread Neal H. Walfield
On Sat, 30 Jul 2016 20:35:40 +0200, Jeff Newmiller wrote: > > >> [1] TRUE FALSE TRUE FALSE ## NOT c(T,F,T,F) > > > >I'm not sure what you mean by NOT here. You get the same answer as I > >do, as far as I can see. > > > > # valid R > T <- FALSE > # invalid R > TRUE <- FALSE > > It is much muc

[R] Lemmatization with WORDNET package

2016-08-22 Thread BHANUMATHI H M
uot; $`1`$children NULL $`1`$playing [1] "playing" $`1`$playground [1] "playground" $`1`$The [1] "the absurd" $`1`$cars [1] "carson" $`1`$landing [1] "landing" $`1`$avenue [1] "avenue" I also tried by applying other POS and ty

Re: [R] Library(mice) too slow for my dataset

2014-08-05 Thread Arne H . Schulz
Dear Teresa, using such services will only speed up the imputations significantly if you can split up/parallelize your code. And maybe you can use more cores on your local machine by using packages like doSNOW, foreach and/or plyr. There are a lot of examples on the web. Kind regards Arne

[R] Evaluation of global variables in function definitions

2014-10-07 Thread H. Dieter Wilhelm
Hello (), I'd like to do the following a <- 3 f1 <- function (x){ a*x^2 } a <- 5 f2 <- function (x){ a*x^2 } plotting f1, f2, ... but f1 and f2 are the same, how can I evaluated the variables in the function definition? Thank you Dieter -- Best wishes H. Dieter

[R] write.table produces a file that read.table can't read

2014-10-08 Thread Neal H. Walfield
Hi, I'm using R version 3.1.1 on Debian via the CRAN repositories. Consider the following MWE that writes a data.frame out to a file and reads it back in (note that one of the strings contains a double quote): > write.table(data.frame(a=1:3, b=c("a", "b\"b", "c")), '/tmp/a', row.names=FALSE,

Re: [R] Evaluation of global variables in function definitions

2014-10-08 Thread H. Dieter Wilhelm
Duncan Murdoch writes: > On 07/10/2014 2:45 AM, H. Dieter Wilhelm wrote: >> Hello (), >> >> I'd like to do the following >> >> a <- 3 >> f1 <- function (x){ >> a*x^2 >> } >> >> a <- 5 >> f2 <- function (x){

[R] ubuntu and rgl package vs suse ?? static plots

2008-07-17 Thread H. Paul Benton
Hello all, I've switched over my OS to ubuntu from Suse 10.3. In suse I was able to load up the 'rgl' library in R and then move my plots around after I had plotted them. Which I assumed was part of the openGL. However, since switching to ubuntu I am unable to 'move' my plot around, they are j

Re: [R] ubuntu and rgl package vs suse ?? static plots

2008-07-17 Thread H. Paul Benton
This is really odd. Because in Suse I could have compiz on and still have rotating rgl plots. I did have kde in suse and now gnome in ubuntu but I wouldn't have thought that would make the difference. It must be a ubuntu thing. Very odd. Paul Duncan Murdoch wrote: On 7/17/2008 2:54

[R] incrementing for loop by 2

2008-07-24 Thread Clark, Jennifer H
Dear List-serv members: How can I structure a for loop so that it will increment the counter by two using R? I am just looking for a simple example that shows where the incrementing part should go. Thanks! Jennifer -- Jennifer Hayes Clark Assistant Professor Department of Political Science Un

[R] How to abort JGR

2008-07-31 Thread g-h-d
Hi, say I have a loop that cannot complete. how do I abort within JGR? I use unbuntu linux. Thanks. -- View this message in context: http://www.nabble.com/How-to-abort-JGR-tp18766719p18766719.html Sent from the R help mailing list archive at Nabble.com. __

[R] Rgui.exe cannot be set as default program under Vista wtih R2.10.1

2010-02-19 Thread Schmitt, H. (Heike)
Dear moderators, when I installed the latest version of R (R2.10.1) under Microsoft Vista (service pack 2), I ran into problems associating Rgui.exe with .RData files. On doubleckicking such files in explorer, they open in a Rterm window. Trying to associate Rgui.exe with the Rdata files via co

  1   2   3   4   >