Displaying 20 results from an estimated 400 matches similar to: "ts model challenge (transfer function)"
2012 Feb 29
2
How to replace the values in a column
Dear All,
I've been searching relevant topics about replacing values, none seemed to
be applicable to me...
I have a file with many many varieties, and want to replace some of them
into different names.
I tried various of ways, still don't know how to do that most efficiently..
Here is part of the example data:
Gen Rep
A_1 1
A_1 2
A_2 1
A_2 2
B_1 1
B_1
2012 Jun 28
0
How to calculate Confidence Interval for a prediction using Partial Regression?
Dear all,
I have two highly correlated variables (y and x), and both of them depend
on a third variable (A, for Area). Multiple regression (y=a+(b*x)+(c*A))
would have collinearity problems, so I decided to do a partial regression
to predict y. I did it this way:
- I regressed y to A, and calculated the residuals (e_y) (reg1)
- I regressed x to A, and calculated the residuals (e_x) (reg2)
2004 Oct 01
2
multiple dimensional diag()
Hi
I have two arbitrarily dimensioned arrays, "a" and "b", with
length(dim(a))==length(dim(b)). I want to form a sort of
"corner-to-corner" version of abind(), or a multidimensional version
of blockdiag().
In the case of matrices, the function is easy to write and if
a=matrix(1,3,4) and b=matrix(2,2,2), then adiag(a,b) would return:
[,1] [,2] [,3] [,4] [,5]
2011 Jan 03
1
Greetings. I have a question with mixed beta regression model in nlme.
*Dear R-help:
My name is Rodrigo and I have a question with nlme package
in R to fit a mixed beta regression model. The details of the model are:
Suppose that:*
*j in {1, ..., J}* *(level 1)*
*i in {1, ..., n_j}* *(level 2)*
*y_{ij} ~ Beta(mu_{ij} * phi_{ij}; (1 - mu_{ij}) * phi_{ij})
y_{ij} = mu_{ij} + w_{ij}
*
*with*
*logit(mu_{ij}) = Beta_{0i} + Beta_{1i} * x1_{ij} + b2 * x2_{ij}
2011 Jan 03
0
Greetings. I have a question with mixed beta regression model in nlme (corrected version).
*Dear R-help:
My name is Rodrigo and I have a question with nlme package
in R to fit a mixed beta regression model. I'm so sorry. In the last
email, I forgot to say that W is also a unknown parameter in the mixed
beta regression model. In any case, here I send you the correct formulation.
**
Suppose that:*
*j in {1, ..., J}* *(level 1)*
*i in {1, ..., n_j}* *(level 2)*
*y_{ij} ~
2008 Jul 25
3
Numerical question
Hi all,
I have n independent variables A_1, A_2, A_3,......,A_n, and each with known variances var(A_1), var(A_2),..., but unknown mean. How can I get the approximation of the variance of the product of the variables using numerical computation, i.e. var(A_1*A_2*A_3*.....*A_n)? Thanks.
Sincerely,
Yanwei Zhang
Department of Actuarial Research and Modeling
Munich Re America
Tel: 609-275-2176
2013 Mar 22
1
Integration of vector syntax unknown
Hello,
I'm very new to using R, but I was told it could do what I want. I'm not sure how best to enter the information but here goes...
I'm trying to transfer the following integral into R to solve for ln(gamma_1), on the left, for multiple instances of gamma_i and variable N_i.
gamma_i is, for example, (0, 0.03012048, 0.05000000, 0.19200000, 0.44000000, 0.62566845)
N_i (N_1 or
2007 Mar 29
3
Tail area of sum of Chi-square variables
Dear R experts,
I was wondering if there are any R functions that give the tail area
of a sum of chisquare distributions of the type:
a_1 X_1 + a_2 X_2
where a_1 and a_2 are constants and X_1 and X_2 are independent chi-square variables with different degrees of freedom.
Thanks,
Klaus
--
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
2004 Oct 13
0
RE: [R] debugging non-visible functions
On Wed, 13 Oct 2004, Duncan Temple Lang wrote:
> Prof Brian Ripley wrote:
> > On Wed, 13 Oct 2004, Liaw, Andy wrote:
> >
> >
> > > On a slightly different topic: In R-2.0.0, packages with NAMESPACE no
> > > longer need to use the package= argument in .C/.Fortran. Does that mean if
> > > I remove those arguments, I should put R version >=
2013 Sep 26
1
Queue Management
Dear All,
I have six different campaign and 5 different agent have login on that
campaign.*Same thing i have done using agi and database,i never use queue
management on this scenario. Agent** can also shuffling one campaign to
anther campaign. *
Now i want to do some work with queue.I want to use single queue to
managing this.
Eg:
campaign Agent Login
A
a_1,a_3
2010 Jul 07
1
problems with write.table, involving loops & paste statement
Hi!
I want to write portions of my data (3573 columns at a time) to twenty
folders I have available titled "A_1" to "A_20" such that the first 3573
columns will go to folder A_1, next 3573 to folder A_2 and so on.
This code below ensures that the data is written into all 20 folders, but
only the last iteration of the loop (last 3573 columns) is being written
into ALL of the
2011 Nov 22
1
Generate Simulation
Hallo everybody,
I'm new in r and I"ll appreciate some help!
I have a matrix of nrow=30 and ncoll=54,and I would like to generate 50
simulations with tha same size of the matrix!!!That is to say that I want
to generate 50 matrices -for my 50 simulations - with the same dimensions!
I took my 1st matrix according to the formula that I want to implement:
D<-mean_m + U_i*mat_DELTA
2004 Dec 09
3
surf.ls
Hello,
I am looking into description of surf.ls(spatial)
and see under value $beta - the coefficients.
When I use polynomial of degree 2 to fit surface
I expect to get 4 coefficients:
z = a_1 x^2 + a_2 xy + a_3 y^2 + a_4
What do beta really stand for and why do I get
$beta vector of length 6?
Thakns,
Mark
2007 Mar 05
1
Heteroskedastic Time Series
Hi R-helpers,
I'm new to time series modelling, but my requirement seems to fall just
outside the capabilities of the arima function in R. I'd like to fit an
ARMA model where the variance of the disturbances is a function of some
exogenous variable. So something like:
Y_t = a_0 + a_1 * Y_(t-1) +...+ a_p * Y_(t-p) + b_1 * e_(t-1) +...+ b_q *
e_(t-q) + e_t,
where
e_t ~ N(0, sigma^2_t),
2011 Nov 06
2
how to use quadrature to integrate some complicated functions
Hello to all,
I am having trouble with intregrating a complicated uni-dimensional function
of the following form
Phi(x-a_1)*Phi(x-a_2)*...*Phi(x-a_{n-1})*phi(x-a_n).
Here n is about 5000, Phi is the cumulative distribution function of
standard normal,
phi is the density function of standard normal, and x ranges over
(-infty,infty).
My idea is to to use quadrature to handle this integral. But
2008 Aug 24
0
[LLVMdev] Dependence Analysis [was: Flow-Sensitive AA]
> I asked myself the same question. Without mod, how do you ensure that for instance the expression 2*i+255 was not actually 2*i-1 ?
I think it is not possible in general, but I believe it is possible in
case of affine expressions used as GEP indices.
I assume, GEP indices (except indexing into struct) are interpreted as
signed integers. It isn't explicitly stated in the LangRef, but
2003 Feb 19
4
fitting a curve according to a custom loss function
Dear R-Users,
I need to find a smooth function f() and coefficients a_i that give the best
fit to
y ~ a_0 + a_1*f(x_1) + a_2*f(x_2)
Note that it is the same non-linear transformation f() that is applied to
both x_1 and x_2.
So my first question is how can I do it in R?
A more general question is this: suppose I have a utility function U(a_i,
f()), where f() is say a spline. Is there a general
2006 Jun 06
1
Problems using quadprog for solving quadratic programming problem
Hi,
I'm using the package quadprog to solve the following quadratic programming problem.
I want to minimize the function
(b_1-b_2)^2+(b_3-b_4)^2
by the following constraints b_i, i=1,...,4:
b_1+b_3=1
b_2+b_4=1
0.1<=b_1<=0.2
0.2<=b_2<=0.4
0.8<=b_3<=0.9
0.6<=b_4<=0.8
In my opinion the solution should be b_1=b_2=0.2 und b_3=b_4=0.8.
Unfortunately R doesn't find
2012 Dec 18
1
multi dimensional optim problem
I am attempting to use optim to solve a neural network problem. I would like to optimize coefficients that are currently stored in a matrix
Y=270 x 1
X= 27- x 14
b1= 10x14
b2= 11x1
V= 10 x 14 set of prior variances.
I have the following function:
posterior.mode1=function(y,X,b_0,b2,V) {
log.like=function(b1) {
a_g=compute(b1)
z_g=tanh(a_g);
z_g=cbind(1,z_g)
2011 Sep 02
1
Using capture.output within a function
Dear R-users
I'm running a maximum likelihood procedure using the spg package. I'd like
to save some output produced in each iteration to a file, but if I put the
capture.output() within the function I get the following message; Error in
spg(par = startval, fn = loglik, gr = NULL, method = 3, lower = lo, :
Failure in initial function evaluation!Error in -fn(par, ...) : invalid
argument