Displaying 20 results from an estimated 1567 matches for "1996".
Did you mean:
1992
2007 Jul 10
1
exces return by mktcap decile for each year
I have a data frame, lets call it dat,
with 3 columns ( mc, yr, ret) which represent market
cap, year, and return. mc is a factor, mc, and ret are
real numbers.
I want to add a column to the data calculated as
follows.
For each year, I want to split the data by mc decile,
then calculate the mean ret within that mc decile, and
finally subtract that year's decile mean from the raw
return. Then
2010 Jun 22
3
Duplicate dates in zoo objects
Hello,
I have a zoo time series read from an excel file which has some dates
the same, such as the following example:
02/10/1995 4925.5
30/10/1995 4915.9
23/01/1996 4963.5
23/01/1996 5009.2
04/03/1996 5031.9 # here
04/03/1996 5006.5 # here
03/04/1996 5069.2
03/05/1996 5103.7
31/05/1996 5107.1
01/07/1996 5153.1
02/08/1996 5151.7
Is there a simple way to keep the last price of the ones that have the
same dates?
04/...
2011 Mar 04
2
apply.rolling() to a multi column timeSeries
...n momentum with the timeSeries x.ts,
which is just a subset of simple returns from a much bigger series,
> class(x.ts)
[1] "timeSeries"
attr(,"package")
[1] "timeSeries"
> dim(x.ts)
[1] 20 3
> x.ts[1:8,]
GMT
MS.US AAPL.US CA.FP
1996-01-31 0.15159065 -0.133391894 0.10602243
1996-02-29 -0.00692633 -0.004488850 0.03986648
1996-03-29 0.06511157 -0.106763636 0.07930919
1996-04-30 -0.04803468 -0.007653477 0.09490285
1996-05-31 0.08715949 0.071709879 0.05126406
1996-06-28 -0.03586503 -0.196141479 0.01908068
1996-07-31 -0.1...
2011 Jul 28
1
sorting data from dataframe with oter dataframe
...number of factors (every column got the
name
of the factor as header and the data below). on another csv file, i've got
the
factors sorted by their type. for example-
c1=read.csv('C:/R/c1.csv', header= TRUE)
urrDate A_XS b_XS c_XS d_XS e_XS
1 01/01/1996 0 0.0000 0 0.0000 2.7220
2 02/01/1996 0 2.3232 0 2.2960 2.7179
3 03/01/1996 0 2.3368 0 2.3087 2.7004
4 04/01/1996 0 2.3395 0 2.3173 2.6821
5 07/01/1996 0 2.3226 0 2.3072 2.6852
6 08/01/1996 0 2.3385 0 2.3067 2.7008...
2013 Apr 19
5
how to subtotal by rows
...subtotal the values of rice,wheat and maize by year for each fid.
fid year rice wheat maize
------------------------------------------------
1 1995 5 NA NA
1 1995 NA 3 NA
1 1995 NA NA 2
1 1996 4 NA NA
1 1996 NA 2 NA
1 1996 NA NA 6
2 1995 3 NA NA
2 1995 NA 8 NA
2 1995 NA NA 4
2 1996 7 NA NA
2 ...
2006 Mar 08
2
Survival Plots by Strata
...email.
apc.coxfit1<-coxph(Surv(Entry, Exit, Fate)~Sex + Agerelease +
Dayrelease + strata(Year), data=mydat)
coxfit.apc<-survfit(apc.coxfit1)
coxfit.apc
plot(survfit(apc.coxfit1), conf.int=F, log=T, lty=c(1:2), col=c(1:2),
xlim=c(205, 800)) #not run--first entry for this example is day 205 for
1996, 259 for 1997
>mydat
ID Year Dayrelease
Agerelease Survivorship Entry Exit Fate Sex
16240 1996 205 95 164 205 369 1 0
16319 1996 205 88 140 205 345 1 0
16378 1996 248 108 100 248 348 1 0
20383 1996 241 98 204 241 445 1 0
16324 1996 219 90 227 219 446 1 0
16327 1996 219 90 497 219 716 1 0
20373...
2006 Nov 23
1
how to loop this?
...1995-11-05", "1995-11-09",
"1995-11-13", "1995-11-17", "1995-11-21", "1995-11-27", "1995-11-30",
"1995-12-02", "1995-12-09", "1995-12-13", "1995-12-16", "1995-12-28",
"1996-01-03", "1996-01-13", "1996-01-15", "1996-01-18", "1996-01-26",
"1996-02-02", "1996-02-07", "1996-02-12", "1996-02-18", "1996-02-22",
"1996-02-28", "1996-03-04", "1996-03-...
2012 Mar 09
2
Create a list object in a loop
...OT1);head(OT1);dim(OT1)
[1] "EID" "latitude" "longitude" "month" "year" "CPUE" "TSUM"
[8] "fTSUM"
EID latitude longitude month year CPUE TSUM fTSUM
1 167-1-1996-1135 67.70000 -61.81667 9 1996 0 0 F
2 167-10-1996-1135 67.71667 -59.18333 9 1996 0 0 F
3 167-100-1996-1135 67.86667 -59.43333 10 1996 0 0 F
4 167-101-1996-1135 67.95000 -59.58333 10 1996 0 0 F
5 167-102-1996-1135 68.10000 -59.7...
2007 Feb 22
2
Combining tapply() and cor.test()?
Hello, fellow R-users.
Let me describe the setup first. I have a data.frame, a sample of
which is reported below:
Company.Name Periods Returns MFR.Factor
350 Wartsila Oyj A 1996-07-31 6.82 0.02
351 Custodia Holding AG 1996-07-31 4.15 -0.02
352 Wartsila Oyj 1996-07-31 7.73 0.09
353 GEA Group AG 1996-07-31 10.12 0.04
354 LEGRAND ORD 1996-07-31 -7.46 -0.20
355 Mayr-Melnhof K...
2006 Nov 22
3
dataframe manipulation
...uot;, "1995-11-05",
"1995-11-09", "1995-11-13", "1995-11-17", "1995-11-21", "1995-11-27",
"1995-11-30", "1995-12-02", "1995-12-09", "1995-12-13", "1995-12-16",
"1995-12-28", "1996-01-03", "1996-01-13", "1996-01-15", "1996-01-18",
"1996-01-26", "1996-02-02", "1996-02-07", "1996-02-12", "1996-02-18",
"1996-02-22", "1996-02-28", "1996-03-04", "1996-03-07"...
2013 Jan 17
1
Help with interpolation
...ven
date days rate
1996 01 02 15 5.74590
1996 01 02 50 5.67332
1996 01 02 78 5.60888
1996 01 02 169 5.47376
1996 01 02 260 5.35267
1996 01 02 351 5.27619
1996 01 03 14 5.74740
1996 01 03 49 5.67226
1996 01 03 77 5.60371
1996 01 03 168 5.47058
199...
2002 Feb 11
2
Time Series ts() Objects
Hi,
Is it possible to create a ts() object, whose data is daily based BUT
measured only on working days?
In other words, suppose I have a data set with 255 observations, measured
from 29 June 1959 to 30 June 1960. How would I create such a data? I
tried something like:
ts(c(...), start(1959, 180))
but I'm not sure what to use for frequency. In other words I don't know
how to
1996 Nov 14
1
Security hole in Debian 1.1 dosemu package
...other holes in dosemu other than this one that
can be exploited if it is installed setuid root. It took about 60
seconds to find this hole once I realized /usr/bin/dos was setuid
root.
Dan
From mail@mail.redhat.com 17277 by invoked 501); uid
Received: (qmail 11024 invoked from network); 27 Nov 1996 05:31:21 -0000
Received: from bach.cis.temple.edu (155.247.71.92)
by mail2.redhat.com with SMTP; 27 Nov 1996 05:31:21 -0000
Received: (from alex@localhost) by bach.cis.temple.edu (8.7.4/8.7.3) id BAA03514; Wed, 27 Nov 1996 01:29:19 -0500
Received: from mail2.redhat.com (mail2.redhat.com [199.183....
1997 Aug 04
0
Recursive dir errors...
...here? It is keeping my
smbclient from giving AMANDA a sice for the share. Without recursion, and
stepping through the directories manually, I can do the dir and get no errors.
smb: \> ls
received 8 entries (eos=1 resume=0)
. D 0 Thu Aug 15 09:19:58 1996
.. D 0 Thu Aug 15 09:19:58 1996
work D 0 Thu Aug 15 09:30:08 1996
misc D 0 Thu Aug 15 09:30:14 1996
ARIS D 0 Thu Oct 31 09:15:08...
2004 Dec 03
4
seq.Date requires by
Hi,
What is the reason for seq.Date to require the 'by' argument and not to
default it to 1 in the example below?
> seq(from=as.Date("1996-01-01"), to=as.Date("1996-12-01"))
Error in seq.Date(from = as.Date("1996-01-01"), to =
as.Date("1996-12-01")) :
exactly two of `to', `by' and `length.out' / `along.with' must be
specified
This is R-1.9.1, but I haven't seen anything pertain...
2007 Oct 25
1
subsetting
Dear all,
I have received some data on birds that looks sth like this:
# a unique id for each individual
id <- c(1,1,1,2,2,2,3,3,3,4,4,5,6)
# the year the bird was measured
year <- c(1995, 1996, 1997, 1995, 1996, 1997, 1996, 1997, 1998, 1996, 1997, 1997, 1998)
# the year the bird was hatched
year.hatch <- c(1995, 1995, 1995, 1995, 1995, 1995, 1996, 1996, 1996, 1996, 1996, 1997, 1998)
# the year when the bird reproduced the first time (for simplicity in the dummy data, all birds repro...
2006 Mar 20
0
Estimating Daily Survival
...2 on 1 df, p=0.337 n= 19
> survfit(brettest1)$surv
[1] 0.9502716 0.9010356 0.8508737 0.7996929 0.7473818 0.6957615 0.5872297 0.5324263 0.4756545
[10] 0.4201535 0.3547775 0.2916481 0.2189030 0.1374015
>mydat
ID Year Dayrelease Agerelease Survivorship Entry Exit Fate Sex
1 16240 1996 205 95 164 205 369 1 0
2 16319 1996 205 88 140 205 345 1 0
3 16378 1996 248 108 100 248 348 1 0
4 20383 1996 241 98 204 241 445 1 0
5 16324 1996 219...
2002 Jul 23
3
Aggregate: assembling the "by" part on the fly
Dear R users,
I'm having trouble using aggregate() and would
greatly appreciate your advice. I am using R 1.5.1
on Windows 2000.
I want to call my function in the following way
extract.data(x=dat[, "Age", "Year"])
where extract.data() uses aggregate() to count the number
of cases for each combination of "Age" and "Year".
I've defined
2009 Dec 03
4
Two-way/Three-way sum.
Hi R Users,
I'm wondering how can I calculate two (or three) way sum of a variable. A
sample data is:
State Month Year Value
NC Jan 1996 1
NC Jan 1996 2
NC Feb 1997 2
NC Feb 1997 3
NC Mar 1998 3
NC Mar 1998 4
NY Jan 1996 4
NY Jan 1996 5
NY Feb 1997 5
NY Feb 1997 6
NY Mar 1998 6
NY Mar 1998 7
I'm trying to sum up "value" column by State*Month and by State*Month*Year.
Also, I may need to calculate mean value along with...
2013 Jul 12
4
simplify a dataframe
...;Gabon", "Gabon", "Gabon", "Gabon",
"Congo", "Congo"), Debut = c("24/01/1995", "01/05/1997", "31/12/1997",
"02/02/1995", "28/02/1995", "01/03/1995", "13/03/1995", "01/01/1996",
"31/01/1996", "24/01/1995", "01/07/1995", "01/09/1995", "01/07/1997",
"01/01/1998", "01/08/1998", "01/01/2000", "17/01/2000", "29/02/2000",
"26/01/1995", "01/07/1996", &quo...