Displaying 20 results from an estimated 2000 matches similar to: "lag (PR#491)"
2006 Jan 22
1
NAs in optim
Hi,
I am trying to maximize a utility function using optim. I have a problem
with optim, since some of the values in the caw, mom, me and btm matrixes in
the code bellow are missing. Is there a handy way just to skip the missing
values in the loop?
g <- 5
retp <- NULL
object <- function (x)
{
b1 <- x[1]
b2 <- x[2]
b3 <- x[3]
for(i in 1:nrow(ret)){
for(j
2006 Mar 23
1
R 2.2.1: install packages
Hi,
when using a laptop and trying to install packages for R for Windows 2.2.1 I
get the following error
> utils:::menuInstallPkgs()
--- Please select a CRAN mirror for use in this session ---
Warning: unable to access index for repository
http://cran.dk.r-project.org/bin/windows/contrib/2.2
Warning: unable to access index for repository
1998 Oct 07
2
R-beta: R0.62.3 installation on RedHat 5.0
I have R-0.62.3 and RedHat 5.0 with fort77.
At the office R is running but when I install a package, eg. 'akima'
I get a message
make: f77: Command not found
'R INSTALL library' does not accept fort77, but R installation checks
f77/g77/fort77. Is there an easy way to edit some file and replace
f77/g77 with fort77?
At home I have the same R and Linux versions, but when
2004 Dec 02
0
A somewhat off the line question to a log normal distribution
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 sum to come from the same underlying distribution.
Ciao,
Hannu Kahra
Progetti Speciali
Monte Paschi Asset Management SGR S.p.A.
Via San Vittore, 37
IT-20123
2004 Sep 22
5
block statistics with POSIX classes
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 y.
When studying the POSIX classes, in the first stage of the learning curve, I computed the maximum drawdown of x:
> mdd <- maxdrawdown(x)
> max.dd <- mdd$maxdrawdown
> from
1998 Oct 08
0
R-beta: R0.62.3/RedHat 5.0/fort77
>>I have R-0.62.3 and RedHat 5.0 with fort77.
>>
>>At the office R is running but when I install a package, eg. 'akima'
It seems R does not install completely with fort77. I am able to run
a demo, but when I study more carefully $RHOME/bin is empty: there is
no R binary or a shell script?
>>At home I have the same R and Linux versions, but when installing R a
1999 Apr 22
2
R compiling on SOLARIS 2.6
We here at HGSI have a consultant doing some statistical work for us.
HGSI bought and installed SAS, but our consultant insists that R and
Rweb is a better solution. I do not know either package so I do not
know, hence we are ditching SAS for R and Rweb. Any comments on this
are welcom.
Now for the real problem. Rweb is very expensive (time wise). The
number of prereqs is way more than I thought
2009 Jul 04
2
Shading the area between lines
Hi,
I have a graph with seven parallel horizontal lines. Is it possible to
shade the area between two adjacent lines?
Thank you in advance,
Hannu
2011 Apr 27
1
read.table: fill=T for header?
Dear ExpeRts,t
I am trying to read tab delimted data produced by somewhat brain dead
software that seems to think it's a good idea to have an extra tab
character after the last column - except for the header line. As
explained in the help page, read.delim now assumes that the first
column contains the row.names (which is not even wrong) but now and all
col.names get shiftet by one column.
2010 Nov 11
1
Tinn-R_2.3.6.0
Hi,
I just found out that Tinn-R_2.3.6.0 is now available on
http://sourceforge.net/projects/tinn-r/.
When configuring Tinn-R: R > Configure > Permanent (Rprofile.site) I get
error
C:\Program Files\R\R-2.12.0\bin\etc\RProfile.site
The above file was not found.
Please try to repeat the procedure!
The correct path for RProfile.site is
C:\Program Files\R\R-2.12.0\etc\Rprofile.site
I was
2010 Nov 10
4
Installing R and an editor on a USB drive
Hi,
I have adviced my students to install R and an editor on a USB drive for
working in the computer class. With R everything works fine following these
instructions: http://personal.bgsu.edu/~mrizzo/Rmisc/usbR.htm.
But several editors (e.g., Tinn-R and WinEdt) require administrator rights.
I have found out that Emacs (Vincent Goulet's Emacs for Windows Modified
2007 Mar 10
2
barplot, for loop?
Hi R-users,
I have a dataset like this:
kuvaaja
kuva
yhteispisteet
Hannu
isokala
8
Hannu
kaapin alta löytynyt
2
Hannu
kaapin alta löytynyt 2
8
Hannu
limamikko
1
Hannu
maukasta marmeladia
8
Hannu
skrinnareita
4
Hate
madekoukkujen suojelupyhimys
3
Hate
matka aikaan joka ei enää palaa
3
Hate
munat puoliks padassa
6
Hate
pyynikki
2
Hate
vailla armeerausta
2
2007 Mar 11
1
recoding question
Hi R-users,
I have a data frame like this:
photographer category picture points
Hannu kalat limamikko 1
Teemu kalat verkkovaja 3
Hate kalat munat puoliks padassa 6
Hannu kalat isokala 8
Teemu kasvit, sienet ja muut eliöt harppi 2
Hate kasvit, sienet ja muut eliöt pyynikki 2
Petteri kasvit, sienet ja muut eliöt harmaaleppä 5
Lauri kasvit, sienet ja muut eliöt lumipuu 9
Teemu linnut kainostelua 1
2004 Sep 23
3
R glm
Hello:
would you please help me with the following glm question?
for the R function glm, what I understand is: once you specify the
"family", then the link function is fixed.
My question is: is it possible I use, for example, "log" link function,
but the estimation approach for the guassian family?
Thanks,
Shuangge Ma, Ph.D.
********************************************
*
2010 Apr 16
3
run R script from Excel VBA
I wrote a R script say called computeCovarMatrix.R and i want to call and
run this piece from Excel visual basic. does anyone know how to do that?
thanks,
KZ
[[alternative HTML version deleted]]
2004 Aug 09
4
linear constraint optim with bounds/reparametrization
Hello All,
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 = 1 meaning
that these parameters should sum to one. Moreover, there are bounds on the
individual parameters, in most cases that I am considering parameters are
bound between zero
2000 Feb 25
1
r-excel interface code
some of you might be interested.
i just uploaded the first release of my
r-excel interface package to CRAN.
it is in
contributed extensions
nonstandard extensions
erich neuwirth
--
Erich Neuwirth, Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
2000 Feb 25
1
r-excel interface code
some of you might be interested.
i just uploaded the first release of my
r-excel interface package to CRAN.
it is in
contributed extensions
nonstandard extensions
erich neuwirth
--
Erich Neuwirth, Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
2010 Feb 23
5
export tables to Excel files
Dear R users,
I've just posted a similar question about Illustrator.
This time I would like to export the results of my statistic tables and
my dataframes into Excel files.
Up to now I've used write.csv(), but I have to resave every file in .xls
in Excel.
I would like to know if there is a function or package to export
directly into *.xls.
I have found xlsReadWrite which would be
2006 Sep 01
3
Date conversion with as.POSIXct and as.POSIXlt (PR#9196)
Full_Name: Erich Neuwirth
Version: 2.3.1
OS: Windows XP, Linux
Submission from: (NULL) (131.130.135.167)
Converting Sys.Date() to a POSIX compliant time type in different ways
produces inconsistent results:
> Sys.date()
[1] "2006-09-01"
> as.POSIXct(Sys.Date())
[1] "2006-09-01 02:00:00 CEST"
> as.POSIXlt(Sys.Date())
[1] "2006-09-01"
>