similar to: Mutliple sets of data in one dataset....Need a loop?

Displaying 20 results from an estimated 2000 matches similar to: "Mutliple sets of data in one dataset....Need a loop?"

2012 Aug 09
5
All combinations possible in a mutliple regression
Hi, I want to use four independent variables to predict the output of one dependent variable using a linear model lm. I want to compare all possible combinations of the 4 independent variables, including singles, pairs and triples. I was thinking of using the AIC test to compare all models and pick the best one. The model looks like this : lm(Y ~ X1 + X2 + X3 + X4) Thanks for your help
2006 Nov 25
3
Multiple Conditional Tranformations
Greetings, I'm learning R and I'm stuck on a basic concept: how to specify a logical condition once and then perform multiple transformations under that condition. The program below is simplified to demonstrate the goal. Its results are exactly what I want, but I would like to check the logical state of gender only once and create both (or any number of) scores at once.
2010 Jul 28
1
specifying an unbalanced mixed-effects model for anova
hi all - i'm having trouble using lme to specify a mixed effects model. i'm pretty sure this is quite easy for the experienced anova-er, which i unfortunately am not. i have a data frame with the following columns: col 1 : "Score1" (this is a continuous numeric measure between 0 and 1) col 2 : "Score2" (another continuous numeric measure, this time bounded between 0
2010 Oct 20
1
Adding Legend about two quantile lines at ggplot
Hi, all. I'd like to add legend on my graph but I can't. My code is follows. library(ggplot2) score1<-rnorm(100,0,5) score2<-rnorm(400,10,15) mydata<-data.frame(score1,score2) ggplot(mydata,aes(y=score2,x=score1))+geom_point()+stat_quantile(quantiles=c(0.50),col="red")+stat_quantile(quantiles=c(0.90),col="blue",size=2) I like to add legend indicating the
2010 Apr 26
1
Help with replacement of certain values in dataset with SAS code equivalent
I am new to R and have tried for a good while to figure out how to code this in R. The dataset below: FTIStandKey State County FTITract CoverType Ver_CT V_Origin V_SpGrp NAH6005-001 Texas Jasper NAH6005 PPLB-2000-U PPLB-2000-U P P NAH6005-002 Texas Jasper NAH6005 NHHX-1950-O NHHX-1950-I N H NAH6253-001 Texas Tyler NAH6253 PPLB-2001-U PPLB-2001-U P P
2010 Mar 03
5
Matching rows in a Data set? I'm Stuck!!
Hi, I'm having (yet another) problem with R. I have a few data sets that have this sort of format dataset1 ID DATA 1234 value 2345 value 3456 value dataset2 ID DATA 1111 value 2345 value 3333 value What i really want to do is write an R script that says "if the ID of dataset1 and 2 match (2nd row), print out that whole row into a new dataset3". No idea how to do that though.
2010 Aug 04
4
Passing the name of a variable to a function
Dear colleagues, I have a problem which has bitten me occasionally. I often need to prepare graphs for many variables in a data set, but seldom for all. or for any large number of sequential or sequentially named variables. Often I need several graphs for different subsets of the dataset for a given variable. I run into similar problems with other needs besides graphing. What I would like to
2010 Apr 16
4
score counts in an aggregate function
Dear R-Users, I have a big data set "mydata" with repeated observation and some missing values. It looks like the format below: userid sex item score1 score2 1 0 1 1 1 1 0 2 0 1 1 0 3 NA 1 1 0 4 1 0 2 1 1 0 1 2 1 2 NA 1 2 1 3 1
2008 May 22
9
Retrieving Mutliple Records using find_by_*
I was hoping that AR''s find_by_* magic methods would help me retrieve multiple items somewhat like the following: names_to_find = [''Larry'', ''Moe'', ''Curly''] found_people = Person.find_by_name(names_to_find) Is there a way to accomplish this using find_by_* (or even find(:all) using some sort of conditions) or must I resort to SQL
2010 Feb 25
2
Restructure some data
Suppose I have a data frame like "dat" below. For some context, this is the format that represents student's taking a computer adaptive test. first.item is the first item that student was administered and then score.1 is the student's response to that item and so forth. item.pool <- paste("item", 1:10, sep = "") set.seed(54321) dat <- data.frame(id =
2007 Feb 10
0
mutliple default routes, rp_filter and martians
I have a theory on the cause of a problem but it is still only a theory. I wonder if anyone here can confirm. I have a multi-isp configuration with a multi-path default route to each ISP, equally weighted. I am seeing, periodically, traffic dropped due to martian detection and errors logged on inbound traffic, but at other times, that same exact traffic will be allowed, no errors. My
2002 Oct 17
1
Mutliple backups into a signle dir
Hello. I am trying to make use of rsync for backup purposes. I want to use it with the -b switch: it renames older FILE to FILE~ instead of replacing it with the newer version. This way, only the newest and the second most recent versions of a file are saved. I want to have more versions. One approach to this can be inpired by --backup-dir operation. I'd rather extend the backup
2005 Aug 23
0
AreskiCC + Mutliple SIP Gateways for one route
Hello There, I'd like to define multiple providers for one dial prefix , like , i want if my one trunk gateway is filled the call is transfered to other ip, how can i achieve it with areskicc.Kindly Help. cheers Thanks Junaid Uppal
1998 Aug 06
0
Which IP adresses are registered when having mutliple interfaces
Hi! I'm running Samba 1.9.18p7 on a machine with two interfaces, so I configured: ; multiple interfaces interfaces =x.y.z.7/255.255.0.0 a.b.c.d/255.255.0.0 ; paranoia setting: to be REALLY sure which host name samba uses as NETBIOS name netbios name = XYZ001 This one has to register with a WINS server on one of the nets, so I configured: ; be a WINS client wins
2004 Sep 27
3
Mutliple Line 'Buttons'
New to Asterisk's and loving it so far. Does anyone know of any functionality in Asterisk's (or more so phones) that allows line numbers to be lit up like a switch board on a phone? So that someone can page another person with 'call on line 3'. I'm not really a telco guy and are still learning terminology for things. Any idea's? -- Regards, JB Hewitt Business:
2006 Oct 10
0
mutliple ISP's cont.
Hi Paul, thanks for your answers. > 3 DSL (ppp0,ppp1,ppp2) providers from the same ISP. (which means they have > the same gateway, but different static ISP''s) Do they actually have the same peer address? The connection is pppoe, the gateway is assigned by the ISP and the 3 ADSL connections next hop is to the same Router at the ISP. The gateway is the same for all 3 connections
2010 Apr 26
1
help with code
I am new to R and have tried for a good while to figure out how to code this in R. The dataset below: FTIStandKey State County FTITract CoverType Ver_CT V_Origin V_SpGrp NAH6005-001 Texas Jasper NAH6005 PPLB-2000-U PPLB-2000-U P P NAH6005-002 Texas Jasper NAH6005 NHHX-1950-O NHHX-1950-I N H NAH6253-001 Texas Tyler NAH6253 PPLB-2001-U PPLB-2001-U P P
2009 Mar 20
3
ATA recommendation??
Hello, I want to ask that if thee are some ATA decives that i can use to connect mutliple analog phone lines to my VOIP system.. I mean for example an ATA device with 24 ports with 24 independent SIP accounts. For example for some dormitories in my area, i want to put an ATA device and move existing lines to VOIP accounts. Only problem is, if i dont give seperate SIP accounts for all ports, i can
2011 Apr 07
12
Mutliple custom facts not showing in facter
Hi, I''ve noticed that defining multiple facts in one file is possible, and puppet can make use of them correctly, but when trying to call with facter --puppet they are not shown, do I need something special to make them work as any other single custom fact? Master is running 2.6.7 This is a custom fact with two facts in it: [modules/foobar/lib/facter/foobar.rb ] require
2008 Jan 05
4
a sort question
dear I have this list @@spelers = Speler.new(''Jan Janssens'', ''M'', 5, ''SR''),Speler.new(''Leen Leniksen'', ''V'', 7), Speler.new(''Piet Pieters'', ''M'', 3), Speler.new(''Els Elsenbocht'', ''V'', 1, ''J''),