Displaying 20 results from an estimated 600 matches similar to: "Return"
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 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 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 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 04
2
Date
Hi
I have monthly data and the dates are in MM/YY Format
I need to convert them into DD/MM/YY format by pasting 01 in place of DD to
all the observations in my Year Column
ex:
Year Stock Prices
01/2000 1
02/2000 2
03/2000 3
I need to convert them to
Year Stock Prices
01/01/2000 1
01/02/2000 2
01/03/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 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 Jan 13
1
Portfolio Optimization
Hi,
I'm an R newbie and I've been struggling with a optimization problem for
the past couple of days now.
Here's the problem - I have a matrix of expected payouts from different
stock option strategies. Each column in my matrix represents a different
stock and each row represents the return to the strategy given a certain
market move. So the rows are not a time series of percentage
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]]
2009 Nov 11
1
Help with fPortfolio
Hi
I'm getting the following errors while using the efficientPortfolio function
even though I'm setting the target return to the mean of the TargetReturn I
obtain from the portfolio object created by the feasiblePortfolio function.
First Error:
Error: targetReturn >= min(mu) is not TRUE
Second Error:
Error in .rquadprog(Dmat = args$Dmat, dvec = args$dvec, Amat = args$Amat, :
2006 Dec 01
3
Make many barplot into one plot
Dear all,
## I have 4 tables like this:
satu <- array(c(5,15,20,68,29,54,84,119), dim=c(2,4),
dimnames=list(c("Negative", "Positive"), c("Black",
"Brown", "Red", "Blond")))
dua <- array(c(50,105,30,8,29,25,84,9), dim=c(2,4),
dimnames=list(c("Negative", "Positive"),
2010 Oct 29
2
make many barplot into one plot
Dear R users
I would like to group my barplot graph (see example on the R help link). The proposed R code, adding individual bars to the plot, looks really overwhelming. My specific dataset just consists of five groups and three different levels within each groups (the individual bars). The .txt file is read as matrix (horizontal: group, vertical: levels).
The R trellis barchart (function
2011 Oct 09
2
fast or space-efficient lookup?
Dear R experts---I am struggling with memory and speed issues. Advice
would be appreciated.
I have a long data set (of financial stock returns, with stock name
and trading day). All three variables, stock return, id and day, are
irregular. About 1.3GB in object.size (200MB on disk). now, I need
to merge the main data set with some aggregate data (e.g., the S&P500
market rate of return,
2011 Aug 22
0
Did I find a bug on TSERIES or URCA packages?
I'm tring the functions to check the cointegration of a matrix.
I'm using **Phillips & Ouliaris Cointegration Test**
The function in *tseries* package is **po.test** and **ca.po** in *urca*
The results with **URCA** are:
> ca.po(prices, demean='none')
########################################
# Phillips and Ouliaris Unit Root Test #
2017 May 01
2
SSH1 deleted
--
jim knoble | jmknoble at pobox.com
> On Apr 30, 2017, at 19:40, Darren Tucker <dtucker at zip.com.au> wrote:
>
>> On Mon, May 1, 2017 at 12:09 PM, Damien Miller <djm at mindrot.org> wrote:
>>
>> Hi,
>>
>> I just deleted SSHv1 support in OpenBSD and portable OpenSSH. There's
>> probably a little dead code still to be expunged, but
2017 May 01
2
SSH1 deleted
Hi,
I just deleted SSHv1 support in OpenBSD and portable OpenSSH. There's
probably a little dead code still to be expunged, but all user-visible
functionality and the bulk of the supporting infrastructure is gone.
Sic transit gloria mundi.
-d
2010 Feb 15
1
rlaplace using rmutil - HELP
Hi,
I'm using rlaplace distribution to draw non normal random deviates. I'm using rmutil package for this. I know rlaplace needs location and dispersion parameters but I want to pass diag matrix as dispersion parameters and I'm not getting the correct values. Here is my code snippet:
dispersion = c(3,.20,.10)
dispDiag = diag(dispersion)
location = c(0,0,0)
output =
2010 Feb 16
2
HELP on Non-Linera Mixed-Effect model
Hi,
I'm trying to fit nonlinear mixed effects model using nlme function but getting an error message. Here is what I have:
fitted_model = nlme(scores~spline(b1,b2,b3,kt,time),
fixed = list(b1~1, b2~1, b3~1, kt~1),
random = b1+b2+b3~1,
groups= ~id,
data = sdat,
start = c(b1=3.5,b2=2,b3=.60,kt=3.5),verbose=T)
Error:
Error in
2013 Apr 09
1
Unbalance to balance panel
Is there any package to balance the unbalance panel data?
--
Akhil Dua
Mo:+91-7827-662-202
Consultant
National Institute of Public Finance and Policy
[[alternative HTML version deleted]]
2012 Dec 05
0
Problem in summary of var results
Hello
I am running var on dataset
data1 is the name of my dataset
cn.chf us.chf
2005-07-01 -1.18656633 -1.18656633
2005-07-04 -0.48835920 -0.48835920
2005-07-05 -0.01534272 -0.01534272
2005-07-06 0.08825279 0.08825279
2005-07-07 0.34223563 0.34223563
2005-07-08 -0.05776229 -0.05776229
commands which I am usings are
1) lag.var <- VARselect(data1, 10,