[R] analysis of covariance and constrained parameters

2018-02-16 Thread Steven Orzack
Consider an analysis of covariance involving age and cohort. The goal is to assess whether the influence of cohort depends upon the age. The simplest case involves data as follows value Age Cohort x1   1   3 x2   1   4 x3   1   5 x4   2   3 x5   2  

Re: [R] Analysis of causal relations between rare (categorical) events

2015-09-29 Thread markshanks
Thanks Giorgio and Jim. This info is exactly what I needed. -- View this message in context: http://r.789695.n4.nabble.com/Analysis-of-causal-relations-between-rare-categorical-events-tp4712801p4712951.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] Analysis of causal relations between rare (categorical) events

2015-09-26 Thread giorgio.garzi...@tin.it
Also: https://cran.r-project.org/web/views/Survival.html https://www.youtube.com/watch?v=1Mt7EuVJf1A http://gking.harvard.edu/files/gking/files/0s.pdf?m=1360039053 http://biostat.mc.vanderbilt.edu/wiki/pub/Main/RmS/rms.pdf --- Giorgio Garziano __ R-he

Re: [R] Analysis of causal relations between rare (categorical) events

2015-09-26 Thread Jim Lemon
Hi Mark, You might find the eventInterval package of use. Jim On Sat, Sep 26, 2015 at 8:33 AM, markshanks wrote: > Hi, > > I have only a relatively basic background in statistics (e.g., anova, > regression), and the books on R I have read so far have focused on > relatively common statistical

Re: [R] Analysis of causal relations between rare (categorical) events

2015-09-26 Thread Giorgio Garziano
Hi, I may suggest the following book introducing event history analysis with R and showing some datasets to work with: https://www.crcpress.com/Event-History-Analysis-with-R/Brostrm/9781439831649 I am not sure it can answer all your questions about your specific problem (rare events), however i

[R] Analysis of causal relations between rare (categorical) events

2015-09-25 Thread markshanks
Hi, I have only a relatively basic background in statistics (e.g., anova, regression), and the books on R I have read so far have focused on relatively common statistical analyses (e.g., outlier analysis, trend forecasting) and haven't helped me with the data problem I am facing. In short, imagin

Re: [R] analysis of variance test

2015-05-29 Thread Jim Lemon
Hi Nezahat, First, you are storing the code of the function "numeric" in x1 and x2. You probably want to use: x1<-numeric() x2<-numeric() Second, you are then storing the output of your aov summary (a list) in x1, which requires a bit of analysis to get the information you want (i.e. p value). Th

Re: [R] analysis of variance test

2015-05-29 Thread Michael Dewey
Dear Nezahat In future it would be helpful if you 1 - gave us the data so we can reproduce what you are doing 2 - told us what the error was in case we cannot replicate ti 3 - did not post in HTML as it messes up everything in your post What did you think x1 <- numeric was going to do? Try x1 <-

[R] analysis of variance test

2015-05-28 Thread Nezahat HUnter
Let's say I have 12 observation of 5 variables and my first variable is categorical (with 4 different levels). I am trying to find out statistical significance difference between these categorical levels for each variable, but my  function is not working! Please note that my data "x" are in dat

Re: [R] Analysis of censored cost data

2014-07-03 Thread Ian Cromwell
Paul, I happen to be working on the exact same problem. If you found a solution somewhere, please let me know. I will do the same if I stumble onto a solution first. Rich - cost information can be collected prospectively but be censored due to incomplete follow-up or some other similar reason. Thi

Re: [R] Analysis using repeated measure mixed effect anova

2014-06-29 Thread Michael Peng
For the t-test, you used the two-tailed t-test. It is the default. Here I think you should set alternative="less" in the t.test function. 2014-06-29 8:41 GMT-05:00 dhs : > Trying to understand how to analyze my data, sample data follows. I want > to know if the student scores increased from sem

[R] Analysis using repeated measure mixed effect anova

