search for: mdd

Displaying 20 results from an estimated 55 matches for "mdd".

Did you mean: add
2006 May 17
5
Convention difference in tseries.maxdrawdown (PR#8872)
...sion. It has the flaw that it does not check for zero or negative values. maximumdrawdown <- function (x) { if (NCOL(x) > 1) stop("x is not a vector or univariate time series") if (any(is.na(x))) stop("NAs in x") cminx <- x/cummax(x) mdd <- min(cminx) to <- which(mdd == cminx) from <- double(NROW(to)) for (i in 1:NROW(to)) { from[i] <- max( which(cminx[1:to[i]] == 1) ) } return(list(maximumdrawdown = 1-mdd, maxdrawdown = (1-mdd)*x[from], from = from, to = to)) }
2011 Apr 19
0
Error message in package:bayesSurv. Why?
...example the package gives. As near as I can make out, the sole difference (mutatis mutandis) is that my data has precise dates of birth of children and onset of depression, rather than the data being interval-censored as in the tandmobile dataset. I've set up survreg3 as follows sample.childmdd <- bayessurvreg3( formula=Surv(childtime+.01,childevent)~nchild+cluster(id), random=~1, formula2=Surv(mddtime+.01,mddevent)~nchild+blustatus+well.before+earlydep+cluster(id), random2=~1, onlyX=FALSE, dir="chaindir.childmdd", nsimul=nsimul.childm...
2004 Sep 22
5
block statistics with POSIX classes
...ies 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 <- as.character(dp[mdd$from]) > to <- as.character(dp[mdd$to]) > from; to [1] "2000-08-31" [1] "2003-03-31" that gives me the POSIX dates of the start and end of the period and s...
2012 Jun 15
0
argument "x" is missing, with no default - Please help find argument x
...) } toploop <- function (ntrees=ntrees, ml.frame=ml.frame) { require(foreach) require(ggplot2) require(reshape) require(foreign) mtry = c(5:25) ddd<-foreach(mtry, .combine="rbind") %dopar% subloop (mtry=mtry, ml.frame=ml.frame, ntrees=10) ddd<-as.data.frame(ddd) mdd<-melt(ddd, id="mtry") g <- ggplot(mdd, aes(mtry, value)) pdf(file=paste(ntrees, "-trees.pdf")) g + geom_point(aes(colour=as.factor(variable))) + geom_smooth(aes(group=as.factor(mdd$variable), colour=as.factor(mdd$variable)), size=1.2) dev.off() write.csv(fil...
2012 Dec 13
1
How do I make a loop to extract a column from multiple lists and then bind them together to make a new matrix?
...the columns (‘Lo Score’=[,2], ‘Hi Score=[,3]’, and ‘Mean’=[,7]) for each of the items. I then want to turn the extracted data into 3 matrices (‘Lo Score’, ‘Hi Score’, and ‘Mean’) where the rows are the 5 groups and the columns are items 1-10. This is how I can create the mean matrix by hand. “MDD.mean.s10” is the matrix I want in the end. (notice the first bracket after $results is the only part that changes 1-10 (to represent the 10 items) and the last bracket is [,7] to represent the mean located in column 7) > m.1a <- MC_MDD.noNA$results[[1]][[2]][,7] > m.2b <- MC_MDD.no...
2008 Feb 08
2
Applying lm to data with combn
...sep=",")# read it in matrix format #fruit =read.file(row.names=1)$data mD =head(fruit[, 1:5])# only first five used in combinations #X.SSMII = head(fruit[, 6])# Keep it for referebce nmax = NULL n = ncol(mD)# dont take the last column for reference purpose if(is.null(nmax)) nmax = n mDD = apply(combn(5, 1),1, FUN= function(y) mD[, y])# to fg = lm( X.SSMII ~ X.GDAXI + X.FTSE + X.FCHI + X.IBEX, data = mDD )# regress on combos s = cbind(s, Residuals = residuals(fg))# take residuals print(mD) -- View this message in context: http://www.nabble.com/Applying-lm-to-data-with-comb...
2009 Sep 06
1
Rosetta Stone errors
...Modules: Module Address Debug info Name (116 modules) PE 400000- 89d000 Export rosettastoneversion3 PE 2510000- 252b000 Deferred 3.mdd PE 2640000- 266e000 Deferred 2.mdd PE 2780000- 27aa000 Deferred 5.mdd PE 28c0000- 28dc000 Deferred 0.mdd PE 29f0000- 2a0e000...
2010 Jan 31
2
[LLVMdev] Compiling Kaleidoscope on Windows
...oy.lib and object toy.exp LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library And generates toy.exe; when I run this, and test it by typing 1+2; it crashes with no error message. Any idea what the problem might be? (Tried it again with /MDd, and the resulting toy.exe successfully evaluates 1+2, though crashes as before when I exit with ^Z.) On Sun, Jan 31, 2010 at 2:21 PM, Óscar Fuentes <ofv at wanadoo.es> wrote: > Russell Wallace <russell.wallace at gmail.com> writes: > >> I don't suppose anyone knows wha...
2015 Feb 20
2
[LLVMdev] Building Compiler-RT on Windows
...vm/arm_test/compiler-rt-build/CMakeFiles/CMakeTmp Run Build Command:"d:/llvm/ninja/ninja.exe" "cmTryCompileExec2171879632" [1/2] Building C object CMakeFiles\cmTryCompileExec2171879632.dir\testCCompiler.c.obj FAILED: d:\llvm\build\Release\bin\clang.exe /nologo /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\cmTryCompileExec2171879632.dir\testCCompiler.c.obj /FdCMakeFiles\cmTryCompileExec2171879632.dir\ -c testCCompiler.c clang.exe: error: no such file or directory: '/nologo' clang.exe: error: no such file or directory: '/D_DEBUG'...
2004 Apr 24
1
wxruby-swig 0.0.7
I just pushed a new wxruby-swig, which includes the known MSWin rakefile changes. It also has some significant internal improvements that will make it easier to add classes, and it includes support for one new class (wxEvent). wxruby-swig is now licensed under the "MIT license". wxRuby will remain under the wxWindows license as long as we are releasing the old code base. When we
2015 Feb 20
3
[LLVMdev] Building Compiler-RT on Windows
...Run Build Command:"d:/llvm/ninja/ninja.exe" >>> "cmTryCompileExec2171879632" >>> [1/2] Building C object >>> CMakeFiles\cmTryCompileExec2171879632.dir\testCCompiler.c.obj >>> FAILED: d:\llvm\build\Release\bin\clang.exe /nologo /D_DEBUG /MDd /Zi >>> /Ob0 >>> /Od /RTC1 /showIncludes >>> /FoCMakeFiles\cmTryCompileExec2171879632.dir\testCCompiler.c.obj >>> /FdCMakeFiles\cmTryCompileExec2171879632.dir\ -c testCCompiler.c >>> clang.exe: error: no such file or directory: '/nologo'...
2010 Jan 31
0
[LLVMdev] Compiling Kaleidoscope on Windows
...d generates toy.exe; when I run this, and test it by typing 1+2; it > crashes with no error message. Any idea what the problem might be? Most likely this is due to mixing compiled code wich was built with different settings. Most specifically, your LLVM libraries possibly are a debug build, so /MDd (which links the debug-mode variant of the VC runtime libraries) was used for them. > (Tried it again with /MDd, and the resulting toy.exe successfully > evaluates 1+2, though crashes as before when I exit with ^Z.) Possibly some bug related to cleaning up memory on exit.
2004 Apr 22
13
Rake and VC++ 6
Has anybody tried the new wxruby-swig from the msvc++ command line compiler using ''rake''? The rakefile seems to depend on the wx_config method, which doesn''t exist for msw because it doesn''t have BASH to execute the shell script. Has anyone hacked the rakefile to fix this? Nick
2015 Nov 14
2
(no subject)
.... First off, I am on Windows and using git bash for everything: $ uname MINGW32_NT-6.2 I am attempting to essentially do the kalidescope example. I have copied the code verbatim from the full code listing and am running the following command: $ clang-cl toy.cpp deps/llvm/build/Debug/lib/*.lib //MDd -o toy.exe -I deps/llvm/include Which results in this error: LLVMSupport.lib(Path.obj) : error LNK2019: unresolved external symbol __imp_CoTaskMemFree referenced in function "bool __cdecl llvm::sys::path::getKnownFolderPath(struct _GUID,class llvm::SmallVectorImpl<char> &)" (?...
2015 Feb 26
0
[LLVMdev] Building Compiler-RT on Windows
...nd:"d:/llvm/ninja/ninja.exe" >>>> "cmTryCompileExec2171879632" >>>> [1/2] Building C object >>>> CMakeFiles\cmTryCompileExec2171879632.dir\testCCompiler.c.obj >>>> FAILED: d:\llvm\build\Release\bin\clang.exe /nologo /D_DEBUG /MDd >>>> /Zi /Ob0 >>>> /Od /RTC1 /showIncludes >>>> /FoCMakeFiles\cmTryCompileExec2171879632.dir\testCCompiler.c.obj >>>> /FdCMakeFiles\cmTryCompileExec2171879632.dir\ -c testCCompiler.c >>>> clang.exe: error: no such file or directory...
2015 Feb 26
1
[LLVMdev] Building Compiler-RT on Windows
.../ninja/ninja.exe" >>>>> "cmTryCompileExec2171879632" >>>>> [1/2] Building C object >>>>> CMakeFiles\cmTryCompileExec2171879632.dir\testCCompiler.c.obj >>>>> FAILED: d:\llvm\build\Release\bin\clang.exe /nologo /D_DEBUG /MDd >>>>> /Zi /Ob0 >>>>> /Od /RTC1 /showIncludes >>>>> /FoCMakeFiles\cmTryCompileExec2171879632.dir\testCCompiler.c.obj >>>>> /FdCMakeFiles\cmTryCompileExec2171879632.dir\ -c testCCompiler.c >>>>> clang.exe: error: no su...
2010 Jan 31
0
[LLVMdev] Compiling Kaleidoscope on Windows
...sly have anything to do with llvm itself. Any ideas? The first > few error messages are Sadly, nmake can't be told to show the full command they execute for makefiles generated with cmake. Otherwise it would be obvious to know the involved steps for building a component. First of all, use /MDd (for debug builds) or /MD (for release builds) on the command line. The required LLVM libraries can be listed using the `llvm-config' script on Unix or MinGW. The dependencies are listed too in %LLVMSourceRoot%/cmake/modules/LLVMLibDeps.cmake bus as this is a bit inconvenient to read, here th...
2005 Jan 08
1
OSX Intrusion Suspected, Advice Sought
JohnG <mcsjgs@cox.net> wrote: > I run OS X 10.3.7 on a PowerMac MDD G4 on a cable broadband connection. > I have reason to think my system has been tampered with. Security > features in Mac OS X have been left unlocked (Preference Pane - Users) OSX is substantially different from FreeBSD (even without netinfo) despite having some of the same source code. I...
2010 Jan 31
2
[LLVMdev] Compiling Kaleidoscope on Windows
I don't suppose anyone knows what (or how to find out what) the actual command to compile Kaleidoscope is? I followed cmake/nmake down through maybe half a dozen levels before getting lost, so I tried to develop a compiler invocation from scratch. I got as far as cl /EHsc /I\d\llvm-2.6\include /I\llvm\include /wd4355 toy.cpp which successfully generated toy.obj and spat out 86 link time
2010 Mar 18
1
[LLVMdev] patches for the LLVM cmake build system
...y static runtime options should be excluded as they are now. > It > > only makes more difficult to build LLVM with a static runtime. > > If I understand correctly the clarifications given by José on that > thread, adding the /MT flag is not enough. You must remove the /MD or > /MDd flags from whatever cmake variables where they can be present. > > I tested it with VS2008 and CMake 2.8 and it works. > >> Interesting idea. But this method does not take into account the case > >> where the user does not build all libraries (i.e. ignores some LLVM >...