Displaying 20 results from an estimated 1000 matches similar to: "PS to Taking Integral and Optimization using Integrate() and Optim()"
2011 Jun 06
2
Taking Integral and Optimization using Integrate, Optim and maxNR
Dear All, Hello!
I have some questoins in R programming as follows:
Question 1- How to take the integral of this function with respect to y, such that x would appear in the output after taking integral.
f(x,y)=(0.1766*exp(-exp(y+lnx))*-exp(y+lnx))/(1-exp(-exp(y+lnx))) y in (-6.907,-1.246)
It is doable in maple but not in R. At least I could not find the way.
p.s: result from maple is:
2011 Dec 16
0
crash in using Rcpp and inline packages.
Hi all,
I am using c++ functions in R by Rcpp and inline packages.
The code is quite simple, but the R session always automatically crash after some running time.
Does anyone here familiar with Rcpp and inline? What¡¯s the problem in the following code?
I have checked the input values, no NA and other strange value exists.
Thank you for your attention!
> mkc <- cxxfunction(
2011 Dec 16
0
Fw: crash in using Rcpp and inline packages.
Hi all,
I am using c++ functions in R by Rcpp and inline packages.
The code is quite simple, but the R session always automatically crash after some running time.
Does anyone here familiar with Rcpp and inline? What¡¯s the problem in the following code?
I have checked the input values, no NA and other strange value exists.
Thank you for your attention!
> mkc <- cxxfunction(
2007 May 03
0
Ryacas now on CRAN
Ryacas is now available on CRAN. (Previously it was
available on the Omegahat repository.)
Ryacas is an R package that provides an interface from R to
the yacas computer algebra system. It can be used for
computer algebra, exact arithmetic, ASCII pretty printing
and R to TeX output. R, yacas and Ryacas are all free
software packages distributed under the GPL version 2.
Ryacas is written in R.
2007 May 03
0
Ryacas now on CRAN
Ryacas is now available on CRAN. (Previously it was
available on the Omegahat repository.)
Ryacas is an R package that provides an interface from R to
the yacas computer algebra system. It can be used for
computer algebra, exact arithmetic, ASCII pretty printing
and R to TeX output. R, yacas and Ryacas are all free
software packages distributed under the GPL version 2.
Ryacas is written in R.
2007 Jul 14
1
How to remove the quote "" in the data frame?
If I do not add "ress" into the data frame "res", there is no quote in the
data frame. However, I add "ress", all column were found the quote.
How to remove it?
If you can delete the quote in the file "ress", that is better.
Thanks.
> ress[1:10]
[1] "ABHO.ABNE" "ABHO.ACBA" "ABHO.ACGI" "ABHO.ACKO"
2006 Apr 11
1
gaussian family change suggestion
Hi,
Currently the `gaussian' family's initialization code signals an error if
any response data are zero or negative and a log link is used. Given that
zero or negative response data are perfectly legitimate under the GLM
fitted using `gaussian("log")', this seems a bit unsatisfactory. Might
it be worth changing it?
The current offending code from `gaussian' is:
2006 May 14
1
Dragable element
Hey all
Im having a problem... Ok, this is the situation...
I have a small product image, on which ive floated a div over it, and
defined it as draggable. Now, this works, and i can drag it around no
problem. great. but then, what i want to do is, based on the location of
that dragable element from the top and the left, to move (using the
Effect.MoveBy method) a larger image - so effective
2006 Oct 16
2
New package Ryacas
Ryacas is an R interface to the free yacas computer algebra
system. Ryacas allows one to send R expressions,
unprocessed yacas strings and certain other R objects to a
separate yacas process from R and get back the result. It
also has facilities for manipulating yacas strings and R
expressions destined for yacas processing.
It can be used for exact arithmetic, symbolic math, ASCII
pretty
2006 Oct 16
2
New package Ryacas
Ryacas is an R interface to the free yacas computer algebra
system. Ryacas allows one to send R expressions,
unprocessed yacas strings and certain other R objects to a
separate yacas process from R and get back the result. It
also has facilities for manipulating yacas strings and R
expressions destined for yacas processing.
It can be used for exact arithmetic, symbolic math, ASCII
pretty
2006 Oct 16
2
New package Ryacas
Ryacas is an R interface to the free yacas computer algebra
system. Ryacas allows one to send R expressions,
unprocessed yacas strings and certain other R objects to a
separate yacas process from R and get back the result. It
also has facilities for manipulating yacas strings and R
expressions destined for yacas processing.
It can be used for exact arithmetic, symbolic math, ASCII
pretty
2007 Nov 28
1
ifelse function
Hi there,
I need help with IFELSE function.
The column g of my dataset pth, pth$g consists of "aa", "ao", "dcl", "iy",
"sh".
The last few values of pth$g looks like:
[4496] sh ao ao sh iy dcl dcl aa iy iy aa sh ao ao
Levels: aa ao dcl iy sh
I want to convert these values into 1,2,3,4,5. I tried to use a loop and I
found the following
2012 Dec 05
1
loading & using Ryacas
I'm having trouble loading Ryacas. I've downloaded and extracted Ryacas
0.2-9 (also tried Ryacas ) and yacas 1.0.63, have the latest version of R
and have tried the following (this works for installing other packages):
install.packages("Ryacas")
library(Ryacas)
install.packages("yacas")
library(yacas)
and get this:
Warning message:
package ‘yacas’ is not available
2010 Nov 13
0
RESS "ActiveX component can't create object"
Hello,
I'm trying to run the program "Real Estate Success System" and when I do I receive the following error. Run-time error '429': ActiveX component can't create object
I was receiving errors about missing dll's but I have been able to register those and now I'm stuck at this ActiveX component error.
System: Ubuntu 10.10 running Wine 1.3.6
Console output:
2012 Mar 10
1
applying a function in list of indexed elements of a vector:
Hi,
I have a vector
Y1 <-c(8, 11, 7, 5, 6, 3, 6, 3, 3)
and an index
iy <-c(c(1, 2),c(1 2), c(1, 2, 3, 4), c(2, 3, 5), c(4), c(5, 6, 7), c(7,
8, 9))
how can I produce the mean, or the sum of the elements specified in the
index iy from the vector Y1?
expecting something like this for the sum:
Y2
19 19 31 24 5 15 12
I thought lapply function may perform this, but does not work:
2012 Oct 20
2
Help with programming a tricky algorithm
Hi All,
I'm a little stumped by the following problem. I've got a dataset with
the following structure:
idxy ix iy country (other variables)
1 1 1 c1 x1
2 1 2 c1 x2
3 1 3 c1 x3
. . . . .
3739 55 67 c7 x3739
3740 55 68 c7 x3740
where ix and
1997 Jul 14
1
R-beta: Plotting: numeric 'col' colors; col=0, col=1, .. | Nice "funclet"
``We all know''
that R has more flexible and nicer color specifications than S-plus.
There are situations however, where I'd like to specify colors numerically,
e.g.
1) convenience of using different colors in a for(.) loop
or
2) backward compatibility with S.
In S, there's the quite known ``standard''
col = 0 :<==> current background color [ = white by
2012 Sep 04
3
Ryacas
I am having issues with Ryacas errors. I searched and found this error was
reported in 2006, but nothing since.
> library(Ryacas)
Loading required package: XML
> yacas(expression(Factor(x^2-1)))
[1] "Starting Yacas!"
CommandLine(1) : Expecting ) closing bracket for sub-expression, but got ^
instead
> yacas("D(x)Sin(x)")
CommandLine(1) : Expecting ) closing bracket
2004 Aug 06
0
correspond
DEAR SIR.
I am HAJIYA MARYAM ABACHA, wife of the late Nigeria
Head of
State,General Sanni Abacha who died on the 8th of
June, 1998 while still on active
duty. l am contacting you in view of the fact that we
will be of great
assistance to each other likeness developing a cordial
relationship.
I currently have within my reach the sum of FIFTY TWO
MILLION US
Dollars (US$52,000,000.00) cash which l
2004 Aug 06
0
correspond
DEAR SIR.
I am HAJIYA MARYAM ABACHA, wife of the late Nigeria
Head of
State,General Sanni Abacha who died on the 8th of
June, 1998 while still on active
duty. l am contacting you in view of the fact that we
will be of great
assistance to each other likeness developing a cordial
relationship.
I currently have within my reach the sum of FIFTY TWO
MILLION US
Dollars (US$52,000,000.00) cash which l