Displaying 20 results from an estimated 7000 matches similar to: "question"
2009 Mar 05
2
Overriding contributed package functions
The "tsdiag" function in the TSA package overrides the "tsdiag" function in
the "stats" package. There are a few annoying bugs in the TSA's version of
the function so I would like to use the "stats" function but still have
access to other TSA functions. I have tried using stats::tsdiag( ) but as
long as the TSA package is attached the function from
2006 Mar 04
1
replicated time series - lme?
Dear R-helpers,
I have a time series analysis problem in R:
I want to analyse the output of my simulation model which is proportional
cover of shrubs in a savanna plot for each of 500 successive years. I have
run the model (which includes stochasticity, especially in the initial
conditions) 17 times generating 17 time series of shrub cover.
I am interested in a possible periodicity of shrub
2017 Jul 07
1
Scoring and Ranking Methods
Hi,
I am doing predictive modelling of Multivariate Time series Data of a Motor
in R using various models such as Arima, H2O.Randomforest, glmnet, lm and
few other models.
I created a function to select a model of our choice and do prediction.
Model1 <- function(){
..
return()
}
Model2 <- function(){
...
return()
}
Model3 <- function(){
...
return()
}
main <-
2008 May 08
1
ARIMA, AR, STEP
Here is my problem:
Autoregressive models are very interesting in forecasting consumptions (eg water, gas etc).
Generally time series of this type have a long history with relatively simple patterns and can be useful to add external regressors for calendar events (holydays, vacations etc).
arima() is a very powerful function but kalman filter is very slow (and I foun difficulties of estimation)
2009 Jan 27
2
optim() and ARIMA
dhabby wrote:
Last week I run in to a lot a problems triyng to fit an ARIMA model to a
time series. The problem is that the internal process of the arima
function
call function "optim" to estimate the model parameters, so far so good...
but my data presents a problem with the default method "BFGS" of the
optim
function, the output error looks like this:
2005 Dec 01
3
Strange Estimates from lmer and glmmPQL
I'm trying to fit a generalized mixed effects model to a data set where
each subject has paired categorical responses y (so I'm trying to use a
binomial logit link). There are about 183 observations and one
explanatory factor x. I'm trying to fit something like:
(lmer(y~x+(1|subject)))
I also tried fitting the same type of model using glmmPQL from MASS. In
both cases, I get a
2001 Dec 16
3
Arima
I did a regression with ARMA errors using arima0 with
ari<-arima0(y,order=c(2,0,2),xreg=reg1,delta=-1)
or
ari<-arima0(y,order=c(2,0,2),xreg=reg1)
where reg1 is the matrix of the regressors and when I see diag(ari$var.coef)
I get negative terms. Do you know what this mean ?
I try to change transform.pars to 0 or 1 but this crash R on Windows.
Is it possible to test the significativity
2012 May 17
2
glm convergence warning
Hi,
When I run the following code :
Y <- c(rep(0,35),1,2,0,6,8,16,43)
cst <- log(choose(42, 42:1))
beta <- 42:1
tau <- (beta^2)/2
fit <- glm(formula = Y ~ offset(cst) + beta + tau, family = poisson)
fit
fit$converged
glm prints a warning saying that the algorithm did not converge.
However, fit$converged takes the value TRUE.
I don't understand why fit$converged is not
2003 Jul 08
2
NLME Fitted Values
Dear List:
I am having difficulties with the fitted values at different levels of a multilevel model. My data set is a series of student test scores over time with a total of 7,280 observations, 1,720 students nested witin 60 schools. The data set is not balanced.
The model was fit using
eg.model.1<-lme(math~year, random=~year|schoolid/childid, data=single).
When I call the random
2010 Jan 11
2
warning inside loop
Hi,
I'm running some data simulations using (mixed effects)* regression models
that show difficulty to converge. Therefore, I seek a way of capturing
warnings (of false convergence) inside a loop.
Inside that loop, I modify data and estimate a model. I do so many times
with slightly different modifications of the data. Next, I extract some of
the model parameters and store these in a matrix.
2009 Aug 28
4
Objects in Views
Hi everyone,
I have recently experienced a strange behavior (strange from my knowledge)
in rails.
In my controllers ''new'' action, I am creating a few instance variables in
the following manner :
@controllerModel = ControllerModel.new
@model1 = Model1.all
@model2 = Model2.all
in my ''new'' view, I am using the @controllerModel to create the form for new
and I
2011 Jul 07
3
AR vs ARIMA question
Dear R People:
Here is some output from AR and ARIMA functions:
> xb <- arima.sim(n=120,model=list(ar=0.85))
> xb.ar <- ar(xb)
> xb.ar
Call:
ar(x = xb)
Coefficients:
1
0.6642
Order selected 1 sigma^2 estimated as 1.094
> xb.arima <- arima(xb,order=c(1,0,0),include.mean=FALSE)
> xb.arima
Call:
arima(x = xb, order = c(1, 0, 0), include.mean = FALSE)
2009 Jul 10
1
problems with contrast matrix
Dear lme and lmer -ers,
I have some problems using "home-made" contrast matrix in lme and lmer.
I
did an experiment to investigate the relationship between the response of an animal and some factors, namely the light wavelength (WA), the light intensity to which this animal was exposed and the sex of the animal
tested.
- The response can be a variable LA (normal
distribution) or
2012 Mar 01
2
identifying a column name correctly to use in a formula
Hi,
I have a large matrix (SNPs) that I want to cycle over with logistic
regression with interaction terms. I have made a loop but I am struggling
to identify to the formula the name of the column in a way which is
meaningful to the formula. It errors becasue it is not evaluated proporly.
(below is a pilot with only 7 to 33 columns, my actual has 200,000 columns)
My attempts:
for (i in 7:33)
2004 Feb 04
1
arima function
Hello,
I am a beginner user of R and I would like to estimate a model with AR
errors. I use arima function:
modele
<-arima(conso,xreg=var.exogenes,order=c(ordre,0,0),include.mean=TRUE,method
="CSS")
My inputs are dummies for each month except one, and the same thing for
each day and each hour. I have this error message:
Warning message:
possible convergence problem: optim gave
2010 Apr 01
2
Adding regression lines to each factor on a plot when using ANCOVA
Dear R users,
i'm using a custom function to fit ancova models to a dataset. The data are
divided into 12 groups, with one dependent variable and one covariate. When
plotting the data, i'd like to add separate regression lines for each group
(so, 12 lines, each with their respective individual slopes). My 'model1'
uses the group*covariate interaction term, and so the coefficients
2005 Oct 10
1
using innov in arima.sim
Hello,
I have used the arima.sim function to generate a lot of time series, but to day I got som results that I didn't quite understand. Generating two time series z0 and z1 as
eps <- rnorm(n, sd=0.03)
z0 <- arima.sim(list(ar=c(0.9)), n=n, innov=eps)
and
z1 <- arima.sim(list(ar=c(0.9)), n=n, sd=0.03),
I would expect z0 and z1 to be qualitatively similar. However, with n=10 the
2003 Jun 10
5
bug in glm()? (PR#3223)
Full_Name: Bonnie
Version: 1.6.1
OS: Windows
Submission from: (NULL) (160.129.25.106)
glm() seems to converge, even when it shouldn't. I am trying to fit a model
where $converge=FALSE and I am fitting models that do not converge in SAS,
but they seem to converge in R ...
Thank you.
2010 Aug 10
1
extracting information from an object
I was working on a project involving a linear model, and wanted to
extract the standard error of a predictor. I am able to do so, but not
in the way I would expect.
I would have expected that if a created a model such as Model1 <-
lm(y~x,z,d), the object Model1 would contain that information even
though it does not print it out when I simply type Model1. I would also
have (wrongly)
2006 May 03
5
Multiple Scaffolds
I''d like to create scaffolds for each of the tables in my database, but
would like to access them below the path: localhost:3000/admin
For example localhost:3000/admin/table1
localhost:3000/admin/table2
Where table1 and table2 would be the controller names respectively,
calling their own list.rhtml, show.rhtml, edit.rhtml, etc..
Any recommendations on how/where to