search for: dummy

Displaying 20 results from an estimated 5235 matches for "dummy".

2007 Jun 01
1
Calling C routine in anther package in C code (R_RegisterCCallable)
Hi, I want to make use of some C routines from other packages to write extensions in C. In "Writing R Extensions", it says there is an experimental interface to support this in (or from ?) R 2.4.0. I had a dummy library containing src/dummy.cpp and R/zzz.R: ====== src/dummy.cpp ==== #include <R.h> #include <Rinternals.h> #include <R_ext/Rdynload.h> extern "C" { void dummy(int *a, int *b) { printf("dummy\n"); } } void R_init_dummy(DllInfo...
2017 Jun 26
2
Install locks up my server
...; (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"...
2011 Nov 10
3
Creating dummys in R
Dear R-project! How do i create 1 dummy from 2 already existing dummys. To be more precise, I want to create a dummy from a dummy called "sex" and another called "sex1" when both thoose dummys are 1 I want my created dummy "samesex" to take 1. Thanks for the help! Paulie [[alternative HTML ve...
2010 Oct 19
5
For-loop dummy variables?
Hi everyone, I've got a dataset with 12,000 observations. One of the variables (cleary$D1) is for an individual's country, coded 1 - 15. I'd like to create a dummy variable for the Baltic states which are coded 4,6, and 7. In other words, as a dummy variable Baltic states would be coded 1, else 0. I've attempted the following for loop: dummy <- matrix(NA, nrow=nrow(cleary), ncol=1) for (i in 1:length(cleary$D1)){ if (cleary$D1 == 4){dummy[i] = 1} e...
2013 Jun 10
2
please check this
Hi, Try this: which(duplicated(res10Percent)) # [1] 117 125 157 189 213 235 267 275 278 293 301 327 331 335 339 367 369 371 379 #[20] 413 415 417 441 459 461 477 479 505 res10PercentSub1<-subset(res10Percent[which(duplicated(res10Percent)),],dummy==1)? #most of the duplicated are dummy==1 res10PercentSub0<-subset(res10Percent[which(duplicated(res10Percent)),],dummy==0) ?indx1<-as.numeric(row.names(res10PercentSub1)) indx11<-sort(c(indx1,indx1+1)) indx0<- as.numeric(row.names(res10PercentSub0)) ?indx00<- sort(c(indx0,indx0-1))...
2003 Sep 05
4
Basic Dummy Variable Creation
Hi There, While looking through the mailing list archive, I did not come across a simple minded example regarding the creation of dummy variables. The Gauss language provides the command "y = dummydn(x,v,p)" for creating dummy variables. Here: x = Nx1 vector of data to be broken up into dummy variables. v = Kx1 vector specifying the K-1 breakpoints p = positive integer in the range [1,K], specifying which column shoul...
2020 Oct 16
3
Unable to get dummy interfaces to persist across reboots in CentOS 8
Hello all, hoping someone can help me out here. I cannot get dummy interfaces on a new Cent8 build to persist across reboots. On Cent7 - this is the process I use: Create Dummies: # cat /etc/modules-load.d/dummy.conf dummy # cat /etc/modprobe.d/dummyopts.conf options dummy numdummies=4 # ip link add dummy0 type dummy ## - repeating a/ ascending dummyN adapters f...
2019 Dec 18
1
[PATCH] docs: exclude dummy.c sources
...efile.am b/Makefile.am index d3cf64cc1..ec342225a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -320,6 +320,7 @@ docs/C_SOURCE_FILES: configure.ac grep -v -E '/(guestfs|rc)_protocol\.' | \ grep -v -E '.*/errnostring\.' | \ grep -v -E '.*-gperf\.' | \ + grep -v -E '/dummy.c$$' | \ LC_ALL=C sort -u > $@-t mv $@-t $@ diff --git a/docs/C_SOURCE_FILES b/docs/C_SOURCE_FILES index c2d1c3465..c9fc3533e 100644 --- a/docs/C_SOURCE_FILES +++ b/docs/C_SOURCE_FILES @@ -12,21 +12,14 @@ cat/ls.c cat/tail.c common/edit/file-edit.c common/edit/file-edit.h -common/ml...
2023 May 24
1
Synthesize low batt (LB) fron SNMP UPS which does not support this?
...that the two ?.low? settings can be > overridden in the config. this looks exactly like the right place and functionality I would like to have, BUT > > Am I missing something? yes, probably the same trap I fell into, status_commit does not seem to be not called (at least from the dummy driver I use for testing) upon changing charge/runtime. I can only force a call by flipping OL/OB. I sprinkled a bit of debug information [1] into status_commit and journald looks like initial upsrw call to set dummy OL: May 24 08:23:24 gateway dummy-ups[284580]: [D2] entering setvar(ups.stat...
2011 Apr 12
1
Predictkion interval using regression coefficients
...g the prediction intervals (90%). I don't know if I have the complete information to do this. So my question(s) is can R determine a prediction interval from this data with just these parameter estimates. And if so, how? Thanks all who can help. Zeda. Here are the parameter estimates: Jan dummy 108.422 Feb dummy 107.619 Mrc dummy 80.515 Apr dummy 95.307 May dummy 92.340 Jun dummy 99.866 Jul dummy 83.276 Aug dummy 78.763 Sep dummy 83.717 Oct dummy 103.963 Nov dummy 63.060 Dec dummy 27.147 coeff. on "SalesLag11" 0.423 [[alternative HTML version deleted]]
2011 Jan 11
5
A question on dummy variable
Dear all, I would like to ask one question related to statistics, for specifically on defining dummy variables. As of now, I have come across 3 different kind of dummy variables (assuming I am working with Seasonal dummy, and number of season is 4): > dummy1 <- diag(4) > for(i in 1:3) dummy1 <- rbind(dummy1, diag(4)) > dummy1 <- dummy1[,-4] > > dummy2 <- dummy1 > dum...
2020 Oct 27
0
Unable to get dummy interfaces to persist across reboots in CentOS 8
...deas? It's rather annoying that I can't get these to persist across reboots without using some kind of helper script. On Fri, Oct 16, 2020 at 6:37 AM Frank Even <lists+centos.org at elitists.org> wrote: > > Hello all, hoping someone can help me out here. > > I cannot get dummy interfaces on a new Cent8 build to persist across reboots. > > On Cent7 - this is the process I use: > > Create Dummies: > # cat /etc/modules-load.d/dummy.conf > dummy > # cat /etc/modprobe.d/dummyopts.conf > options dummy numdummies=4 > # ip link add dummy0 type dummy &g...
2013 Jun 07
4
matched samples, dataframe, panel data
I R-helpers #I have a data panel of thousands of firms, by year and industry and #one dummy variable that separates the firms in two categories: 1 if the firm have an auditor; 0 if not #and another variable the represents the firm dimension (total assets in thousand of euros) #I need to create two separated samples with the same number os firms where #one firm in the first have a corresp...
2013 Sep 23
11
[PATCH v4 0/4] x86/HVM: miscellaneous improvements
The first and third patches are cleaned up versions of an earlier v3 submission by Yang. 1: Nested VMX: check VMX capability before read VMX related MSRs 2: VMX: clean up capability checks 3: Nested VMX: fix IA32_VMX_CR4_FIXED1 msr emulation 4: x86: make hvm_cpuid() tolerate NULL pointers Signed-off-by: Jan Beulich <jbeulich@suse.com>
2001 Aug 10
1
bug in dummy.coef.lm? (PR#1048)
Hi - I'm running R 1.3.0 on i686-pc-linux-gnu > rm(x, y, z) > df <- data.frame(x=1:20,y=1:20,z=factor(1:20 <= 10)) dummy.coef falls over: > dummy.coef.lm(lm(y ~ z * poly(x,1), data=df)) Error in poly(x, 1): Object "x" not found > dummy.coef.lm(lm(y ~ z * I(x), data=df)) Error in unique(c("AsIs", class(x))): Object "x" not found but works OK with: > dummy.coef.lm(lm(y ~ z...
2008 Mar 11
1
Question on substitute.
...tain file name prefixes and other interesting variables. each prefix corresponds to multiple files and a I only have 4300 complete sets of files. If any one of the files is missing for a given prefix, then the function I use fails. The effect is emulated by the function "f" and data "dummy.data": f <- function(x) if(runif(1) < 0.1) stop('oops') else rnorm(10) dummy.data <- data.frame(cbind(paste('a', 1:100, sep=''), matrix(rnorm(9000),nrow=100, ncol=9))) I would like the results as a data.frame and if it weren't for the errors would do: re...
2007 Sep 03
1
Legend issue with ggplot2
Dear useRs, I'm struggling with the new version of ggplot2. In the previous version I did something like this. But now this yield an error (object "fill" not found). library(ggplot2) dummy <- data.frame(x = rep(1:10, 4), group = gl(4, 10)) dummy$y <- dummy$x * rnorm(4)[dummy$group] + 5 * rnorm(4)[dummy$group] dummy$min <- dummy$y - 5 dummy$max <- dummy$y + 5 ggplot(data = dummy, aes(x = x, max = max, min = min, fill = group)) + geom_ribbon() + geom_line(aes(y = max, colou...
2020 Oct 27
4
Unable to get dummy interfaces to persist across reboots in CentOS 8
Have you tried to use NetworkManager ? After all ,anything network related should be done by it. [root at system ~]# nmcli connection add con-name dummy0 ifname dummy0 type dummy ? Connection 'dummy0' (9fdd74fa-c143-4991-9bac-0e542704ac89) successfully added. [root at system ~]# reboot Shared connection to glustera closed. [root at system ~]# uptime 03:23:44 up 0 min, ?1 user, ?load average: 1,57, 0,48, 0,17 [root at glustera ~]# nmcli c...
2007 May 16
0
Unknown action, No action responded to world
...doubt, but the discrepancy indicates that perhaps my configuration is mucked up. The index function should''ve been created by...? In any event, here''s my decidedly primitive script which I''m using to run my ruby stuff, and it''s output: [thufir@localhost dummy]$ [thufir@localhost dummy]$ [thufir@localhost dummy]$ pwd /home/thufir/dummy [thufir@localhost dummy]$ ll total 140 drwxrwxr-x 6 thufir thufir 4096 May 13 04:15 app drwxrwxr-x 2 thufir thufir 4096 May 13 04:15 components drwxrwxr-x 3 thufir thufir 4096 May 16 06:06 config drwxrwxr-x 2 thufir thuf...
2013 Mar 28
1
question about attaching data
Hi I just would like to know, When I have a dataframe, like this one called 'dummy' And I attach it. Then I run my code. I then update the dataframe by making changes and I still call it 'dummy'. I run my code again. Now dummy is at position 1 and position 2 of the search path and if I run the code again, with another version of 'dummy' it updates and eventua...