search for: fyy

Displaying 7 results from an estimated 7 matches for "fyy".

Did you mean: fyi
2006 May 01
4
efficiency in merging two data frames
...a short program for this, but it runs very slow. 15+ minutes. Is there quick way to do it. Here is my original codes. id$fy=rep(0,length(id$PERMNO)) for (i in 1:length(id$PERMNO)) id$fy[[i]]<-account$FYR[id$GVKEY[[i]]==account$GVKEY][[1]] return$GVKEY=rep(0,length(return$PERMNO)) return$fyy=rep(0,length(return$PERMNO)) return$fyq=rep(0,length(return$PERMNO)) for (i in i:length(return$PERMNO)) { temp<-id$PERMNO==return$PERMNO[[i]]; tempmon<-id$fy[temp][[1]]; if (return$month[[i]]<-tempmon) { return$fyy[[i]]<-return$year[[i]]; return$fyq[[i]]<-4-(tempmon-ret...
2017 Mar 19
2
outer not applying a constant function
...ns to be constant it fails. So e.g this works: library(Deriv) f <- function(x,y) (x-1.5)*(y-1)*(x-1.8)+(y-1.9)^2*(x-1.1)^3 fx <- Deriv(f,"x") fy <- Deriv(f,"y") fxy <- Deriv(Deriv(f,"y"),"x") fxx <- Deriv(Deriv(f,"x"),"x") fyy <- Deriv(Deriv(f,"y"),"y") fg <- outer(xg,yg,f) fxg <- outer(xg,yg,fx) fyg <- outer(xg,yg,fy) fxyg <- outer(xg,yg,fxy) fxxg <- outer(xg,yg,fxx) fyyg <- outer(xg,yg,fyy) And with f <- function(x,y) x+y it stops working. Of course I can manually fix...
2017 Mar 20
1
outer not applying a constant function
...- function(x,y) (x-1.5)*(y-1)*(x-1.8)+(y-1.9)^2*(x-1.1)^3 > > fx <- Deriv(f,"x") > > fy <- Deriv(f,"y") > > fxy <- Deriv(Deriv(f,"y"),"x") > > fxx <- Deriv(Deriv(f,"x"),"x") > > fyy <- Deriv(Deriv(f,"y"),"y") > > > fg <- outer(xg,yg,f) > > fxg <- outer(xg,yg,fx) > > fyg <- outer(xg,yg,fy) > > fxyg <- outer(xg,yg,fxy) > > fxxg <- outer(xg,yg,fxx) > > fyyg <- outer(xg,yg,f...
2017 Mar 20
0
outer not applying a constant function
...ry(Deriv) > f <- function(x,y) (x-1.5)*(y-1)*(x-1.8)+(y-1.9)^2*(x-1.1)^3 > fx <- Deriv(f,"x") > fy <- Deriv(f,"y") > fxy <- Deriv(Deriv(f,"y"),"x") > fxx <- Deriv(Deriv(f,"x"),"x") > fyy <- Deriv(Deriv(f,"y"),"y") > fg <- outer(xg,yg,f) > fxg <- outer(xg,yg,fx) > fyg <- outer(xg,yg,fy) > fxyg <- outer(xg,yg,fxy) > fxxg <- outer(xg,yg,fxx) > fyyg <- outer(xg,yg,fyy) > And with > f...
2008 Mar 25
3
derivatives in R
Hi, I posted this message earlier in "Rmetrics" and I don't know whether I posted in the wrong place, so I'm posting it again in Rhelp. I have a function in x and y and let's call it f(x,y). I need to get the Hessian matrix. i.e I need (d^2f/dx^2), (d^2f/dxdy), (d^2f/dydx), (d^2f/dy^2).I can get these using the D function. now I need to evaluste the hessian matrix for
1998 Jun 04
1
Funny caching problem
...)\^(CL1`0:0"``$```````!``$``0>0!@`(````Y`0```````#H``$(@`<` M&````$E032Y-:6-R;W-O9G0@36%I;"Y.;W1E`#$(`06``P`.````S@<&``0` M$@`[`#<`!`!G`0$@@`,`#@```,X'!@`$`!(`.P`W``0`9P$!"8`!`"$```!& M,S0T0T8W1D%#1D)$,3$Q.$(Y-S`P-C`Y-S@R-T0U0@!&!P$$@`$`%@```$9U M;FYY(&-A8VAI;F<@<')O8FQE;0`."`$-@`0``@````(``@`!`Y`&`/@&```@ M`````P`F```````#`#8```````(!"1`!````/`,``#@#```-!0``3%I&=;B: M^:H#``H`<F-P9S$R-?XR`/\"!@*D`^0%ZP*#`%`3`U0"`&-H"L!S973^,@8` M!L,"@PY0`]4'$P*`_GT*@`C/"=D"@`J!#G$+8.1N9...
2008 Aug 09
2
xy plot in version 2.7.1 for Mac (PR#12520)
...EWdSAdNf5q+b3xNhWhxndoB51i 2+zPUQi9RGH5A7qNdopWhRlLjH9iBD66HWNQaBYdZYM8iNY76X2WwdaKWrTyhKEbh2CVQ63URTtp H5vCpnOfZYExyzhKaehjDVrdQX20BylOP6cTzGm5YPzIuECZVEgzMZ8BepUNiqGL64eq4DcLvDSe ylCygv6HfkmvMT/7BV9hcVpKLCHLN403aDRNonkY7ZOo+Sf2KV+HdJc4rNQbNZQMvzwkvU0v0bss ixWzRnYdH89X8EfFbYjLQtSdRItpKfz9CFo/yYJsD3fyY+IJ5Snlc3Xs0GkjGSsSoO/RD+gXzIWZ aqyHfZsdZ3/ktXwh/x4/Ix5Wfqq8bm3HrG+g5fQgPUWfslQ2lc1m32BdbC3byB5iO9hR9hr7gFfz Zn4TPy+6xK3i50oN0lylR7nbcq9lk/rBUMvQoaHfDH1qlCAmZyMe1mP036FHMbO9dIz+gHSKzjAL S2LJSBrzsXnsW0jr2IPsh2w3+ykbQC+vsTPsQ/Y39jH7nBOSyrO5j+ch+flt/Hb+MP8+P4b0Gv8L /0ykizwRFFNEhYiIFRjVRrEV6TnxrpKlHFMM+...