Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

20 results for “from:Kahra Hannu”

unable to install dse package
Kahra Hannu · Sep 21, 2004 · r-help

>Error in file(file, "r") : unable to open connection >In addition: Warning message: >cannot open file 'a:/project.txt' >please help help(read.table) Hannu Kahra --------------------------------- [[alternative HTML version deleted]] ______________________________________________ R-help at stat.math.ethz.ch mailing list https...

fitting distributions
Kahra Hannu · Aug 5, 2004 · r-help

>I also try to fit a skewed distribution (like skewed student t) to data >points. Do you have an idee howto do this??? library(skewt) y <- rskt(500,2,2) # simulate 500 observations from the skew t distribution with df...

Bessel function
Kahra Hannu · Sep 15, 2004 · r-help

>Currently, I'm implementing the generalized hyperbolic distribution into >Splus. Unfortunately the Bessel function is not implemented in Splus. In >R the Bessel function does exist but it is an internal function and I'm >not able to look at...

linear constraint optim with bounds/reparametrization
Kahra Hannu · Aug 12, 2004 · r-help

>From Spencer Graves: >However, for an equality constraint, I've had good luck by with an objective function that adds something like the >following to my objective function: constraintViolationPenalty*(A%*%theta-c)^2, where "constraintViolationPenalty" is >passed via "..." in a...

R glm
Kahra Hannu · Sep 23, 2004 · r-help

In Venables & Ripley: Modern Applied Statistics with S (MASS), (4th edition), on page 184 there is a table "Families and link functions" that gives you the available links with different families. The default and the only link with the gaussian...

gibbs sampling for mixture of normals
Kahra Hannu · Nov 19, 2004 · r-help

Matteo, have a look at http://www.mrc-bsu.cam.ac.uk/bugs/faqs/contents.shtml and BUGS http://www.mrc-bsu.cam.ac.uk/bugs/welcome.shtml. Hannu Kahra Progetti Speciali Monte Paschi Asset Management SGR S.p.A...

block statistics with POSIX classes
Kahra Hannu · Sep 22, 2004 · r-help

I have a monthly price index series x, the related return series y = diff(log(x)) and a POSIXlt date-time variable dp. I would like to apply annual blocks to compute for example annual block maxima and mean of...

Long-short balanced portfolio optimization
KAHRA HANNU · May 27, 2005 · r-sig-finance

Jeff, See Bernd Scherer's book "Portfolio Construction and Risk Budgeting" http://books.global-investor.com/books/20526.htm?ginPtrCode=00000&identifier=ed046b089287e2d975ea91dd0fd89aa4. It seems that 6. Benchmark-Relative Optimization provides the answer. I have written a code for that...

Help with generating data from a 'not quite' Normal distriburtion
Kahra Hannu · Aug 12, 2004 · r-help

Consider using the HyperbolicDist package. With the package you can both fit the hyperbolic distribution to your data and generate random numbers from the distribution. Hyperbolic distribution/s provide/s good fit to financial returns that commonly exhibit high peaks...

help: reference & book
KAHRA HANNU · Jun 3, 2005 · r-sig-finance

A brief look at my library reveals that I have at least the following books on financial econometrics: Walter Enders: Applied Econometric Time Series (contains RATS code) John Y. Campbell - Andrew W. Lo - Craig MacKinlay: The Econometrics of Financial Markets...

Computing implied volatility using fOptions
Kahra Hannu · Feb 21, 2005 · r-sig-finance

Wojciech, in the early 90s I wrote a working paper, where I studied the behavior of the implicit volatilities of the Finnish FOX index options (as a function of time to expiry). In some cases I got similar results. In...

Estimating parameters for a bimodal distribution
Kahra Hannu · Sep 16, 2004 · r-help

George, Venables & Ripley: Modern Applied Statistics with S, Springer 2002, Chapter 16 (An example: fitting a mixture model) may be helpful. Hannu Kahra -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat...

block statistics with POSIX classes
Kahra Hannu · Sep 27, 2004 · r-help

In a private mail Petr noted that I had mixed POSIX with a time series class in a call to aggregate, that was the case. Petr's sugestion usa <- diff(log(MXNA/XEU)) z <- aggregate(usa, list(annual=cut(dp...

STAR models estimation with R
KAHRA HANNU · Jun 28, 2005 · r-help

It is likely that here STAR means the Smooth Transition Autoregressive model which generalizes the Threshold Autoregressive (TAR) model to allow for gradual switching between regimes. The model can be estimated in R by applying maximum likelihood (ML) estimation or...

A somewhat off the line question to a log normal distribution
Kahra Hannu · Dec 2, 2004 · r-help

Sigfried, I am not a statistician, but I have learned that according to the Central Limit Theorem (CLT) sums of random variables, regardless of their form, will tend to be normally distributed. CLT does not require the variables in the...

block statistics with POSIX classes
Kahra Hannu · Sep 23, 2004 · r-help

I have followed Gabor's instructions: > aggregate(list(y=y), list(dp$year), mean)$y # returns NULL since y is a time series NULL > aggregate(list(y=as.vector(y)), list(dp$year), mean)$y # returns annual means [1] 0...

linear constraint optim with bounds/reparametrization
Kahra Hannu · Aug 9, 2004 · r-help

> from Ingmar Visser: >I would like to optimize a (log-)likelihood function subject to a number of >linear constraints between parameters. These constraints are equality >constraints of the form A%*%theta=c, ie (1,1) %*% 0.8,0.2)^t...

Long-short balanced portfolio optimization
KAHRA HANNU · May 31, 2005 · r-sig-finance

Jeff, here is the code I mentioned on Friday. The example is taken from Scherer's book. For some reason, I do not get exactly the same solution. > benchmark.relative.portfolio <- function(lamda,covmat,returns) + { + n <- dim(covmat) [2] + U...

block statistics with POSIX classes
Kahra Hannu · Sep 23, 2004 · r-help

Thank you Petr and Gabor for the answers. They did not, however, solve my original problem. When I have a monthly time series y with a POSIX date variable dp, the most obvious way to compute e.g. the annual...

Solve.QP
KAHRA HANNU · Jul 11, 2005 · r-sig-finance

Lorenzo, Have a look at the portfolio.optim R code and how it applies solve.QP. Download the tseries version 1.9 package and unzip it. The tseries folder contains a folder called R that contains the tseries file. Have...

Can't find what you're looking for? Try searching with Google .