Displaying 20 results from an estimated 7000 matches similar to: "Randomly select elements based on criteria"
2005 Feb 23
1
How to conctruct an inner grouping for nlme random statement?
Hello. Im hoping someone can help with a grouping
question related to the "random=" statement within the
nlme function. How do you specify that some grouping
levels are inner to others? I tried several things,
given below.
Lets say I have a data frame with five variables,
resp, cov1, ran1, ran2, group1, and group 2. The
formula is resp~cov1 + ran1 + ran2, where the ran are
random
2001 Sep 11
2
data frames
Dear R-list members
Here goes a question on data frames:
I want to create a new data frame excluding some records
(rows) from an existing one.
Considering the data frame "fish.dat" at the end of this
message, I can make a boxplot(Ring~Radius) and identify the
points at rows 11 and 25 as outliers.
With the command fish.dat[c(11, 25),] I can identify which
fishes are related to
2012 Mar 19
2
Reshape from long to wide
Hi,
I'm a total beginner in R and this question is probably very simple but I've
spent hours reading about it and can't find the answer. I'm trying to
reshape a data table from long to wide format. I've tried reshape() and
cast() but I get error messages every time and I can't figure why. In my
data, I have the length of two fish from each family. My data table (called
2005 Mar 23
3
nested random effects
Hi
I am struggling with nested random effects and hope someone can help.
I have individuals (ID) who are nested within families (FAM). I want to
model an outcome variable, and take account of the intercorrelation of
individuals within each family.
I think this amounts to two random effects, one nested within the other.
How can I model this in R?
So far I have tried using the
2010 Jul 26
1
form date helper with text year
I have a date where the year range is more then I want to define in a
select_date scaffold generated year range.
My idea was to have the year entered as a text field and the month and
day using something like:
<%= select_month @person.born,:prefix => :person ,:field_name =>
"born(2i)" %>
<%= select_day @person.born,:prefix => :person , :field_name =>
2009 Sep 08
1
Function to query ASTDB families
Hi,
Asterisk database is made of <family><key> records such as:
fam key1 val1
fam key2 val2
...
fam key100 val100
I'm looking for the smartest way to iterate among different keys associated
to a given family.
One way to do this is to parse "database show fam" response.
Is there something smarter ?
Something like ${DBKEYS(fam)} which would evaluate to "key1
2007 Oct 26
1
[Fwd: Re: subsetting]
Sorry that I was unclear. For an individual to qualify for my analysis I
want both of the following two criteria to be fulfilled:
First, I want to select measurement taken at a certain age: for the
focal individual the year of measurement (year) should be the same as
year.hatch
Second, I want the focal individual to be born by a mother that
reproduces for the first time.
So the /parents /of
2006 Sep 04
1
fam error
Dear Samba Friends,
I got the following error again and again:
<snip>
.....
Sep 4 10:58:18 sun smbd[94479]: [2006/09/04 10:58:18, 0] smbd/notify_fam.c:fam_check_reconnect(136)
Sep 4 10:58:18 sun smbd[94479]: failed to connect to FAM service
Sep 4 10:58:23 sun smbd[94479]: [2006/09/04 10:58:23, 0] smbd/notify_fam.c:fam_check_reconnect(136)
Sep 4 10:58:23 sun smbd[94479]: failed to
2005 Aug 01
6
converting stata's by syntax to R
I am struggling with migrating some stata code to R. I have a data
frame containing, sometimes, repeat observations (rows) of the same
family. I want to keep only one observation per family, selecting
that observation according to some other variable. An example data
frame is:
# construct example data
fam <- c(1,2,3,3,4,4,4)
wt <- c(1,1,0.6,0.4,0.4,0.4,0.2)
keep <- c(1,1,1,0,1,0,0)
2012 Oct 31
2
how can xyplot word when with for control flow
Hi everybody,
I recently used xyplot, but I found that for control flow can't work in the
xyplot. The program code and some of my data file are shown as follow.
Would someone please tell me where my code is wrong and how can make the
code right?
Thanks.
Best regards
Yuanzhen Lin
Code:
library("lattice")
plot.data$Fam<-as.numeric(plot.data$Fam)
#### xyplot can work if one
2009 Feb 18
2
Counting/processing a character vector
Dear List,
I have a data set stored in the following format:
> head(dat, n = 10)
id sppcode abundance
1 10307 10000000 1
2 10307 16220602 2
3 10307 20000000 5
4 10307 20110000 2
5 10307 24000000 1
6 10307 40210000 83
7 10307 40210102 45
8 10307 45140000 1
9 10307 45630000 1
10 10307 45630600 41
>
2005 Dec 14
3
Fitting binomial lmer-model, high deviance and low logLik
Hello
I have a problem when fitting a mixed generalised linear model with the
lmer-function in the Matrix package, version 0.98-7. I have a respons
variable (sfox) that is 1 or 0, whether a roe deer fawn is killed or not
by red fox. This is expected to be related to e.g. the density of red
fox (roefoxratio) or other variables. In addition, we account for family
effects by adding the mother
2012 Mar 05
1
Order a data frame based on the order of another data frame
Hi, I am trying to match the order of the rownames of a dataframe with
the rownames of another dataframe (I can't simply sort both sets
because I would have to change the order of many other connected
datasets if I did that): Also, the second dataset (snp.matrix$fam) is
a snp matrix slot:
so for example:
data_one:
x y
2012 Jan 02
2
summary per group
Hello,
I know that it'll be quite easy to do what I want but somehow I am lost as I am new to R. I want to get summary results arranged by groups. In detail
I'd like get the number (levels) of Species per Family like for this dataset:
SPEC <-
2003 Sep 08
1
Problems deleting directories on smbmounted partitions
Hi,
I'm having some odd problems with samba in combination with fam. On my linux
system I have mounted some partitions that are shared by a Win2k machine on
my LAN. With any GUI filemanager using fam I can create files and
directories, but I can't delete directories, only files. If I try to delete a
directory, it just doesn't work. If I try to delete a directory containing
files,
2007 Nov 27
2
lme object manipulation
Hello:
I have an lme object, say lme_res2, which was generated using the varIdent. I'm trying to extract the double 1.532940 from the object, but I can't find it by attributes(lme_res2) or attributes(summary(lme_res2)). How can I pull it out (so that I can save it to another variable)? Thanks.
Shin
Linear mixed-effects model fit by REML
Data: dat
Log-restricted-likelihood:
2010 Aug 20
1
ocfs2 hang writing until reboot the cluster-dlm: set_fs_notified: set_fs_notified no nodeid 1812048064#012
Hello,
I hope this mailing list is correct.
I've a cluster pacemaker with a clone resource ocfs2 with
ocfs2-tools-1.4.1-25.6.x86_64
ocfs2-tools-o2cb-1.4.1-25.6.x86_64
on Opensuse 11.2
After some network problem on my switch I receive on one of 4 nodes of
my cluster the following messages
Aug 18 13:12:28 nodo1 openais[8462]: [TOTEM] The token was lost in the
OPERATIONAL state.
Aug 18 13:12:28
2002 Nov 11
1
Printer driver downloads...?
I've been googling around for quite some time, and haven't managed to find
anything useful. Is there some moderately up-to-date information on how
to set up the automatic print-driver download in Samba 2.2.x? I know about
the "old way" of doing things, but it doesn't seem to fly with Win2K drivers.
Any and all help, and pointers to FD so I can RTFD (again, haven't had
2008 Sep 05
2
upgraded maps database for italy?
Dear UseRs,
I'm using the library maps. I'm drawing maps of Italy. The map available for
this library were prepared around *1989*:
"This italy database comes from the NUTS III (Tertiary Administrative Units
of the European Community) database of the United Nations Environment
Programme (UNEP) GRID-Geneva data sets. These were prepared around *1989*"
[cited:
2002 Nov 19
1
Driver download problem (still)...
I've gotten driver-downloads to work from WinNT/2K clients, but I still
can't seem to figure out how to get things to work with Win9x clients.
Here's a copy of my smb.conf file:
***********
[global]
printing = lprng
printcap name = /etc/printcap
log level = 1
load printers = no
guest account = nobody
security = domain
workgroup =