similar to: Is there simple code for this simple financial time series task?

Displaying 20 results from an estimated 4000 matches similar to: "Is there simple code for this simple financial time series task?"

2001 Oct 18
1
tapply problem
Hello everybody. I have a question that has stumped me and the usual "apply" tricks don't seem to work. I run a course where each student's performance is marked by one or more assessors. I have a data frame containing students' names, assessors' names and their marks, arranged as follows: ID student assessor Q1A Q1B Q1C Q2A Q2B Q3 1 2152833
2006 Mar 02
1
Curious subsetting behavior
I have a simple vector, called tmp that I want to subset based on another vector called vec. Everything works as expected except for below where the subsetting returns something other than the original data. Any ideas? > vec <- c(1,2,3,4,5,59,60,27,32,21) > tmp [1] 1.0 1.1 2.0 2.1 2.2 3.0 3.1 4.0 5.0 5.1 6.0 7.0 8.0 8.1 9.0 [16] 9.1 9.2 10.0 10.1 11.0 12.0 13.0 14.0
2013 Jan 03
2
Sas by function in R
Hello, It's an alternative to use SAS by function in R? I want to plot d histograms by plot.from example bellow: Thank you! plot d 1 1 16.3 2 1 25.0 3 1 57.8 4 1 17.0 5 2 10.8 13 2 96.4 17 3 76.0 18 3 32.0 19 3 11.0 20 3 11.0 24 3 106.0 25 3 12.5 21 4 19.3 22 4 12.0 26 4 15.0 27 5 99.3 32 7 11.0 36
2011 Jul 17
1
creating a matrix of ranked column data
I have a data frame (gom) or a matrix of trace metal data and some other observations from water column samples taken at sea (e.g., 19 samples (rows), 19 variables) I can calc. the rank individually from each column of the attached object. How can I create a matrix that contains the ranked data for each variable (either 1-19, ties=avg)? For example: >gom<-read.csv ("gomdata.csv")
2010 Apr 16
2
managing data and removing lines
Hi, I am very new to R and I've been trying to work through the R book to gain a better idea of the code (which is also completely new to me). Initially I imputed my data from a text file and that seemed to work ok, but I'm trying to examine linear relationships between gdist and gair, gdist and gsub, m6dist and m6air, etc. This didn't work and I think it might have something to do
2012 May 16
3
Wrong Q3 + Mean.
Hi. > a [1] 13 13 14 14 15 15 16 20 21 26 > summary(a) Min. 1st Qu. Median Mean 3rd Qu. Max. 13.0 14.0 15.0 16.7 19.0 26.0 > mean(a) [1] 16.7 > quantile(a) 0% 25% 50% 75% 100% 13 14 15 19 26 Clearly, this is not right. My Instructor and I have no idea why the program does that. I removed the program from the computer , installed it
2000 Feb 23
1
Version 0.90.1 bug report on matrix indexing
Hi , R Version 0.90.1 on Solaris2.5 and Suse Linux 6.[1,3] crashes some time after a matrix row or column has been addressed via an incorrect row/colname: R : Copyright 1999, The R Development Core Team Version 0.90.1 (December 15, 1999) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type "?license" or
2019 Nov 24
2
My ethernet is not listed in centOS 8 boot.iso
On Sun, Nov 24, 2019 at 12:00 AM Phil Perry <pperry at elrepo.org> wrote: > This list does not accept attachments. Please just post the relevant > line for your ethernet device. or if you're not sure, paste the whole output inline in your message.... something like.... # lspci 00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] RS880 Host Bridge 00:01.0 PCI bridge:
2009 Apr 22
2
function output with for loop and if statement
Hello all, turns out i'm having a bad R week. I am at my wits end with a function that I am trying to write. When I run the lines of code outside of a function, I get the desired output. When I wrap the lines of code into a function it doesn't work as expected. Not sure what is going on here. I suspected that the syntax of the if statement with the for loop was the culprit, but when I
2008 Sep 09
1
Substitute Values in a Matrix?
Hi, I'm searching for a function to subistute Values in a Matrix to new Values. For example: old value new value 1.1 6 1.2 7 . . . . . . 1.9 14 2.0 15 and 2.1 15.5 2.2 16 . . . . 2.9 19.5 3.0 20 There is a difference
2013 Jan 12
1
bind tables
Hi Matteo, You could do this: dat1<-read.table(text=" year? h? len fre 1994? 5 10.5? 2 1994? 5 14.0? 2 1994? 5 11.5? 1 1994? 9 13.0? 3 1994? 9 11.5? 1 1994? 9 13.5? 5 ",sep="",header=TRUE) res<-do.call(rbind,lapply(split(dat1,dat1$fre),function(x) x[rep(row.names(x),x$fre),1:3])) row.names(res)<-1:nrow(res) ?res #?? year h? len #1? 1994 5 11.5 #2? 1994 9 11.5 #3?
2013 Apr 04
1
Freenas domU network performance issue
Hi guys, I''m running a freenas domU (FreeBSD 8.3 based, ZFS v28, 2 vcpus mapped to the same HT capable core) to serve storage for all purpose including other domUs running on the same host. I did some study to understand how well it works and the result is kind of confusing. In summary, the network performance between domains on the same host is worse than expected. And NFS service to
2006 Jan 04
3
TC/CBQ shaping problems
Hello everyone, I''m a newbie experimenting with CBQ shaping and am facing a few problems. Can any of you please help? TEST SETUP: +---------------+ +----------------+ | 10.0.0.103 |----------->| 10.0.0.102 | +---------------+ +----------------+ 10.0.0.103: Linux, 100Mbit/s NIC 10.0.0.102: Windows, 100Mbit/s NIC, iperf tcp server (ports 2000 and 2001) WHAT I
2012 May 15
3
VGA passthrough ? AMD-FX8, GA-990FXA-UD3, G210
Hello, Like many trying and posting here, I''m new to VGA passthrough. Computer was bought, checking compatibility from http://wiki.xen.org/wiki/VTd_HowTo The hardware is mostly not exactly on the list, but mainly new versions of the same series (I think). IOMMU "seems" to be working (not 100% sure what to check). I used debian/wheezy kernel and xen, dom0 and HVM domu.
2010 Sep 17
2
Matrix- create mean/min/max/stdev on column of matrix or rows?
I made simulation with Weibull and create Matrix, How can I create mean/min/max/stdev on column or rows of matrix?, Thanks,
2006 Oct 31
2
plotting multiple groups (newbie Q)
Hi Folks, After loading a data set, I run the following: > kSum <- orderBy(~group,(summaryBy(DP_Level~F2 +group,data=kdata,FUN=c(mean,sd),na.rm=T))) kSum looks like this: > kSum F2 group DP_Level.mean DP_Level.sd 1 1.0 N -1.55186475 11.022245 4 2.0 N -2.48013300 10.624583 7 3.0 N -12.47671250 11.104792 10 4.0 N -13.72430950 12.000779 13
2006 Jan 18
3
linear contrasts with anova
I have some doubts about the validity of my procedure to estimeate linear contrasts ina a factorial design. For sake of semplicity, let's imagine a one way ANOVA with three levels. I am interested to test the significance of the difference between the first and third level (called here contrast C1) and between the first and the seconda level (called here contrast C2). I used the following
2009 Mar 09
1
Data Restructuring Question
I think I am overlooking a call or concept in R to help me easily and quickly restructure my data.frame:   Sometimes the data I receive looks like: VariableName, Run1, Run2, Run3, Location temp,               15.0,  16.0,  17.0, There   And other times it looks like: VariableName, Run, Location temp,               17.0, There   I would like to use the header information in order to be able to
2010 Jun 30
3
Embed function strips out date index
Hi, I'm having especially hard time today and couldn't find any clue/answer through the internet. ?I hope you can help. I'm in a process of writing a script to estimate error correction model, and I was following an example in Bernhard Pfaff's Analysis of Integrated and Cointegrated Time Series with R. ?I have the following price data: > head(series,15) ?? ? ? ? ? PX_SETTLE
2003 Nov 30
1
bad performance on 2.4.23
hi, - big and ugly mail. If you don't like them, delete it now :-) - I have collected and classified some information of: http://home.earthlink.net/~rwhron/kernel/bigbox.html And I observed that ext3 performance is worse than previous kernels(2.4.19...). -ac and -aa are here only as reference. Complete information is in the upper URL. dbench: Performance is worse. dbench (Numbers are in