search for: ret1

Displaying 20 results from an estimated 38 matches for "ret1".

Did you mean: ret
2009 Oct 07
0
error using predict() / "fRegression"-package
...f both dataframes shows, that the variables are still all of the type "numeric". (See attached session protocol.) Does anyone have an idea how to fix this? Any help would greatly be appreciated! Kind regards, Gero > str(regdata) 'data.frame': 89 obs. of 7 variables: $ ret1 : num 0.0275 -0.01013 0.00569 -0.01582 0.0226 ... $ lag(ret1) : num NA 0.0275 -0.01013 0.00569 -0.01582 ... $ lag(ret2) : num NA 0.04072 -0.00509 0.02055 -0.01548 ... $ lag(ret3) : num NA 0.05393 0.00299 0.02432 0.02251 ... $ (lag(ret1)*lag(ret2)...
2008 May 22
1
How to account for autoregressive terms?
...a5*x5(t)+beta6*y(t-1)+beta7*y(t-2)+beta8*y(t-3) 1) using "lm" : dates <- as.Date(data.df[,1]) selection<-which(dates>=as.Date("1986-1-1") & dates<=as.Date("2007-12-31")) dep <- ts(data.df[selection,c("dep")]) indep.ret1 <- ts(data.df[selection,c("RET1")]) indep.ret2 <- ts(data.df[selection,c("RET2")]) indep.ret3 <- ts(data.df[selection,c("RET3")]) indep.ret4 <- ts(data.df[selection,c("RET4")]) indep.ret5 <- ts(data.df[selection,c("RET5...
2010 Aug 02
2
[LLVMdev] indirectbr and phi instructions
Hi, How does the requirement that phi instructions have one value per predecessor basic block interact with indirectbr instructions? For instance, take the following code: L1: br i1 %somevalue, label %L2, label %L3 L2: %ret1 = i8* blockaddress(@myfunction, %L5) br label %L4 L3: %ret2 = i8* blockaddress(@myfunction, %L6) br label %L4 L4: %ret = phi i8* [%ret1, L2], [%ret2, L3] indirectbr i8* %ret, [label %L5, label %L6] L5: %myval = phi i32 [0, %L2], [1, %L3] ; are both of these values required, even t...
2013 Nov 05
2
[PATCH stable-1.24] Fix fstab block device resolution for FreeBSD
...ternal.h +++ b/src/guestfs-internal.h @@ -630,12 +630,14 @@ extern int guestfs___match (guestfs_h *g, const char *str, const pcre *re); extern char *guestfs___match1 (guestfs_h *g, const char *str, const pcre *re); extern int guestfs___match2 (guestfs_h *g, const char *str, const pcre *re, char **ret1, char **ret2); extern int guestfs___match3 (guestfs_h *g, const char *str, const pcre *re, char **ret1, char **ret2, char **ret3); +extern int guestfs___match4 (guestfs_h *g, const char *str, const pcre *re, char **ret1, char **ret2, char **ret3, char **ret4); extern int guestfs___match6 (guestfs...
2013 Nov 03
2
[PATCH stable-1.24] Fix fstab block device resolution for FreeBSD
...ternal.h +++ b/src/guestfs-internal.h @@ -630,12 +630,14 @@ extern int guestfs___match (guestfs_h *g, const char *str, const pcre *re); extern char *guestfs___match1 (guestfs_h *g, const char *str, const pcre *re); extern int guestfs___match2 (guestfs_h *g, const char *str, const pcre *re, char **ret1, char **ret2); extern int guestfs___match3 (guestfs_h *g, const char *str, const pcre *re, char **ret1, char **ret2, char **ret3); +extern int guestfs___match4 (guestfs_h *g, const char *str, const pcre *re, char **ret1, char **ret2, char **ret3, char **ret4); extern int guestfs___match6 (guestfs...
2013 Jan 30
1
Creating dummy variables in r
Hello, Semi-new r user here and still learning the ropes. I am creating dummy variables for a dataset on stock prices in r. One dummy variable is called prev1 and is: prev1 <- ifelse(ret1 >= .5, 1, 0) where ret1 is the previous day's return. The variable "prev1" is created fine and works in my regression model and for running conditional statistics. However, when I call the names() function on the dataset the freshly created variable (prev1) doesn't show up; a...
2009 Oct 23
2
splitting a vector of strings...
Quick question -- if I have a vector of strings that I'd like to split into two new vectors based on a substring that is inside of each string, what is the most efficient way to do this? The substring that I want to split on is multiple characters, if that matters, and it is contained in every element of the character vector. --j -- Jonathan A. Greenberg, PhD Postdoctoral Scholar
2013 Jun 05
3
[PATCH 1/3] inspection: Refactor windows systemroot detection to allow re-use
This change refactors guestfs___has_windows_systemroot to guestfs___get_windows_systemroot. The new function returns a dynamically allocated char * which must be freed. The new function is no less efficient than before, as it returns the result of guestfs___case_sensitive_path_silently, which is required anyway. The new code is slightly more efficient than before, as it re-uses the result of this
2005 Jun 20
0
[patch 1/3] fs/ext3/super.c: fix sparse warnings
An embedded and charset-unspecified text was scrubbed... Name: sparse-fs_ext3_super.patch URL: <http://listman.redhat.com/archives/ext3-users/attachments/20050620/af49961a/attachment.ksh>
2012 Jan 28
0
Graph Titles
...from two > different variables, computes differences and runs a regression then plots > a formula I made: > > for(i in 1:1){ > halo <- sex[i,] > holder <- get(halo)['2011::'][,6] > halo2 <- sex[i,2] > holder2 <- get(halo2)['2011::'][,6] > ret1<- diff(holder)[-1] > ret2<- diff(holder2)[-1] > model<- lm(ret1 ~ ret2 - 1) > hr <- as.numeric(model$coefficients[1]) > pairs <- ret1 - hr * ret2 > plot(pairs) > } > > The loop works fine and the appropriate number of graphs are printed. > > How would...
2009 Jul 19
1
Can I use "mcnemar.test" for 3*3 tables (or is there a bug in the command?)
...gle, I found an algorithm here: http://www.m-hikari.com/ams/ams-password-2009/ams-password9-12-2009/abbasiAMS9-12-2009.pdf >From running this algorithm I am getting a different P value, here is the (somewhat ugly) code I produced for this: get.d <- function(xx) { length1 <- dim(xx)[1] ret1 <- margin.table(xx,1) - margin.table(xx,2) return(ret1) } get.s <- function(xx) { the.s <- xx for( i in 1:dim(xx)[1]) { for(j in 1:dim(xx)[2]) { if(i == j) { the.s[i,j] <- margin.table(xx,1)[i] + margin.table(xx,2)[i] - 2*xx[i,i] } else {...
2012 Dec 11
2
Catching errors from solve() with near-singular matrices
...UE}) if (error.flag) return(NULL) return(invX) } This works OK if called without a surrounding try() ret <- f(matrix(0, 2, 2)) ## Gives warning However, if I encase the call to f() in a try statement, I get an error: ret1 <- try(f(matrix(0, 2, 2))) ## Gives error "Lapack routine dgesv: system is exactly singular" This is undesirable. Advice on how to solve the problem with either strategy would be much appreciated - as indeed would be a completely different solution. All the best, David. * * * Cod...
2005 Feb 15
1
[PATCH] ext3: Fix sparse -Wbitwise warnings.
Signed-off-by: Alexey Dobriyan <adobriyan at mail.ru> --- fs/ext3/resize.c | 20 ++++++++++---------- fs/ext3/super.c | 8 ++++---- include/linux/ext3_fs.h | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) Index: linux-warnings/include/linux/ext3_fs.h =================================================================== ---
2019 May 16
5
[PATCH 0/2] Add BO reservation to GEM VRAM pin/unpin/push_to_system
A kernel test bot reported a problem with the locktorture testcase that was triggered by the GEM VRAM helpers. ... [ 10.004734] RIP: 0010:ttm_bo_validate+0x41/0x141 [ttm] ... [ 10.015669] ? kvm_sched_clock_read+0x5/0xd [ 10.016157] ? get_lock_stats+0x11/0x3f [ 10.016607] drm_gem_vram_pin+0x77/0xa2 [drm_vram_helper] [ 10.017229]
2019 May 16
5
[PATCH 0/2] Add BO reservation to GEM VRAM pin/unpin/push_to_system
A kernel test bot reported a problem with the locktorture testcase that was triggered by the GEM VRAM helpers. ... [ 10.004734] RIP: 0010:ttm_bo_validate+0x41/0x141 [ttm] ... [ 10.015669] ? kvm_sched_clock_read+0x5/0xd [ 10.016157] ? get_lock_stats+0x11/0x3f [ 10.016607] drm_gem_vram_pin+0x77/0xa2 [drm_vram_helper] [ 10.017229]
2018 Aug 23
2
[RFC] "Properly" Derive Function/Argument/Parameter Attributes
...s | FileCheck %s ; ; This is an evolved example to stress test SCC parameter attribute propagation. ; The SCC in this test is made up of the following six function, three of which ; are internal and three externally visible: ; ; static int* internal_ret0_nw(int *n0, int *w0); ; static int* internal_ret1_rw(int *r0, int *w0); ; static int* internal_ret1_rrw(int *r0, int *r1, int *w0); ; int* external_ret2_nrw(int *n0, int *r0, int *w0); ; int* external_sink_ret2_nrw(int *n0, int *r0, int *w0); ; int* external_source_ret2_nrw(int *n0, int *r0, int *w0); ; ; The top four function...
2009 Oct 08
0
predict.lm() out-of-sample predictions - problem with data classes
...oblem, which also occurs with the predict.lm() function. - Providing newdata, which is a data.frame with all variables being "numeric", as str() shows, R tells me the following: ar1.xpred.test.pred <- predict(ar1.xpred.fitted, regdata.test, se.fit = FALSE) Fehler: variable 'lag(ret1)' was fitted with type "numeric" but type "nmatrix.1" was supplied Zus?tzlich: Warnmeldung: 'newdata' had 23 rows but variable(s) found have 89 rows Estimating a model from the test-data and examining, the resulting lm-object I found out that the "data classe...
2016 Feb 23
4
[PATCH v3 0/4] [FOR COMMENTS ONLY] Rework inspection.
Previously posted: https://www.redhat.com/archives/libguestfs/2015-December/msg00038.html Inspection now really succeeds on a small number of simple guests. To test it out: $ ./run guestfish -v -x -a /tmp/centos-6.img ><fs> run ><fs> debug sh "guestfs-inspection --verbose" Rich.
2017 Aug 31
3
[RFC] Value Range Based Optimization Opportunity in LLVM
Hi All, We have recently found some optimization opportunities created by replicating code into branches in order to enable optimization. In general, the optimization opportunity we are pursuing is like the following. Given pseudo-code: // block A if (some condition) // block B // block C If it can be efficiently proven that some portion of block C can be simplified had control flow not
2015 Oct 05
0
[PATCH 2/2] Fix whitespace.
...9 100644 --- a/src/match.c +++ b/src/match.c @@ -63,7 +63,7 @@ guestfs_int_match1 (guestfs_h *g, const char *str, const pcre *re) /* Match a regular expression which contains exactly two captures. */ int guestfs_int_match2 (guestfs_h *g, const char *str, const pcre *re, - char **ret1, char **ret2) + char **ret1, char **ret2) { size_t len = strlen (str); int vec[30], r; @@ -84,7 +84,7 @@ guestfs_int_match2 (guestfs_h *g, const char *str, const pcre *re, /* Match a regular expression which contains exactly three captures. */ int guestfs_int_match3 (guestfs_h *g, co...