Displaying 20 results from an estimated 58 matches for "structts".
Did you mean:
structs
2007 Apr 05
2
StructTS
I apologize in advance if I picked the wrong list to post this to. I
have made an effort to find the answers to these questions on CRAN,
but if they are there, I couldn't find them, and I was going to email
the developer of StructTS directly but could not find who that is.
I have 2 interrelated questions about StructTS
1. Where can I obtain the source code for StructTS if I wanted to
produce a similar function with an extended capability?
2. Would the person who developed StructTS have any interest in
adding the abili...
2010 Sep 10
0
How to call to R_KalmanLike from outside StructTS
Dear all:
I want to modify the 'StructTS' function from the 'stats' package. First, I am writing a working copy of the original version and got some problems.
I have two versions of the function plus the original one. The first version is the same code as the 'StructTS' function:
StructTS.v1 <- function (x, type =...
2003 Aug 27
1
Problem in StructTS() when the first element of the serie is NA ( (PR#3990)
Hi all,
I've experienced this problem using StructTS(x) when the *first* element of
x is a NA (R:R1.7.0, os: w2ksp4).
Please look at the following code:
a=rep(1:7,10)
library(ts)
#this works
StructTS(a)
#this works
x=a
x[2]=NA
StructTS(x)
#this doesn't work
x=a
x[1]=NA
StructTS(x)
The last command returns this error...
2010 Nov 30
1
StructTS with 2 seasons
Dear All,
I am trying to fit a structural time series model using the StructTS
function (package stats) with only 2 seasons (summer and winter). More
than 2 seasons work fine but with 2 seasons I get this error:
> fit <- StructTS(y.ts, type="BSM")
Error in T[cbind(ind + 1L, ind)] <- 1 : subscript out of bounds
I have looked at Prof. Ripley's 2002 RNew...
2012 Apr 30
2
The constant part of the log-likelihood in StructTS
Dear all,
I'd like to discuss about a possible bug in function StructTS of stats
package. It seems that the function returns wrong value of the
log-likelihood, as the added constant to the relevant part of the
log-likelihood is misspecified. Here is an simple example:
> data(Nile)
> fit <- StructTS(Nile, type = "level")
> fit$loglik
[1] -367.5194...
2011 Mar 08
3
This is supposed to predict a time series?!
Hello,
I just ran the predict.StructTS function using the AirPassengers data
and got a ridiculous result. Here's what I ended up with:
http://24.210.155.111/PredictWhat!.pdf
Who wrote this? Am I seriously supposed to think this function would
accurately predict a time series?
-AnalogKid
2004 Nov 09
1
StructTS (PR#7353)
Dear R-bugs
I have been studying the StructTS function (in package 'stats') and
functions supplied with it. I think I have found a few minor bugs in the
documentation.
I am referring to the version of StructTS supplied with the release R 2.0.0.
Output from 'version'
platform i386-pc-mingw32
arch i386
os m...
2002 Oct 29
2
StructTS
Dear all,
I am applying the StructTS function in ts-package. For some time series
the program terminates and the following error appears:
Error in optim(init[mask], getLike, method = "L-BFGS-B", lower = rep(0,
:
L-BFGS-B needs finite values of fn
Do someone know what do I have to adjust in the original time series...
2003 Jan 28
2
Error from StructTS
Hi,
I used function StructTS some time ago to fit a structural model to a time
series.
Now with R 1.6.2-1 I repeated the analysis with the same series and I get the
following error:
Error in KalmanLike2(y, Z, -1) : invalid argument type
I tried with other series and I get the same error; I checked the examples in
the do...
2009 Dec 17
1
StructTS standard errors
Hello,
Does anybody know if (and how) it is possible to obtain standard errors of estimated variances from StructTS? (R 2.10.0).
Thank you in advance,
Giovanni
2011 Feb 22
0
Problem with forward prediction using StructTS output
I am having problems with forward prediction using the output of the
Basic Structural Model from StructTS. The following snippet
illustrates the problem:
t_end <- 139
nahead <- 20
data(AirPassengers)
ap <- log10(AirPassengers)-2
fit <- StructTS(ts(ap[1:t_end], freq=12), type="BSM")
p <- stats:::predict.StructTS(fit, n.ahead=nahead)
plot(1:t_end, ap[1:t_end], xlim=c(0,t_end+na...
2012 May 15
1
StructTS Examples
In the examples for StructTS -- ($RHOME)/library/stats/man/StructTS.Rd -- could
par(mfrow = c(4, 1))
plot(log10(UKgas))
plot(cbind(fitted(fit), resids=resid(fit)), main = "UK gas consumption")
become
plot(log10(UKgas))
par(mfrow = c(4, 1))
plot(cbind(fitted(fit), resids=resid(fit)), main = "UK gas consumption...
2002 Sep 14
1
ts/structTS question
Dear All
I would like to use the StructTS function in the ts library to fit the '
BSM ' model.
I have some, probably basics, questions about the model and about the
function(s):
1) How can I check the statistical significance of the estimated
parameters(variances)?
2) Is there some way to find what component "dominate"...
2005 Jun 01
0
StructTS and arima and missing values
...1927 1922 1918 1914 1908 1902
[37] 1896 1890 1884 1878 1872
I am prepared to accept, for the sake of modelling, that these dates are
known and ignore the errors in the dating if that helps.
Having read Brian Ripley's article on Time series in R News Vol 2(2)
June 2002, I know that arima and StructTS can now handle missing values,
and there is some discussion about the specifics of how these functions
can handle missing values, but it is still not clear, in my mind at
least, if it would be appropriate to use arima or StructTS on data of
this nature -- I'm more interested in fitting a st...
2009 Oct 14
1
"Error: testing 'stats' failed" - R 2.9.2 on Linux
...*** [test-Examples-Base] Error 1
Looking at R-2.9.2/tests/Examples/stats-Ex.Rout.fail I see:
...
> ### ** Examples
> >
> > ## see also JohnsonJohnson, Nile and AirPassengers
> > require(graphics)
> >
> > trees <- window(treering, start=0)
> > (fit <- StructTS(trees, type = "level"))
>
> Call:
> StructTS(x = trees, type = "level")
>
> Variances:
> level epsilon
> 0.0003700 0.0719877
> > plot(trees)
> > lines(fitted(fit), col = "green")
> > tsdiag(fit)
> >
> >...
2012 Mar 23
2
Fwd: The StructTS method
To whomever it may concern,
I'm a young Industrial Engineer working on Senior Design at Georgia Tech and have found the StructTS method to be excellent for the training set for my forecasting project. There's only one problem: I don't actually understand what a Structural Time Series IS. I've looked up resources on it, and get that essentially you're dividing the Time Series in to additive components dependen...
2008 Apr 10
1
Structural Modelling in R-project
...a univariate time series and you
want to break it into its various components,
then you get the scalars based on a decomposition.
if you have a kalman filter/
basic strucutural model type setup ( i.e see harvey 1990, can 't remember title ), then you'll get matrices but I don't think structTS is used for the latter ? Professor Ripley, correct me if i'm wrong on that
because I don't use structTS.
I can't say much else but you may want to look at the DLM package if you are trying to do what I think you might be trying to do ?
>
>Hi all
>
>I was wondering if...
2015 Mar 16
0
Initial covariance matrix in StructTS
Dear all,
The definition of the initial covariance matrix P in StructTS function seems to be defined in a somewhat non-standard way without any references. Usually that matrix is defined as a diagonal matrix in case of structural time series models, but StructTS defines this as a singular matrix filled with 1e+06 * var(x, na.rm = TRUE)/100 where x is the time series b...
2002 Sep 11
1
StructTS questions
Dear All
I would like to use the StructTS function in the ts library to fit the '
BSM ' model.
I have some, probably basics, questions about the model and about the
function(s):
1) How can I check the statistical significance of the estimated
parameters(variances)?
2) Is there some way to find what component "dominate"...
2005 Jan 11
0
StructTS
Dear R-list,
I try to use StructTS for some univariate time series, with a type="BSM". I
have two questions:
1-in the "fitted" value of the object, it seems to me that for getting back
fitted values, one have to add level, slope and seasonal (or "level"
contains already the two other ones)
2-i am re...