Displaying 20 results from an estimated 1000 matches similar to: "data editor in R- could it be improved?"
2009 Feb 19
4
type III effect from glm()
Hi all,
This could be naivety/stupidity on my part rather than a problem with model output, but here goes....
I have fitted a fairly simple model
m1<-glm(count~siteall+yrs+yrs:district,family=quasipoisson,weights=weight,data=m[x[[i]],])
I want to know if yrs (a continuous variable) has a significant unique effect in the model, so I fit a simplified model with the main effect ommitted...
2009 May 29
1
data manipulation involving aggregate
hi all,
I often have a data frame like this example
data.frame(sq=c(1,1,1,2,2,3,3,3,3),area=c(1,2,3,1,2,3,1,2,3),habitat=c("garden","garden","pond","field","garden","river","garden","field","field"))
for each "sq" I have multiple "habitat"s each with an associated "area".
I
2009 Jan 22
1
help using zeroinfl()
Hi all,
I have been trying to use zeroinfl() with the pscl package with R version 2.1.1. and with the newest versions of the contrib packages compatible with R 2.1.1.
I have read the examples, the vignette and all the posts relating to zeroinfl() but I am still confused as to how to structure the model.
Here is a small example; the error message is the same for big data sets
2009 Jun 18
1
win.metafile() and family
Hi all,
I recently discovered how great win.metafile is for getting high resolution graphics into word.
Having problems with specifying families though...
#pdf works fine
pdf("test.pdf",width=14,height=9)
par(family="Helvetica")
plot(1:10)
text(4,4,"trial")
dev.off()
windows
2
#metafile doesnt like helvetica family
2011 May 13
2
biplots for PCA
Hi all
I have produced a biplot for a PCA (see attached pdf) that I ran however the
names of the variables which are placed at the end of the arrows overlap and
are thus unreadable. Similarly some of the numbered points overlap. I was
wondering if there was a way to edit the biplot to move the label names and
if not what the best alternative is.
Thanks
Anna
pca<-biodata[,3:10]
2009 Mar 10
1
help structuring mixed model using lmer()
Hi all,
This is partly a statistical question as well as a question about R, but I am stumped!
I have count data from various sites across years. (Not all of the sites in the study appear in all years). Each site has its own habitat score "habitat" that remains constant across all years.
I want to know if counts declined faster on sites with high "habitat" scores.
I can
2009 Apr 09
1
reading an image and adding a legend
Hi all,
I would like to
1. Read in an arcmap image into R (I can export pretty much any type of image jpeg, bitmap etc from arcmap)
2. Use R to create a nice colour legend in the plot
First of all, Is this possible?
So far I'm stuck on point 1. I have tried read.pnm() from pixmap and read.jpeg() from rgl.
the pnm example provided works fine
x <-
2011 Feb 10
2
Prediction accuracy from Bagging with continuous data
I am using bagging to perform Bagged Regression Trees on count data (bird abundance in Britain and Ireland, in relation to climate and land cover variables). Predictions from the final model are visually believable but I would really like a diagnostic equivalent to classification success that can be used to decide if a model is adequate. Whereas with classification data an error rate is returned,
2008 Jan 17
4
things that are difficult/impossible to do in SAS or SPSSbut simple in R
Good morning,
I use SAS and R/S-Plus as my primary tools so I have a lot of experience with these programs. By far and away, SAS is superior for handling the "messy" datasets, but also the very large ones. I work at times with datasets in the hundreds of thousands (and on occasion, millions) of records. SAS, and especially PROC SQL, are invaluable for this. But once I get to
2007 Oct 09
2
Help with gamm errors
Dear All
Hopefully someone out there can point out what I am missing! I have a
(large, several hundred) dataset of gardens in which over two years the
presence/absence of a particular bird species is noted each week. I have
good reason to believe there is a difference between the two years in the
weekly proportion of gardens and would like to assess this, before going on
to look in more detail at
2008 Jan 14
6
Ceiling to the nearest ten?
R-users,
Is there a function for ceiling to the nearest ten?
a <- 1:10*4
a
[1] 4 8 12 16 20 24 28 32 36 40
The resulting vector should look like this ("ceiling to the nearest ten")
[1] 10 10 20 20 20 30 30 40 40 40
Thanks in advance
Lauri
2007 Nov 21
2
Reconstruct array dataset
Hi there
I have an interesting problem:
My csv file is of array dimensions [12,50], but it was saved the wrong way: there should be only 11 colums. What happens now if I read it into R is that the whole data set is shifted ( in the first row, the last column contains already the first value of the supposed second row and so on...)
how can I tell R to switch after 11 read values to the next row,
2011 Feb 18
0
Weights in bagged regression trees
Has anyone any experience of applying observational weights in bagging? I am performing regression trees (continuous data on bird abundance) and need to account for sampling intensity. In a single tree, i.e. a call of rpart, I can specify weights either by having a separate vector called weights, or by a variable called weights in the dataframe under analysis. Both produce sensible (and identical)
2012 Apr 24
2
Combined grouped and stacked bargraph
Dear R list,
I am having some trouble drawing a bar-graph with two groups, both of
which are stacked.
A sample of my data (IUCN and national conservation status for marine
and terrestrial species) look like this:
Status
IUCN Terrestrial
IUCN Marine
National CS Terrestrial
National CS Marine
NE
168
69
16
69
LC
41
6
148
6
NT
5
4
7
4
VU
4
2
7
2
EN
4
2
4
2
CR
1
2012 Apr 25
1
FW: Combined grouped and stacked bargraph
Dear R list,
It appears that my request from yesterday got a bit garbled. I have
tried to rephrase and retype it - please let me know if you can help me
- I am having some trouble drawing a bar-graph with two groups, both of
which are stacked.
I would like to plot the conservation status according to two
classifications (i.e. my groups - IUCN status and national status), and
for each of those
2013 May 01
1
Multiple Paired T test from large Data Set with multiple pairs
Hi,
Assuming that your dataset is similar to the one below:
set.seed(25)
dat1<- data.frame(Algae.Mass=sample(40:50,10,replace=TRUE),Seagrass.Mass=sample(30:70,10,replace=TRUE),Terrestrial.Mass=sample(80:100,10,replace=TRUE),Other.Mass=sample(40:60,10,replace=TRUE),Site.X.Treatment=rep(c("ALA1A","ALA1U"),each=5),stringsAsFactors=FALSE)
library(reshape2)
2006 Aug 10
1
help with structuring random factors using lmer()
Hi,
I am an R beginner and having problems structuring my REML models. I have
a model with
y=weight
x1=time
x2=timesquared
id=individual identity
I need to structure the model such that in the random effects there is a
constant intercept for all individuals but a separate individual slope for
both x1 and x2 (a coefficient score for every individual).
2006 Aug 16
1
[SPAM] - RE: REML with random slopes and random intercepts giving strange results - Bayesian Filter detected spam
Can you provide the summary(m2) results?
> -----Original Message-----
> From: Simon Pickett [mailto:S.Pickett at exeter.ac.uk]
> Sent: Wednesday, August 16, 2006 7:14 AM
> To: Doran, Harold
> Cc: r-help at stat.math.ethz.ch
> Subject: [SPAM] - RE: [R] REML with random slopes and random
> intercepts giving strange results - Bayesian Filter detected spam
>
> Hi again,
2002 Jan 02
1
Combining files
Hi:
I am a very recent user of R 1.40 for MacOSX and went through the
help files but did not not find the function that I am looking for.
I have two comma separated files which I want to partly combine.
File 1 has 49670 lines and 26 columns (separated by commas) and looks
like this:
...
2005 May 30
4
Script to convert mboxes to maildirs?
Does anybody know of a script of a simple method of
converting mbox mail stores to maildirs? I'm moving
from an old pop3 system to imap and after installing
about half our office with mboxes have found that mbox
does not support subfolders which some people like to
use.
Is there any simple way of converting? I can go to
each individual account and "manually" convert swaping
data