2014-06-29 Thread dhs
Trying to understand how to analyze my data, sample data follows. I want to know if the student scores increased from sem1 to sem2 (semesters), and whether the inGroup scores increase more. Here’s what I did with sample data: students <- c("s1”, “s2”, "s3") inGroup<- c(T, F, T) score

Re: [R] Analysis of censored cost data

2014-04-23 Thread Rich Shepard
On Wed, 23 Apr 2014, Paul Miller wrote: Am intested in using R to analyze censored cost data. Paul, What are censored cost data? Too high to be affordable; too low to cover materials? My best guess so far is the NADA package. Not sure if this is the best thing to do what I need though.

[R] Analysis of censored cost data

2014-04-23 Thread Paul Miller
Hello All, Am intested in using R to analyze censored cost data. Looks like I'd need to estimate some means and associated variances. I've got a few papers describing this. These talk about the use of re-weighted estimators (Lin), inverse probability weighted estimators (Bang-Tsiatis), phase-ba

Re: [R] Analysis

2013-11-13 Thread Ranjan Maitra
Don't know if the data will support the result that you want but the only way to get some sort of answer is to hire a statistician. ranjan On Wed, 13 Nov 2013 20:58:30 -0400 Jim Silverton wrote: > Hi, > > > > I have 187 urine cultures which were subjected to culture and microscopy > methods.

[R] Analysis

2013-11-13 Thread Jim Silverton
Hi, I have 187 urine cultures which were subjected to culture and microscopy methods. Video were used to 'verify' the findings. Culture is considered the gold method. But Microscopy is another method which may be cheaper. I checked the videos to determine whether bacteria was growing on both the

Re: [R] Full Documentation of R analysis

2013-04-05 Thread S Ellison
>The root directory or script > file name should be given only in one place (the R CMD BATCH >command argument) and the other file names should be derived from it. Why? I can think of lots of instances where it would be very unwise to assume that data files would be in the same directory

Re: [R] Full Documentation of R analysis

2013-04-05 Thread will . eagle
Dear all, thanks for your help which solves the problem! However, I would like to remark that I find the R CMD BATCH command options inconsistent and incomplete, since the .RData path and file name is not (always) the same as the R script and there is no easy control over the path

Re: [R] Full Documentation of R analysis

2013-04-04 Thread Duncan Murdoch
On 04/04/2013 10:18 AM, will.ea...@gmx.net wrote: Dear all, I would like to fully document an analysis in R including script, output and workspace data. To do this I currently run under Linux $ R CMD BATCH myscript.R This command combines and saves only the script commands

Re: [R] Full Documentation of R analysis

2013-04-04 Thread Joshua Wiley
Hi Will, I think that save.image() is the way to go. Regarding the directory, its possible to pass arguments to an R script from the command line, or as long as the R script is in the directory you want the image saved in, just save it to the current working directory. Cheers, Josh On Thu, Ap

[R] Full Documentation of R analysis

2013-04-04 Thread will . eagle
Dear all, I would like to fully document an analysis in R including script, output and workspace data. To do this I currently run under Linux $ R CMD BATCH myscript.R This command combines and saves only the script commands and the output ./myscript.Rout. To save the workspace

Re: [R] Analysis of Variance

2012-11-29 Thread arun
1 A.K. - Original Message - From: David Arnold To: r-help@r-project.org Cc: Sent: Thursday, November 29, 2012 3:39 PM Subject: [R] Analysis of Variance Hi, I am encountering a difficulty I don't understand. Be patient, I'm very new to analysis of variance. If I load this da

Re: [R] Analysis of Variance

2012-11-29 Thread Andrés Aragón Martínez
Hi D, R is taking drug as numeric, you ned indicate to R that drug is a factor: > example12_7$drug <-factor(example12_7$drug) > ej2<-aov(time~drug,data=example12_7) > summary(ej2) Df Sum Sq Mean Sq F value Pr(>F) drug 2 21.98 10.991 4.188 0.0345 * Residuals 16 41.99

[R] Analysis of Variance

2012-11-29 Thread David Arnold
Hi, I am encountering a difficulty I don't understand. Be patient, I'm very new to analysis of variance. If I load this data: example12_7=read.table("http://msemac.redwoods.edu/~darnold/math15/data/chapter12/example12_7.dat",header=TRUE) The run the oneway.test: oneway.test(time~drug,data=examp

[R] Analysis of Means in R

2012-10-04 Thread Data Analytics Corp.
Hi, Does anyone know of a package for doing Analysis of Means in R? Or have any functions they would like to share? Thanks, Walt Walter R. Paczkowski, Ph.D. Data Analytics Corp. 44 Hamilton Lane Plainsboro, NJ 08536 (V) 609-936-8999 (F) 609-

Re: [R] analysis of bitmaps

2012-09-05 Thread Michael Sumner
There are several packages to do this, with probably rgdal as the most general for reading - it will read many image formats as a SpatialGridDataFrame (class from package sp). This class behaves like a data.frame in many ways and can be coerced to one with as.data.frame. Non-spatial image formats w

[R] analysis of bitmaps

2012-09-05 Thread Scott Swigart
I'm interested in using R to perform some statistical analysis of bitmaps. When I search, I see a lot of information about outputting bitmaps, but I'm not finding much about loading a bitmap into a data frame so that it can be analyzed. Would someone have a quick pointer to help me out?

Re: [R] Analysis

2011-10-14 Thread Alex Ruiz Euler
Here are some tutorials to R: http://www.cyclismo.org/tutorial/R/ http://www.statmethods.net/ Or just search on the web. Good luck, A. On Fri, 14 Oct 2011 09:29:52 +0300 Peter Kaiga wrote: > i'm actually new at R, but to me its going to be big time, i want to do an > analysis for the attach

Re: [R] Analysis

2011-10-14 Thread Paul Hiemstra
On 10/14/2011 06:29 AM, Peter Kaiga wrote: > i'm actually new at R, but to me its going to be big time, i want to do an > analysis for the attached data, like define variables and then analyse get > means, variances, histogram, and other important attributes including cross > tabs Hi, Thanks for

[R] Analysis

2011-10-14 Thread Peter Kaiga
i'm actually new at R, but to me its going to be big time, i want to do an analysis for the attached data, like define variables and then analyse get means, variances, histogram, and other important attributes including cross tabs Regards, Peter "Countycode","Provincecode","Interviewercode","Locat

[R] Analysis of unbalanced data in nlme or car

2011-07-20 Thread Menelaos Stavrinides
I am analyzing a dataset on the effects of six pesticides on population growth rate of a predatory mite. The response variable is the population growth rate of the mite expressed as ln(Nfinal/Nstarting) of the mite, where N final the population of the mite at the end of the experiment and N startin

Re: [R] analysis with the data from mysql database

2011-06-20 Thread Jim Holtman
at least provide a sample of the data. It sounds like you have 'factors' as your data. Do an 'str' of your dataframe that was returned. Sent from my iPad On Jun 19, 2011, at 22:57, amrita gs wrote: > Hi everyone, > > I have certain values retrieved from mysql database.How can i do > cer

Re: [R] analysis with the data from mysql database

2011-06-20 Thread Steven Kennedy
Please tell us the package you are using and the specific commands. It is most likely you are retrieving the data into a list or some other structure that hist() doesn't like. On Mon, Jun 20, 2011 at 12:57 PM, amrita gs wrote: > Hi everyone, > >     I have certain values retrieved from mysql dat

[R] analysis with the data from mysql database

2011-06-19 Thread amrita gs
Hi everyone, I have certain values retrieved from mysql database.How can i do certain analysis like histogram, correlational analysis tc using this data,I tried it. But when i tried to plot a histogram it actually showed error the data is not numeric evenif it was stored as integer data type

[R] Analysis of Dispersion

2011-05-30 Thread Joseph Kunkel
Does anyone know of an R implementation of Rao's (1965) described 'Analysis of Dispersion' which is the generalization of the General Linear Model, Y = XB, to multiple Y variables and the further use of the method to 'Test of Additional Information' in one set of Y variables corrected for a seco

Re: [R] Analysis and graphics by groups

2011-04-29 Thread Bilonick, Richard A
roject.org [r-help-boun...@r-project.org] on behalf of Andrew Robinson [a.robin...@ms.unimelb.edu.au] Sent: Friday, April 29, 2011 8:05 PM To: Cristiano Yuji Sasada Sato Cc: r-help@r-project.org Subject: Re: [R] Analysis and graphics by groups hi Christiano, the error is that FUN is not a funct

Re: [R] Analysis and graphics by groups

2011-04-29 Thread Andrew Robinson
hi Christiano, the error is that FUN is not a function. That is true, the argument that you are passing to FUN is a different class. Instead of fx, for example, where fx is your model code below, try to write it as a function of the arguments that you want to split by Cerca. You might try to con

Re: [R] Analysis and graphics by groups

2011-04-29 Thread Cristiano Yuji Sasada Sato
Hello, This is my first post in this e-mail list and I hope it's enough to justify calling for help. In case it's not, sorry. I'm trying to do analysis and graphics using a factor as a criteria to split data and do the analysis/graphics for each subset of data. Right now what I'm trying to do is

[R] analysis strategy - baseline and repeated measure

2011-01-17 Thread array chip
Hi, assume that I have a repeated measure dataset with 3 time points: baseline, day 5 and day 10. There are 4 treatment groups (vehicle, treatment 1, treatment 2 and treatment 3). 20 subjects per treatment group. A simple straight-forward way to analyze the data is to use mixed model: model 1:

Re: [R] do the standard R analysis functions handle spatial "grid" data?

2010-07-12 Thread Steve Taylor
Have a look at the Task View for spatial data... http://cran.ms.unimelb.edu.au/web/views/Spatial.html >>> From: "chris howden" To:, Date: 13/Jul/2010 2:01p Subject: [R] do the standard R analysis functions handle spatial "grid" data? Hi everyone, I'm doing

[R] do the standard R analysis functions handle spatial "grid" data?

2010-07-12 Thread chris howden
Hi everyone, I'm doing a resource function analysis with radio collared dingos and GIS info. The ecologist I'm working with wants to send me the data in a 'grid format'...straight out of ARCVIEW GIS. I want to model the data using a GLM and maybe a LOGISTIC model as well. And I was planning on u

Re: [R] new to R, analysis of latency data

2010-04-05 Thread Dennis Murphy
ile latency of transaction type data (order, ack, fill) > - X axis = transaction rate > > I've read the basic doc, created some simple plots, could someone get me > going in the right direction? > > tia, > jd > > > > -- > View this message in context: > http:

[R] new to R, analysis of latency data

2010-04-05 Thread jeff d
e read the basic doc, created some simple plots, could someone get me going in the right direction? tia, jd -- View this message in context: http://n4.nabble.com/new-to-R-analysis-of-latency-data-tp1752096p1752096.html Sent from the R help mailing list a

[R] Analysis of a highly pseudoreplicate mixed-effects experiment

2009-09-14 Thread Matthias Gralle
Hello everybody, I have been trying for some weeks to state the correct design of my experiment as a GLM formula, and have not been able to find something appropriate in Pinheiro & Bates, so I am posting it here and hope somebody can help me. In each experimental condition, described by 1) g

[R] analysis of categorical data

2009-08-25 Thread tommers
>From a somewhat ill-designed education experiment, I have categorical data with two between subject variables and one within subject variable. Since it is categorical (essentially counts of answer choices on multiple choice questions), I'm looking for some chi-squared method. I know how to gener

[R] analysis of circular data with mixed models???

2009-05-15 Thread Steven Van Wilgenburg
Hi. I am trying to model data on movements (direction) of birds and the response variables are compass directions (0 to 360). I have found two packages CircStats and Circular that can implement linear models for a circular response, which will do what I need for the data set I am currently wor

[R] analysis of variance using lmer

2009-02-26 Thread Lars Kunert
Hi, I am trying to do an analysis of variance for an unbalanced design. As a toy example, I use a dataset presented by K. Hinkelmann and O. Kempthorne in "Design and Anaylysis of Experiments" (p353-356). This example is very similar to my own dataset, with one difference: it is balanced. Thus it is

Re: [R] Analysis of poorly replicated array data

2008-07-14 Thread Wolfgang Huber
Hi Eli I have "inherited" a cDNA macroarray dataset that is structured as follows. Three different stressors were tested. For each stressor, there are two treatments (control and stressed). For each treatment, two biological replicates exist, and these are paired (i.e., there is a stressed arr

[R] Analysis of poorly replicated array data

2008-07-14 Thread Eli Meyer
Greetings, I have "inherited" a cDNA macroarray dataset that is structured as follows. Three different stressors were tested. For each stressor, there are two treatments (control and stressed). For each treatment, two biological replicates exist, and these are paired (i.e., there is a stressed a

Re: [R] Analysis of Epidemiological Data Using R

2008-04-21 Thread Peter Dalgaard
José Ignacio Bustos Melo wrote: > Hi everyone, > > I'm studying the manual name: Analysis of Epidemiological Data Using > R and Epicalc, maked by: Virasakdi Chongsuvivatwong and Edward McNeil. > > And I can't find the data base that they use in some examples, this are > the names: > > Chapter7.Rdat

[R] Analysis of Epidemiological Data Using R

2008-04-21 Thread José Ignacio Bustos Melo
Hi everyone, I'm studying the manual name: Analysis of Epidemiological Data Using R and Epicalc, maked by: Virasakdi Chongsuvivatwong and Edward McNeil. And I can't find the data base that they use in some examples, this are the names: Chapter7.Rdata,Chapter8.Rdata,Chapter9.Rdata Somebody can t

[R] analysis on Pcap dataset

2008-03-20 Thread Neo23
Hi, I want to do some analysis on pcap datasets.. so is there any package which take cares of that.. If someone has already worked on this, could you give me some tips... thanks, Neo23 -- View this message in context: http://www.nabble.com/analysis-on-Pcap-dataset-tp16187570p16187570.html Se

Re: [R] Analysis with spatstat and Kcross() requires to much memory

2008-02-15 Thread Roger Bivand
Rainer M Krug gmail.com> writes: > > Hi > > I am running analysis with Kcross from the package spatstat and I am getting > a message that R can not allocate enough memory for a vector of 900MB. > R seems to be running towards the 2GB limit per process. > > The dataset is not to big (ca 3000 p

[R] Analysis with spatstat and Kcross() requires to much memory

2008-02-14 Thread Rainer M Krug
Hi I am running analysis with Kcross from the package spatstat and I am getting a message that R can not allocate enough memory for a vector of 900MB. R seems to be running towards the 2GB limit per process. The dataset is not to big (ca 3000 points) but the mask for the points is extremely irre

Re: [R] analysis of large data set

2007-11-19 Thread Greg Snow
eg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Prof Brian Ripley > Sent: Friday, November 16, 2007 11:47 PM > To: sj > Cc: r

Re: [R] analysis of large data set

2007-11-17 Thread Emmanuel Charpentier
Prof Brian Ripley a écrit : [ ... ] > What is strange is that no one has ever thanked us for finding out > (despite most Microsoft documentation) that you can get up to 3.5Gb in a > 32-bit process on certain 64-bit versions of Windows and enabling you to > use it in recent versions of R. Maybe

Re: [R] analysis of large data set

2007-11-16 Thread Prof Brian Ripley
On Fri, 16 Nov 2007, sj wrote: > All, > > I am working with a large data set (~ 450,000 rows by 34 columns) I am > trying to fit a regression model (I have tried to use several procedures psm > (Design package) lm, glm). However whenever I try to fit the model I get the > following error: > > > Er

Re: [R] analysis of large data set

2007-11-16 Thread Matthew Keller
Spencer, There have been a lot of discussions on these boards re working with large datasets in R, so looking through those will probably inform you better than I'll be able to. So with that said... I have been trying to work with very large datasets as well (genetic datasets... maybe we're in th

[R] analysis of large data set

2007-11-16 Thread sj
All, I am working with a large data set (~ 450,000 rows by 34 columns) I am trying to fit a regression model (I have tried to use several procedures psm (Design package) lm, glm). However whenever I try to fit the model I get the following error: Error: cannot allocate vector of size 1.1 Gb Her

[R] analysis of 2x2 tables of various designs

2007-11-07 Thread Max Moldovan
Dear Colleagues, Could you recommend a package of combination of functions in R for analysis of 2x2 tables of various designs. Preferably it should include tests and confidence limits (both exact and approximate) for alternative designs, such as independent proportions (e.g. parallel group clin