search for: mod

Displaying 20 results from an estimated 4016 matches for "mod".

Did you mean: mode
2011 Jan 04
5
scoping/non-standard evaluation issue
Dear r-devel list members, On a couple of occasions I've encountered the issue illustrated by the following examples: --------- snip ----------- > mod.1 <- lm(Employed ~ GNP.deflator + GNP + Unemployed + + Armed.Forces + Population + Year, data=longley) > mod.2 <- update(mod.1, . ~ . - Year + Year) > all.equal(mod.1, mod.2) [1] TRUE > > f <- function(mod){ + subs <- 1:10 + update(mod, subset=subs) +...
2016 Mar 07
0
Module Versioning
...gt; Do I understand correctly that the primary > challenges with Syslinux versions come from the fact that you are taking > some Syslinux pieces from an .ISO and hoping to implement them on a USB > disk? If so, what is it that leads you to the need to download > corresponding COMBOOT32 modules for a particular Syslinux? Are they not > in the ISO? It's probably best to use a real-life example for that, so, since I was talking about tails before, I'm going to use the tails-i386-2.0.1.iso to illustrate what I'm currently doing in Rufus. I'll skip the EFI part of...
2010 Apr 13
2
Generating model formulas for all k-way terms
For the vcdExtra package, I'm exploring methods to generate and fit collections of glm models, and handling lists of such model objects, of class "glmlist". The simplest example is fitting all k-way models, from k=0 (null model) to the model with the highest-order interaction. I'm having trouble writing a function, Kway (below) to do what is done in the example below...
2016 Mar 06
5
Module Versioning
...eeds, in parallel? Do I understand correctly that the primary challenges with Syslinux versions come from the fact that you are taking some Syslinux pieces from an .ISO and hoping to implement them on a USB disk? If so, what is it that leads you to the need to download corresponding COMBOOT32 modules for a particular Syslinux? Are they not in the ISO? - Shao Miller https://synthe.tel
2009 Mar 21
4
How to convert Mod/Tod to any video formats
Question: 1: What is .Mod and .Tod video? 2: How to convert .Mod and .Tod video to AVI, MPG, WMV, MPEG? Answer: 1: .Mod and .Tod videos are mainly produced by digital harddisk camcorder such as JVC camcorder and so on. It is not common video formats and can only be played on some special players. 2:Tipard Mod Converter (htt...
2017 Dec 26
1
identifying convergence or non-convergence of mixed-effects regression model in lme4 from model output
Hi R community! I've fitted three mixed-effects regression models to a thousand bootstrap samples (case-resampling regression) using the lme4 package in a custom-built for-loop. The only output I saved were the inferential statistics for my fixed and random effects. I did not save any output related to the performance to the machine learning algorithm used...
1999 Jul 15
2
R: UseMethod with primitives?
Hello, is the following somehow possible with Mod() being a primitive: "Mod" <- function(x) UseMethod("Mod") "Mod.default" <- function(x) { .Primitive("Mod") ### I know it?s wrong. How can I access the original Mod ? } Thanks for help M. Eger -- +---------------------------------------------...
2010 Aug 03
5
The condition has length > 1 and only the first element will be used
...age: In if (z < 0) { : the condition has length > 1 and only the first element will be used As you can see, I'm sending a vector x to the function f without any problem. The function f calculates the y value for each x. But the function f needs to convert the x to positive values (the mod function). And when it tries to convert, it always uses the first value of x. What I'm doing wrong here? mod = function(x) { if (x < 0) { mod <- x*(-1) } else { mod <- x } } f = function(x) { f <- mod(x)/x } x <- seq(-1,1,0.01) x y <- f(x) y plot(f,xlim = c...
2010 Mar 17
2
Retaining variable name in a function
...interested in creating a function that will convert a variable within a data.frame to a factor while retaining the original name (yes, I know that I can just: var <-factor(var) but I need it as a function for other purposes). e.g.: # this was an attempt but fails. facts <- function(meta, mod, modname = "spec") { meta$mod <- factor(meta$mod) colnames(meta)['mod'] <- modname return(meta) } # ideally, would like to just specify the data.frame (=meta) and # variable to convert to factor (=mod) (similar to function input below). But am # also interested in hav...
2012 Jun 17
3
[LLVMdev] BlockAddress instruction is copied instead of cloned during module link?
I have a module having the blockaddress instruction. When I link it into another module and delete the original, blockaddress disappears and is replaced by inttoptr (i32 1 to i8*). Please compile and run the attached program to see the demo of this problem. Right after linking modules, blockaddress still ex...
2010 Jul 09
1
Appropriate tests for logistic regression with a continuous predictor variable and Bernoulli response variable
...goodness of fit (as suggested by a kind “R-helper” previously). To test whether the predictor (svl, or body size) has significant effect on predicting whether or not a female snake is pregnant, I used the differences between null deviance and residual deviance using a code as following:   1-pchisq(mod.fit$null.deviance - mod.fit$deviance, mod.fit$df.null - mod.fit$df.residual)   Could anyone tell me whether I did the test properly? I did this test because I thought Wald test/z score listed in the output from "summary(mod.fit)" is not appropriate for a kind of data I have.  Does R have...
2011 Jan 07
1
[RFC/PATCH] ssh: config directive to modify the local environment
This provides a mechanism to attach arbitrary configure options into the ssh_config file and use them from the LocalCommand and ProxyCommand. Examples: # set FOO to foo LocalEnvMod FOO = foo # append bar to FOO with default separator "," LocalEnvMod FOO += bar # unset FOO LocalEnvMod FOO = # append foo to BAR with separator ":", if BAR is empty no separator will # be used LocalEnvMod BAR +:= foo # prepend baz to BAR with...
2000 Mar 07
1
update fails after specific sequence of steps (PR#474)
...r favorite email program and send it to # # r-bugs@biostat.ku.dk # ###################################################### I stumbled on this error while doing a classroom demonstration. The error is reproducible, but seems to require a specific sequence of operations: (1) fitting a linear model; (2) calling the summary function; (3) calling a function of mine, called test.terms; (4) making a typing error in a call to update -- typing "~.~" instead of ".~." . (5) After this, a correct call to update fails. If any of the steps 1-4 is omitted, everything proceeds no...
2009 Feb 19
1
Arima bug?
I was looking at the 'R' code associated with arima. I see the following: upARIMA <- function(mod, phi, theta) { p <- length(phi) q <- length(theta) mod$phi <- phi mod$theta <- theta r <- max(p, q + 1) if (p > 0) mod$T[1:p, 1] <- phi if (r > 1) mod$Pn[1:r, 1:r] <- .Call(R_getQ0, phi, the...
2020 Apr 08
5
[PATCH] x86: mmiotrace: Use cpumask_available for cpumask_var_t variables
When building with Clang + -Wtautological-compare and CONFIG_CPUMASK_OFFSTACK unset: arch/x86/mm/mmio-mod.c:375:6: warning: comparison of array 'downed_cpus' equal to a null pointer is always false [-Wtautological-pointer-compare] if (downed_cpus == NULL && ^~~~~~~~~~~ ~~~~ arch/x86/mm/mmio-mod.c:405:6: warning: comparison of array 'downed_cpus' equal to a...
2013 Mar 22
1
Trouble embedding functions (e.g., deltaMethod) in other functions
...78180, 86.88254, 221.75480) m <- c(48.591707, 15.655895, 12.284635, 5.758547, 0.000000) dat <- data.frame(t = t, m = m) m0 <- m[1] t0 <- t[5] nlls <- nls(m ~ (m0^(1/lambda) - (t * m0/t0)^(1/lambda))^lambda, start = list(lambda = 1), data = dat) xVal <- seq(0, t0, length = 10) mod.SE <- list() for(i in 1:length(xVal)){ z <- xVal[i] mod.SE[[i]] <- deltaMethod(nlls, "(m0^(1/lambda) - (z * m0/t0)^(1/lambda))^lambda")$SE } mod.SE This code executes deltaMethod() flawlessly (NOTE: [[1]] and [[10]] are supposed to be NaN's). However, my goal is to embed t...
2013 Jun 01
2
[LLVMdev] Compile Linux Kernel module into LLVM bitcode
Greetings, I am trying to compile a linux kernel module (currently a small part of the gpu driver) into the bitcode ".bc" format so that I can run a pass on it using the "opt" command. This pass will count the number of times copy_to/from_user() is invoked. Compiling the gnu driver kernel modules works with clang as a front end....
2012 Jun 29
1
number of items to replace is not a multiple of replacement length
Hello, I'm a complete newbie to R so sorry if this is too basic..:-S I have to modify some scripts someone else did to make it work with my data. For some reason, one of the scripts which were supposed to work is not, and I get the error message "number of items to replace is not a multiple of replacement length". The script is this one: *open_lpj_nc_gpp <- functio...
2013 Sep 02
2
como hacer grafico de un modelo setar
Hola, Estoy intentando realizar un ajuste a un modelo setar con R y me surgen problemas a la hora de representar el modelo setar sin la constante. El código es el siguiente: # Estimacion TAR(2;2,2) con delta 1: mod.setar <- setar(x, m = 2, mL = 2, mH = 2, thDelay = 1) mod.setar summary(mod.setar) mod.setarc<-setar(x, m=2, mL=2, mH=2, thDe...
2012 Oct 03
2
Creating tiff with 1200 dpi
...or that tiff bitmap is not supported. Any help would be appreciated. Here is my code. #Creating dataframes new.data2<-expand.grid(FCOND=23.5, FPC1=-0.68, MCOND=22.4, MPC1=-0.82, RANK=c(6:15)) new.data3<-expand.grid(FOCND=39.1, FPC1=0.46, MCOND=7.4, MPC1=1.3, RANK=c(4:16)) x2<-data.frame(mod.avg.pred=c(0.28, 0.26, 0.24, 0.23, 0.22, 0.21, 0.20, 0.19, 0.19, 0.18), uncond.se=c(0.17, 0.15, 0.14, 0.14, 0.15, 0.16, 0.18, 0.19, 0.20, 0.21)) x3<-data.frame(mod.avg.pred=c(0.19, 0.22, 0.26, 0.32, 0.39, 0.47, 0.54, 0.61, 0.66, 0.70, 0.73, 0.75, 0.77), uncond.se=c(0.18, 0.17, 0.16, 0.14, 0.13,...