similar to: how to assign a group mean to individual cases?

Displaying 20 results from an estimated 3000 matches similar to: "how to assign a group mean to individual cases?"

2007 Nov 13
2
group mean, minus each row's value
I used the following to assign each row the group average, where w is the new group average variable, x is the variabale to be averaged, and g is the nominal group indicator: w <- ave(x,g) Now I want to calculate the group average, but WITHOUT each row's value of x. Is there an easy way to do this? I'm sure I'm missing something obvious here, but for the life of me I can't
2009 Sep 14
2
how to recode with an if-type statement
I'm sure this is easy, but I'm having a hard time figuring out how to recode some data in R. I have a variable "numpeers" which is valued 1, 2, or 3. I also have three other variables called "w9zd9_1," "w9zd9_2," and "w9zd9_3." I want to use these variables to create a new item called "distot." Specifically, here is what I want to do:
2005 Oct 03
2
"symbol print-name too long"
All, I've coded a function and it works manually if I copy it line by line into R. However, when I try to "load" (copy and paste) the entire function into R, I get the following error after the listed line of code: + N.j.list = lapply(rej.hyp, length) Error: symbol print-name too long Does anyone you know what this error means? Strangely, when I copy the same line verbatim
2006 Sep 06
1
Covariance/Correlation matrix for repeated measures data frame
All, I have a repeated measures data frame and was wondering if the covariance matrix can be calculated via some created indexing or built-in R function. Specifically, say there are 3 variables, where potassium concentration is measured 6 times on each patient. Patient number (discrete) Time (1 to 6, discrete) Potassium (continuous variable) I want the covariance/correlation matrix for the
2003 Aug 13
1
means comparison with seasonal time series?
Dear R list, I have a sequence of weekly observations of number of adults and larvae in various size classes from a butterfly population living in a subtropical area with pronounced wet and dry seasons. Wet and dry seasons are each defined 26 weeks long with fixed start and end dates. The data span 103 weeks (two seasons each of wet and dry) with some missing weeks. What I would like to do is
2003 Sep 08
1
1.7.1 console unresponsive following "paste into"
Dear R Help, I've just installed 1.7.1 and have found that the console now exhibits odd behavior when I paste commands into it. I'm on a PC running Windows XP Professional. I use Word as my script editor, and then paste commands into the R console using the standard Windows "copy" within Word then "paste" within Rgui. This worked without a hitch in 1.7.0, but now in
2006 Sep 07
5
augPred plot in nlme library
All, I'm trying to create an augPred plot in the nlme library, similar to the plot on p.43 of Pinheiro & Bates (Mixed Effects Models in S and S-Plus) for their Pixel data. My data structure is the same as the example but I still get the error msg below. > comp.adj.UKV <- groupedData(adj.UKV ~ Time | Patient_no/Lisinopril, data = comp.adj.UKV.frm, order.groups = F) >
2013 Dec 03
2
Samba4 Winbind on DC Authentication problem
So, I've finally gotten around to installing a Samba4 AD DC. I've joined a Win7 and Ubuntu machine to the domain so far, and all works perfectly. Great job guys, it's nice to see this functionality working solidly on Samba! The problem is coming in on the actual DC host. My Ubuntu laptop is running winbindd 3.6.18, and as I said, all went flawlessly. The DC host is running
2013 Nov 28
4
SSH - Winbind and Keybased Auth
Hi Team, We have a weird issue that we are trying to understand. We have winbind set up and working successfully for user authentication with passwords via ssh. We have pam.d/system-auth-ac and password-auth-ac (symlinked) set to require membership of a group which works great via password authentication. However, if the user has a ssh key set up, they seem to bypass the group membership
2011 Jun 09
2
Problem with a if statement inside a function
I have a really long functions, and at the end of the function, I am using a if statement to tag certain keywords based on whether they have certain values contained in them. However, the if statement doesn't seem to work. When I had split up the commands into various functions, it worked fine, but I'm not sure what going on now that it's combined into a single function. myfunc
2009 Nov 05
0
Biometric Summit - Feb. 22-25, 2010
Join your colleagues for the 20th highly acclaimed international forum to hear the latest implementations of biometrics... The Winter 2010 BIOMETRICS SUMMIT: -------------------- Practical Implementation Strategies, Market Trends And Best Practices In Government And Business -------------------- February 22-25, 2010 - Miami, FL
2009 Nov 16
0
Biometric Summit - 2010
JOIN YOUR COLLEAGUES FOR THE 20TH HIGHLY ACCLAIMED INTERNATIONAL FORUM TO HEAR THE LATEST IMPLEMENTATIONS OF BIOMETRICS... THE WINTER 2010 BIOMETRICS SUMMIT: -------------------- Practical Implementation Strategies, Market Trends And Best Practices In Government And Business -------------------- February 22-25, 2010 - Miami, FL
2012 Sep 11
4
Maintaining specific order when using aggregate or change order on axis
Hi All, I'm using the following code to produce some stacked bar graphs. *setwd("C:\\Users\\Tinus\\Documents\\NMMU\\R\\Seamounts")* *SChla <- read.csv("SM_Chla_data.csv")* * * *#Extract mean values from data file* * * *Coral <- SChla[185:223,] #Reduce SChla to Coral only* *coral <- with(Coral , aggregate(cbind(Pico, Nano, Micro), list(Depth),FUN=mean))*
2007 Oct 03
2
In-site migration from /etc/passwd to LDAP
I'm doing in-site migration of accounts from /etc/passwd to an LDAP directory. The migration should be progressive (not all users at the same time). I'm already able to check mail for accounts in /etc/passwd and accounts in LDAP. The problem is with mail delivery. I'm using Postfix + Dovecot-LDA. This is the error I get with every delivery -- dovecot: Oct 03 00:16:09 Info:
2011 Nov 12
1
Subsetting data leads to funky plots
I'm trying out a basic plot, but something about the way I subset my data leads to problems with the plot. Here is the first bit of my data set year,date,location,quadrat_juvenile,photo_location,photo_exists,genus,count,divers 2005,2005-04-30, 1 Fringing Reef,1, 1 Fringing Reef Coral Transect Pole 1-2 Quadrat 1,t,Acanthastrea,0,HP+MEM 2005,2005-04-30, 1 Fringing Reef,1, 1 Fringing Reef
2009 Mar 27
2
print table (data.frame) to pdf
How can I print a data.frame to a PDF with pdf()...dev.off() ____________ Paulo E. Cardoso [[alternative HTML version deleted]]
2012 Oct 23
2
plotting multiple variables in 1 bar graph
I'd greatly appreciate your help in making a bar graph with multiple variables plotted on it. All the help sites I've seen so far only plot 1 variable on the y-axis Data set: I have 6 sites, each measured 5 times over the past year. During each sampling time, I counted the occurrences of different benthic components (coral, dead coral, sand, etc.) over 5 transects in each site site
2010 Jun 16
3
Decile
Hello comunity, I'm trying to find a similar function as decile of SPSS, NTILES (10) some of you know about that, I will appreciate your help in advance. In SPSS VARIABLES=Sales (A) /NTILES (10) /PRINT=NO for example if I have Next data input: case IdCust Sales Profit 1 265 140.81 314.31 2 266 1778.96 408.32 3 267 2663.66 820.85 4 268 2994.14 913.73 5 269 2185.58 686.64 6 271 105.21
2001 Feb 01
6
hello, I need some help for using wine
hello, i have this problem : [y.moya@yves y.moya]$ cd /mnt/cdrom [y.moya@yves cdrom]$ ls 3Dfx SETUP.EXE _setup.dll autorun.pak hlinst.dll setup.bmp DATA.TAG SETUP.INI _sys1.cab data1.cab lang.dat setup.ins DIRECTX Worldcraft _user1.cab dsetup.dll layout.bin setup.lid Localize.cab _INST32I.EX_ autorun.exe dsetup16.dll os.dat sierra.inf
2005 Jan 09
2
Coral with Xen
Hi! Coral isn''t working from Xen. If you can please try it, maybe i''m just doing something wrong. However it works from outside Xen with the same setup. Can Xen cause this kind of DNS errors? Try something like: http://www.scs.cs.nyu.edu.nyud.net:8090/coral/ or http://www.google.com.nyud.net:8090/ -- /Varga Péter/ ------------------------------------------------------- The