[R] Remove individual rows from a matrix based upon a list

2012-03-20 Thread Grant Gillis
Dear All, Thanks in advance for any help. I have a square matrix of measures of interactions among individuals and would like to calculate a values from a function (colSums for example) with a single individual (row) excluded in each instance. That individual would be returned to the matrix

[R] calculating time interval distributions

2011-11-16 Thread Grant Gillis
Dear List, I have data on a approximately 100 individuals visiting a a central logging station over a 1000 times. I would like to be able to calculate the distribution of inter-visit time intervals for all possible pairs am stuck on how to code for this. Single pairs are not a problem but

Re: [R] tricky (for me) merging of data...more clarity

2011-03-04 Thread Grant Gillis
: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English) -- On Tue, Mar 1, 2011 at 11:06 AM, Grant Gillis grant.j.gil...@gmail.comwrote: 1 16/02/87 NA NA

Re: [R] tricky (for me) merging of data...more clarity

2011-03-01 Thread Grant Gillis
PM, Grant Gillis grant.j.gil...@gmail.comwrote: BC1 BC2 1 01/02/87 33 3 1 03/03/87 44 3 [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] tricky (for me) merging of data

2011-02-27 Thread Grant Gillis
Dear List, I am having trouble with a tricky merging task. I have one data sheet that has dates (continuous) that radio collared individuals were monitored via telemetry. I have a different sheet containing data from instances where individuals were recaptured and associated body condition

[R] adding copies of rows toa data frame based upon start and end dates

2010-10-28 Thread Grant Gillis
Hello All and thanks in advance for any advice. I have a data frame with rows corresponding radio-collared animals (see sample data below). There is a start date (DATESTART), and end date (DATEEND), and the number of days on air (DAYSONAIR). What I would like to do is add a column called DATE

[R] Variance inflation factor

2010-08-10 Thread Grant Gillis
Hello all and thanks in advance for any advice. I would like to calculate the variance inflation factor for a linear model (lm) with 4 explanatory variables. I would then like to use this to calculate QAIC. I have used the function vif() in the car package and I get values for each variable

[R] Help with adding points to allEffects plot

2010-03-09 Thread Grant Gillis
Thanks in advance for any help. I am attempting to add points to a plot using the allEffects command in the effects package. When I try to add the points I get the following error message: Error in plot.xy(xy.coords(x, y), type = type, ...) : plot.new has not been called yet Strangely, using

[R] multinom() and multinomial() interpretation

2009-02-23 Thread Grant Gillis
Hello and thanks in advance for any advice. I am not clear how, in practice, the multinom() function in nnet and the multinomial() function in VGAM differ in terms of interpretation. I understand that they are fit differently. Are there certain scenarios where one is more appropriate than the

[R] merging files with different structures

2009-02-17 Thread Grant Gillis
Hello list, Thanks in advance for any help. I have many (approx 20) files that I have merged. For example d1-read.csv(AlleleReport.csv) d2-read.csv(AlleleReport.csv) m1 - merge(d1, d2, by = c(IND, intersect(colnames(d1), colnames(d2))), all = TRUE) m2 - merge(m1, d3, by = c(IND,

Re: [R] merging files with different structures

2009-02-17 Thread Grant Gillis
Hello list, I am sorry for the previous half post. I accidentily hit send. Thanks again in advance for any help. I have many (approx 20) files that I have merged. Each data set contains rows for individuals and data in 2 - 5 columns (depending upon which data set). The individuals in

[R] Help with a permutation test

2008-12-12 Thread Grant Gillis
Hello List and thanks in advance for all of your help, I am trying implement a permutation test of a multinomial logistic regression ('multinom' within the nnet package). In the end I want to compare the parameter estimate from my data to the distribution of randomized parameter estimates. I

[R] Estimates of coefficient variances and covariances from a multinomial logistic regression?

2008-11-26 Thread Grant Gillis
Hello and thanks in advance for any help, I am using the 'multinom' function from the nnet package to calculate a multinomial logistic regression. I would like to get a matrix estimates of the estimated coefficient variances and covariances. Am I missing some easy way to extract these? Grant

Re: [R] restricted bootstrap

2008-09-04 Thread Grant Gillis
sampling scheme is needed, the hard-core spatial point process being a related example. On Wed, 3 Sep 2008, Grant Gillis wrote: Hello List, I am not sure that I have the correct terminology here (restricted bootstrap) which may be hampering my archive searches. I have quite a large

[R] restricted bootstrap

2008-09-03 Thread Grant Gillis
Hello List, I am not sure that I have the correct terminology here (restricted bootstrap) which may be hampering my archive searches. I have quite a large spatially autocorrelated data set. I have xy coordinates and the corresponding pairwise distance matrix (metres) for each row. I would like

[R] problems formating scientific collaboration data

2008-08-27 Thread Grant Gillis
Hello all and thanks in advance for any help or direction. I have co-authorship data that looks like: PaperAuthor Year 1 SmithKK JonesSD 2008 2 WallaceAR DarwinCA 1999 3 HawkingS2003 I would like: Paper Author

Re: [R] resampling from distributions

2008-04-19 Thread Grant Gillis
I am sorry for the incorrect subject. My subject autofilled without my noticing in time. I suppose a better subject would be Calculating proportion of shared occurances and randomizations. Grant 2008/4/19 Grant Gillis [EMAIL PROTECTED]: Hello All, Once again thanks for all of the help

[R] permutation/randomization

2008-04-09 Thread Grant Gillis
Hello, I have what I suspect might be an easy problem but I am new to R and stumped. I have a data set that looks something like this b-c(2,3,4,5,6,7,8,9) x-c(2,3,4,5,6,7,8,9) y-c(9,8,7,6,5,4,3,2) z-c(9,8,7,6,1,2,3,4) data-cbind(x,y,z) row.names(data)-c('a','b','c','d','e','f','g','h') which

[R] row by row similarity

2008-04-06 Thread Grant Gillis
Hello all and thanks in advance for any advice. I am very new to R and have searched my question but have not come up with anything quite like what I would like to do. My problem is: I have a data set for individuals (rows) and values for behaviours (columns). I would like to know the