similar to: looping by grouping variable

Displaying 14 results from an estimated 14 matches similar to: "looping by grouping variable"

2008 Jul 31
1
Rearranging Data
Hi everyone, A few days back Jim helped with out, helping me find an automated way of determining the mean and median of intervals between price changes. However, a new set of data I have is no longer in the same format. CDSmod is the file that was used with this code: x <- read.csv('/cdsmod.csv', as.is=TRUE, check.names=FALSE) x$Date <- as.Date(x$Date, "%m/%d/%Y")
2005 Jul 04
2
Lack of independence in anova()
If the observations are normally distributed and the 2xk design is balanced, theory requires that the tests for interaction and row effects be independent. In my program, appended below, this would translate to cntT (approx)= cntR*cntI/N if all R routines were functioning correctly. They aren't. sim2=function(size,N,p){ cntR=0 cntC=0 cntI=0 cntT=0 cntP=0 for(i in 1:N){
2006 Jun 08
1
FW: asterisk and nortel meredian option 11c
Hi I want to connect asterisk 1.0.9 ( kernel 2.6.8-2 debian )with TE110P and Nortel meridian option 11c release 25.40 with NTBK50AA card which is An E1 card. But the main problem is the first stage that no sync occurs the * card never syncs with meridian card I am using euroisdn, ccs , hdb3, crc4 , pri_net on asterisk And I am assuming that meridian is using same as it is
2011 Jun 10
1
change value in one cell
Hello all, I am wondering if there is a way to change the value of one cell in R. For instance let's say I have a hypothetical data frame that looks like this: Obs X Y Z 1 1 0 1 2 0 0 1 3 1 1 1 4 0 1 1 5 1 1 0 6 0 0 0 I would like to change the value of the 4th observation in the Y column from 1 to 0. It should look like this: Obs X Y Z 1 1 0 1 2 0 0 1 3 1 1 1 4
2011 Jul 17
1
create multiple variables loop
Hello all, I am trying to figure out how to construct several new variables without having to write a code for each one. Specifically, I want to calculate ratios for several variables. For instance, let's say I have: df male1990 male1995 male2000 male2005 female1990 female1995 female2000 female2005 10 11 15 17 15 14
2011 Nov 13
4
identify duplicate from more than one column
Hi all, I've searched everywhere to try to find out how to do this and have had no luck. I am trying to construct identifiers for couples in a dataset. Essentially, I want to identify couples using more than one column as identifiers. Take for instance: obs unit home z sex age 1 015029 18 1 1 053 2 015029 18 1 2 049 3 015029 01 1 1 038 4 015029 01 1
2008 Sep 25
6
Conversion to Binary (base2)
Hello, Is there a simple way to take an input, and convert the decimal integers to binary? In this case, I have a CSV file, and I need to convert the first column of every line to binary. Thanks. -- Jason Thibodeau [[alternative HTML version deleted]]
2007 Jul 31
1
DTMF integration pana d500
Yes and No The D500 is a terrible thing First problem: it sends some horrible DTMF, so if your voicemail is configured to send #H and *H, it will not work, configure it to send numbers, like 8H and 9H (H is a placeholder for the extension). I also managed to use the MWI (message light), it's a perl script that is in voip-info.org, but with a little correction because the wiki distorted it. If
2007 Dec 12
1
iid.test package/ncdf package
Hi R, I want to conduct iid tests. So, I went to download 'iid.test' package. And the dependent package is 'ncdf', which is not available. So, how do I conduct the IID tests? Can I do these iid tests in Base R? Thanks in advance, Shubha This e-mail may contain confidential and/or privileged i...{{dropped:12}}
2005 Nov 22
2
ipfw check-state issue
heya i've been using freebsd's ipfw for quite a while and recently on a new server i've got this issue with ipfw that i can't understand ... something is wrong ... 01000 8042 1947866 allow ip from any to any via fxp0 01010 0 0 allow ip from any to any via lo0 01014 9886 4170269 divert 8668 ip from any to any in via vr0 01015 0 0 check-state 01130 14679 5695969 skipto 1800 ip from
2006 Jul 06
4
Need advice on code-like columns
Hello! I''m trying to move to rails from traditional web app. As Rails has some conventions about table schema, I met some obstacles. Questions. 1. This is a sort of general question. Do you make a code table for things like the following? Activity Status Codes 01001: Open 01002: Pending 01003: Delayed 01004: Cancelled 01005: Closed (The first 2 digits are code category.) Would you
2012 Sep 06
1
Menu system bug - MENU DEFAULT not working
Hello, I'm reporting a bug, see attached syslinux.cfg I'm using submenu entries to emulate checkbox inputs. The idea is simple, there are submenus generated for all possible cases, and each Enter keypress loads appropriate submenu section. The logic of the menu is correct. Just syslinux has some bug. It doesn't set MENU DEFAULT properly for all submenus. If your first Enter keypress
2011 Dec 20
1
read.px() no lee algunos archivos pc-axis
Hola: Posteo este asunto en la lista porque me consta que los "padres" del paquete pxR (por el que les estoy enormemente agradecido) son asiduos de ella y nos aclaran a muchos novatos como yo un montón de dudas de R. Si prefieren que tratemos este asunto de forma menos "publica" no tienen mas que decirlo. Bueno al turrón (nunca mejor dicho)!!! Estoy montando una serie de
2012 Apr 15
0
correct standard errors (heteroskedasticity) using survey design
Hello all, I'm hoping someone can help clarify how the survey design method works in R. I currently have a data set that utilized a complex survey design. The only thing is that only the weight is provided. Thus, I constructed my survey design as: svdes<-svydesign(id=~1, weights=~weightvar, data=dataset) Then, I want to run an OLS model, so: fitsurv<-svyglm(y~x1+x2+x3...xk,