Displaying 20 results from an estimated 10000 matches similar to: "Date"
2012 Jul 05
3
Return
Hello Every one
I have data on Stock prices and I want to calculate the return on all the
stocks
and then replace all the stock prices with the returns
can any one tell me how to do
My data is in the format given below
Date Stock1 Stock2 Stock3
01/01/2000 1 2 3
01/02/2000 5 6 7
01/03/2000 1 2 3
01/04/2000
2012 Jul 04
5
loop for regression
---------- Forwarded message ----------
From: Akhil dua <akhil.dua.12@gmail.com>
Date: Wed, Jul 4, 2012 at 10:33 AM
Subject:
To: r-help@r-project.org
Hi everyone I
have data on stock prices and market indices
and I need to run a seperate regression of every stock on market
so I want to write a "for loop" so that I wont have to write codes again
and again to run the
2012 Aug 07
2
shading line plot
Hi everyone,
I have a time series data set and I want to fill my line plot of this time
series with different colors
e.g
I want to fill portion related to 1995-1996 with blue , portion related to
1996-1997 with orange and then portion related to 1997-1998 with red
can anyone please help me.
[[alternative HTML version deleted]]
2012 Aug 02
4
Subseting
Hi everyone
I have banking data set in long format with 4 columns.One of these columns
is bank name which consist of 49 banks and I want the data for only 40
banks out of these 49
so can anyone help me on how to get this 40 banks data
My data looks like
Year Name totalliabilties assets
1990 a 90 10
1991 a 89 48
1992 a 87
2012 Jul 05
1
Return on Stock Market
Hello Every one
I have data on Stock prices and I want to calculate the return on all the
stocks
and then replace all the stock prices with the returns
can any one tell me how to do
My data is in the format given below
Date Stock1 Stock2 Stock3
01/01/2000 1 2 3
01/02/2000 5 6 7
01/03/2000 1 2 3
01/04/2000
2012 Jul 18
4
contour
Hello Everyone
I have the data long format and I want to draw the contour plot with it
x1 x2 x3
0 1 2
0 2 1
0 3 5
1 1 4
1 2 2
1 3 3
when I am using contour(x1,x2,x3,col=heat.colors) or fill.contour
its giving me an error that increasing x and y expected
So please tell me what is the right function to draw contour when the data
is not ordered and you cant order
2012 Jul 04
1
(no subject)
Hi everyone I
have data on stock prices and market indices
and I need to run a seperate regression of every stock on market
so I want to write a "for loop" so that I wont have to write codes again
and again to run the regression...
my data is in the format given below
Date Stock1 Stock2 Stock3 Market
01/01/2000 1 2 3 4
2012 Oct 12
3
Columns and rows
Hi,
Could you please advice some easy way to do the following for a dataframe
(header=F) having unequal column- & row- length.
1. Combine/stack/join contents from -
a) multiple rows into one column.
b) multiple columns into one row.
2. Stack contents from multiple columns (or, rows) into one column (or,
row).
Thank you.
Cheers,
Santana
[[alternative HTML
2012 Sep 28
3
Better way of Grouping?
Hello R users,
This is more of a convenience question that I hope others might find useful
if there is a better answer. I work with large datasets that requires
multiple parsing stages for different analysis. For example, compare group
3 vs. group 4. A more complicated comparison would be time B in group 3 of
group L with B in group 4 of group L. I normally subset each group with
the
2010 Oct 20
2
create a list fails
I can not understand why this fails
>
> faicoutput2 <- list(stuff21 = as.numeric(faicout$coefficients[2]),
+ stuff31=as.numeric(faicout$coefficients[3]),
+ stuff41=as.numeric(faicout$coefficients[4]),
+ stuff32=(stuff21-stuff31),
+ stuff42=(stuff21-stuff41),
+
2012 Nov 19
6
How to subset my data and at the same time keep the balance?
Hi guys,
I have 1000 rows of a dataset. In my analysis, I need 70% of the data,
run my analysis and then use the remaining 30% to test my model.
Could anybody kindly help me on this?
Cheers
2012 Oct 28
6
Having some Trouble Data Structures
Hi All,
I'm trying to run a simulation of host-pathogen evolution based around individuals.
What I need to have is a dataframe or table of some description - describing all the individuals of a pathogen population (so far I've implemented this as a matrix):
ID No_of_Effectors Effectors (Sequences)
[1,] 0001 3 ## 3
2012 Jun 28
1
Indifference curve
Hello everyone I am new to R
I need to plot 3 indifference curve for the level 100, 200 and 300
my utility function is of the form u(x,y)=3x^2+2y
I also need to draw contour line on it
can any one please tell me how to do it????
[[alternative HTML version deleted]]
2011 Nov 15
5
Convert back to lower triangular matrix
Given a vector;> ab = seq(0.5,1, by=0.1)> ab[1] 0.5 0.6 0.7 0.8 0.9 1.0
The euclidean distance between the vector elements is given by the lower triangular matrix > dd1 = dist(ab,"euclidean")> dd1 1 2 3 4 52 0.1 3 0.2 0.1 4 0.3 0.2 0.1 5 0.4 0.3 0.2 0.1 6 0.5 0.4 0.3 0.2 0.1
Convert the lower triangular matrix to a full
2012 Nov 24
3
Designating a new year (Sept-Aug) in R
If I have data (below) and need some help in figuring out how I can change the values of my date column, so that a year will be from September-August? So the year
1990 = September 89-August 90; 1991
= September 90-August 91, etc...
I was trying to use the if() function, but am unable to figure it out. I basically need to change the years associated with September-December to the following
2012 Sep 24
3
List creation based on matrix
Hi guys,
It would be great if you could help me with this one...
I'm looking to create a script to convert a matrix of species abundance e.g:
<http://r.789695.n4.nabble.com/file/n4643978/species_matrix.jpg>
into two vectors e.g:
<http://r.789695.n4.nabble.com/file/n4643978/communitylist.jpg>
----------------
If you feel there is no easy answer to this and that it would be
2012 Jul 25
5
How to filter datetime from a dataframe
I have one month data in a dataframe..
I need to filter data based on start date and end date
Ex: Start date :- 01/Jul/2012 and End date :- 10/Jul/2012
Please help me to find the solution
--
View this message in context: http://r.789695.n4.nabble.com/How-to-filter-datetime-from-a-dataframe-tp4637721.html
Sent from the R help mailing list archive at Nabble.com.
2012 Oct 05
1
Error in lmer: asMethod(object) : matrix is not symmetric [1, 2]
Dear R Users,
I am having trouble with lmer. I am looking at recombinant versus non
recombinant individuals. In the response variable recombinant
individuals are coded as 1's and non-recombinant as 0's. I built a model
with 2 fixed factors and 1 random effect. Sex (males/females) is the
first fixed effect and sexual genotype (XY, YY, WX and WY) the second
one. Sexual Genotype is
2012 Nov 07
8
Aggregate data frame across columns
Folks,
I have a data frame with columns 200401, 200402, ..., 201207, 201208.
These represent years/months. What would be the best way to sum these columns by year? What about by quarter?
Thanks for your time,
KW
--
[[alternative HTML version deleted]]
2013 Sep 25
1
Best and worst values for each date
Hi,
May be you can try this:
obj_name<- load("arun.RData")
Pred1<- get(obj_name[1])
Actual1<- get(obj_name[2])
library(reshape2)
dat<-cbind(melt(Pred1,id.vars="S1"),value2=melt(Actual1,id.vars="S1")[,3])? # to reshape to long form
colnames(dat)[3:4]<- c("Predict","Actual")
dat$variable<- as.character(dat$variable) #not that