search for: islog

Displaying 5 results from an estimated 5 matches for "islog".

Did you mean: slog
2017 Oct 09
1
Using response variable in interaction as explanatory variable in glm crashes R
...bles, not, e.g., when transformed to integer. The C code in src/library/stats/src/model.c tries to eliminate occurances of the LHS of the formula from the RHS when building the model matrix and it does work fine in the integer case. Part of the culprit code may be this (from line 717), with the isLogical(.) which in our case, shifts the pointer by 1 in the call to firstfactor() : int adj = isLogical(var_i)?1:0; // avoid overflow of jstart * nn PR#15578 firstfactor(&rx[jstart * nn], n, jnext - jstart, REAL(contrast), nrows(contrast), ncols(contrast), INTEGER(var_i)...
2017 Oct 06
2
Using response variable in interaction as explanatory variable in glm crashes R
The following code crashes R (I know I shouldn't try to estimate such a model; this was a bug in some code of mine). I also tried with R-devel; same result. tab <- structure(list(dob_day = c(FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, TRUE, TRUE), dob_mon = c(FALSE, FALSE, TRUE, TRUE, FALSE, FALSE, TRUE, TRUE), dob_year = c(FALSE, TRUE, FALSE, TRUE, FALSE, TRUE, FALSE, TRUE), n =
2010 Feb 07
1
Out-of-sample prediction with VAR
...G,-2), ts_XGG.l3 = lag(ts_XGG,-3), ts_XGL.l1 = lag(ts_XGL,-1), ts_XGL.l2 = lag(ts_XGL,-2), ts_XGL.l3 = lag(ts_XGL,-3), const=1, trend=0.0001514194 ))); var.predict = predict(object=var_model, n.ahead=52, dumvar=holdout_matrix); ## Assess accuracy calc_mape (holdout_matrix$ts_Y, var.predict, islog=T, print=T) Some context: For my Master's thesis I'm using R to test the predictive power of web metrics (such as google trends data & pageviews) in sales forecasting. To properly assess this, I employ a simple AR model (for time series without the extra variables) and a VAR model for...
2005 Nov 18
1
using a factor as col argument in plot:
Dear R core team Using the following code produces an empty plot (similar to col = NA): > plot(1:9, col = factor(rep(1:3,3), labels = c("red", "blue", "black"))) My question: Shouldn't one get at least a warning (or an error) if one tries to use a factor as col argument? Thanks for an answer. Regards, Christoph Buser
2006 Apr 23
1
call queue problems
...erating center provide customer care services for customers who call in after the last customer care staff logs out of the call queue During the day time, calls must not (under any circumstances) be routed to the Network OC for any reasons My pressent implementation works after hours, when no noe islogged in but calls still get routed to the NOC during the Day time. This is caused by the timeout value that i set. What can i do to remedy this or is there a way to query * if there are logged on users? (something like CHANISAVAIL apps) here are some of my configurations!! This is where calls ent...