Displaying 10 results from an estimated 10 matches for "close2ceo".
2006 Nov 08
5
query in R
how to realize the following SQL command in R?
select distinct A, B, count(C)
from TABLE
group by A, B
;
quit;
Best Regards
---------------------------------
Sponsored Link
Get a free Motorola Razr! Today Only! Choose Cingular, Sprint, Verizon, Alltel, or T-Mobile.
[[alternative HTML version deleted]]
2005 Nov 21
1
arima prediction
x<-c(-1.873....,-0.121) # 23 numerics;
x.arma12 <- armaFit(x ~ arma(1,2))
#estimates y[t]= -0.11465 - 0.23767 y[t-1] - 0.14230 e[t-1] -0.85770 e[t-2] + e[t];
# ? how to predict 46 steps ahead based on 23 data points?
# the following doesn't work since n is in armaSim rather than armaFit;
predict(x.arima12, n.ahead=46)
# Thanks
---------------------------------
2006 Nov 08
1
nls
> y
[1] 1 11 42 64 108 173 214
> t
[1] 1 2 3 4 5 6 7
> nls(1/y ~ c*exp(-a*b*t)+1/b, start=list(a=0.001,b=250,c=5), trace=TRUE)
29.93322 : 0.001 250.000 5.000
Error in numericDeriv(form[[3]], names(ind), env) :
Missing value or an infinity produced when evaluating the model
# the start value for b is almost close to final estimates,
# a is usually
2005 Oct 21
2
curve fit
How to obtain the FUNCTION for the following smooth curve?
x 0 100 250 500 1000 4000
y 1.8 1.2 1.02 0.99 0.97 0.85
Thanks,
SJ
---------------------------------
[[alternative HTML version deleted]]
2005 Oct 21
1
change maxiter for nls
I typed the following commands but it still use maxiter=50 after the 2nd command:
nls.control(maxiter = 1000)
nls(......)
Thanks!
---------------------------------
[[alternative HTML version deleted]]
2006 Aug 15
4
nls
Is there anyway to change any y[i] value (i=2,...6) to make following NLS workable?
x <- c(0,5,10,15,20,25,30)
y <- c(1.00000,0.82000,0.68000,0.64000,0.66667,0.68667,0.64000)
lm(1/y ~~ x)
nls(1/y ~~ a+b*x^c, start=list(a=1.16122,b=0.01565,c=1), trace=TRUE)
#0.0920573 : 1.16122 0.01565 1.00000
#Error in numericDeriv(form[[3]], names(ind), env) :
# Missing value or
2005 Nov 21
2
garch function in R
I'm using R 2.1.1 and just successfully installed packages tseries, fseries.
I try to run example
http://www.maths.lth.se/help/R/.R/library/tseries/html/garch.html
But it shows
> x.arch <- garch(x, order = c(0,2)) # Fit ARCH(2)
Error: couldn't find function "garch"
Then I run command
> help.search("garch")
it shows the R information.
2006 Nov 07
1
Rprofile.site
How to make it correct?
[1]
Error in parse(file, n = -1, NULL, "?") : syntax error at
1: {\
#source('c:/Documents and Settings/xxxxxxx/My Documents/Archives/R/test.r')
#source("c:\\Documents and Settings\\xxxxxxx\\My Documents\\Archives\\R\\test.r")
[2]
Error in file(file, "r", encoding = encoding) :
unable to open connection
In
2006 Jul 05
2
auto load package splines
May I ask how to include following procedures into R script (such as first.r) such that it will do an automatical call next time after I open R?
Packages -> Load Packages -> splines
Thanks,
Shelton
---------------------------------
[[alternative HTML version deleted]]
2006 Jul 07
1
convert ms() to optim()
How to convert the following ms() in Splus to Optim in R? The "Calc" function is also attached.
ms(~ Calc(a.init, B, v, off, d, P.a, lambda.a, P.y, lambda.y,
10^(-8), FALSE, 20, TRUE)$Bic,
start = list(lambda.a = 0.5, lambda.y = 240),
control = list(maxiter = 10, tol = 0.1))
Calc <- function(A.INIT., X., V., OFF., D.,
P1., LAMBDA1., P2., LAMBDA2.,
TOL., MONITOR.,