Displaying 20 results from an estimated 1000 matches similar to: "fSeries Technical Analysis rsiTA problem"
2006 Jul 14
3
Generating random normal distribution with mean 0 and standard deviation 1
Hello,
This must be really simple, but I can't find it on R Site search. I need to
generate a random normally distributed series with mean 0 and sd 1. In
Matlab, this code is randn(n).
The closest I found is runif(20,-1,1) but this forces a maximum and a
minimum, and there's no way to specify a standard deviation of 1.
>sd(runif(20,-1,1))
[1] 0.578164
2006 Jun 19
2
saving rounded numbers as a new variable in a dataframe
A basic question, but one that eludes me. I have created a new variable
$numurder, which I have rounded off. I want to save the rounded off version
of this variable to an existing datafile called 'ngri.csv' .
numurder <-c((murder*no.of.cases)/100)
[[1]]
[1] 48.952 112.073 182.160 974.610 122.140 663.432 150.856 18.988
137.925 198.045 68.930 203.148 30.056 100.955
2006 Jul 27
2
Vector extracted from a matrix. How can I specify dimensions in as.matrix?
Transpose vector extracted from a matrix
Hello,
I am doing a recursive analysis that uses every line (vector) of a matrix in
a loop. In the model, I need to transpose those vectors that are extracted
from a matrix.
Using simple vectors (no matrix involved) the transpose function works fine:
simplevector <-matrix(1:3,3,1)
tsimplevector <-t(simplevector) #transposed
dim(simplevector)
2006 Apr 26
1
garchFit from fSeries
Dear R People:
I'm trying to use the garchFit function from the library(fSeries)
However, R freezes every time that I use it.
Is anyone else having this problem, please?
Thanks in advance!
R Version 2.2.1 Windows.
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: hodgess at gator.uhd.edu
2008 Jun 02
1
Help : R-packages : Problems loading package fSeries
Hi.
I am trying to load the package fSeries, in order to load the package
fGarch after.
However, it says the following message.
> local({pkg <- select.list(sort(.packages(all.available = TRUE)))
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
Loading required package: fBasics (Error : ... infinite recursion)
Loading required package: fImport
Loading required package: fSeries
Loading
2005 Apr 19
1
timeSeries Date Warning messages: Set timezone to GMT!
Hello, I must be doing something wrong that's very obvious. But I just
don't see it.
I changed my Windows Time Zone to GMT and my Financial Center to Montreal.
But I still get several warnings.
>Sys.timezone()
[1] "GMT Daylight Time"
>myFinCenter
[1] "Montreal"
>Sys.timeDate()
[1] "Montreal"
[1] [2005-04-19 10:55:02]
Warning messages:
1: Set
2007 Oct 31
1
problem with package fSeries
Helo,
please look at the log below: after loading the fSeries library, I can not use the log function. Is this a bug or what am I doing wrong?
Because of this, I'm unable to use the garch library.
thanks a lot for any help,
Balazs Torma
> log(1)
[1] 0
> require("fSeries")
Loading required package: fSeries
Loading required package: robustbase
Loading required package:
2013 Jan 30
1
fSeries not found in R
Hello all,
When I tried to install fSeries in R, I got the following error messages:
install.packages("fSeries",dependencies=T)
Warning message:
package 'fSeries' is not available (for R version 2.15.2)
Is this package changing/merging to another package?
Thanks,
Rebecca
----------------------------------------------------------------------
This message, and any
2005 Mar 23
1
Error in unitrootTest (fSeries)
Hello, I am getting the following error message from unitrootTest.
Do you have any clue of what could be wrong.
Details: AMD64 (x86_64) Gentoo Linux system.
library(fSeries)
kmodel <- list(ar=c(.3,0,0,0,0.7,-.4*.7),d=1)
x=armaSim(nobs,model=kmodel)
unitrootTest(x,trend="c",statistic="t",method="adf",lags=2)
Error in file(file, "r") : unable to open
2004 Nov 10
2
fSeries
Good morning everyone,
I use for the first time the package fSeries and i try to run the example
given by Diethelm Würtz. But when i run its example which is the following
#
# Example:
# Model a GARCH time series process
#
# Description:
# PART I: Estimate GARCH models of the following type ARCH(2)
# and GARCH(1,1) with normal conditional distribution functions.
# PART II: Simulate
2005 Dec 04
1
fSeries: garchOxFit - is really the example provided not runnig?
Dear R-helpers,
I have just loaded the fSeries package and I wanted to run the example provided in the documentation of garchOxFit but I got the following:
> library(fSeries)
> ?garchOxFit
> library(datasets)
> ?garchOxFit
> ## Not run:
> ## garchOxFit -
> # Load Benchmark Data Set:
> data(dem2gbp)
> x = dem2gbp[, 1]
>
2005 Dec 04
1
fSeries package: ?aparchFit
Dear R-helper,
I wish to implement the APARCH model as described in the fSeries documentation.
But I get the following:
>library(fSeries)
[...]
> ?aparchFit
No documentation for 'aparchFit' in specified packages and libraries:
you could try 'help.search("aparchFit")'
> help.search("aparchFit")
No help files found with alias or concept or
2008 Sep 05
1
Passing method to returns() /fSeries (PR#12713)
Full_Name: Robert Iquiapaza
Version: 2.7.2
OS: Vista
Submission from: (NULL) (69.127.35.170)
In the help Examples for returns(fSeries) it is said that you can pass the
method to compute ("continuous", "discrete", "compound", "simple") returns using
'type='
i.e.
# Discrete Returns:
returns(MSFT, type = "discrete")
However when you use
2005 May 11
1
PDF Arial, Helvetica and Pagemaker 7.0
Hello,
I can generate PDF documents and they look good on acrobat reader. However,
when I import the PDFs in Pagemaker 7.0 (on windows2K), I get an error
message saying it does not recognize the Helvetica font.
I got this from ?pdf:
family
the font family to be used, one of "AvantGarde", "Bookman", "Courier",
"Helvetica", "Helvetica-Narrow",
2006 Oct 20
1
Cardinality constraint
Hello,
How do I implement a cardinality constraint with constrOptim?
I want to minimize (least square) a%*%x = 4
subject to
x1<2
x2<1
x3<4
count(x1, x2, x3)= 2 (cardinality constraint)
Is there a way to specify binary integer variables with constrOptim?
Here's my code so far:
a <-matrix(1:3,1,3)
fr <- function(x) {
(a%*%x-4)^2
}
2005 Dec 13
1
fSeries
I'm trying to use garchFit from fSeries, with Student or Skewed Student conditionnal distribution. Let's say that eps (vector) is my series of daily log-returns:
data(EuStockMarkets)
eps = diff(log(EuStockMarkets[,"CAC"]))
library(fSeries)
g = garchFit(series = eps, formula.var = ~garch(2,2), cond.dist = "dstd")
s = g at fit$series
All the coefficients are ok
2005 Jun 01
1
Problem with fPortfolio
Hello,
I hesitate to call this a bug, because I could have forgotten something
important, but the MarkowitzPortfolio example in fPortfolio does not work
for me. Here's my code:
> library(fPortfolio)
>
>xmpPortfolio("\nStart: Load monthly data set of returns > ")
> data(berndtInvest)
> # Exclude Date, Market and Interest Rate columns from data
2008 May 21
3
Problem with R or fBasics Package (PR#11495)
I have a problem wirh R: After loding fBasics packages log funtion doesn't
work like as fallow:
Cenap ERDEMIR
Hacettepe University
Turkey
> log(20)
[1] 2.995732
> local({pkg <- select.list(sort(.packages(all.available = TRUE)))
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
Loading required package: fImport
Loading required package: fSeries
Loading required package: robustbase
2006 Jun 21
4
help on ploting various lines
Dear All,
I tried to plot a variety of lines(curves) on same figure. What I did is,
plot(x=x1,y=y1)
lines(x=x2,y=y2)
lines(x=x3,y=y3)
...
In my data, the maximum of y1 is much smaller than those maximums of other y vectors. So, in the figure I got, there are some curves which are not complete, I mean, they were cut off at the maximum of y1 at the y axis. Could anybody point out some right
2005 Jun 09
1
Error to install library( fSeries)
Dear @ll Friends,
After trying to install some libraries such as fSeries, I receive this error:
Fehler: unable to create temp directory 'C:/Programme/R/rw2010pat/library\file12763'
Also after trying to install other packages ,I receive similar errors, for example, installation of tseries:
Fehler: unable to create temp directory 'C:/Programme/R/rw2010pat/library\file30539'
...