Displaying 8 results from an estimated 8 matches for "age_group".
2009 Aug 25
4
table, xyplot, names, & loops
Hi R community,
I'm just starting out in R and have a basic question about xyplot and
tables. Suppose I had a table of data with the following names: Height,
Age_group, City. I'd like to plot mean Height vs Age_group for each City.
When I try to do the following:
> library(lattice)
> xyplot(mean(Height) ~ Age_group | City)
of course I get just one data point, the mean Height for all individuals.
I also tried constructing a new array with mean Height...
2007 Oct 07
2
Re-ordering factors
A small example before I begin my query:
> educ <- read.table(efile, header=TRUE)
> educ
Education Age_Group Count
1 IncompleteHS 25-34 5416
2 IncompleteHS 35-44 5030
3 IncompleteHS 45-54 5777
4 IncompleteHS 55-64 7606
5 IncompleteHS >64 13746
6 CompletedHS 25-34 16431
7 CompletedHS 35-44 1855
8 CompletedHS 45-54 9435
9 CompletedHS 55-64 8795
10...
2008 Mar 12
1
ftable and xtabs
Hoping someone can help me with xtabs and ftable. I'm trying to get a pair
of ftables (possibly more) next to each other. For example:
> dunhill_lights_xtab<-ftable(xtabs(grossedupobs ~ gender+age_group +
dunhill_lights, data = ciggs))
> dunhill_lights_xtab
dunhill_lights No Yes
gender age_group
Female 16-24 4013099.665 11182.244
25-34 3563054.240 11378.064
35-4...
2007 Apr 09
1
help with ActiveRecord joins
I''m working on a fairly complex join query and could use a bit of advice
from more expert users of ActiveRecord.
I have an events table with quite a lot of data, with has_many relations
to categories, age_groups, and event_images. In my first naive
implementation, each event had a date, so to load all upcoming events
efficiently, I''d do:
Event.find(:all, :conditions=>[''start_date >= ?'', Date.today],
:includes=[:categories, :age_groups, :event_images])
This works well, an...
2012 Nov 16
2
Calculateing means
Dear List,
I have a data matrix with 570 columns containing 95 (samples) with 6 replicates each.
How can I calculate the mean of the replicates for 95 samples?
Thank you.
The information contained in this electronic e-mail transmission and any attachments are intended only for the use of the individual or entity to whom or to which it is addressed, and may contain information that is
2012 Dec 14
1
format.pval () and printCoefmat ()
...t_level2","mean_level1",
"mean_level2", "rel_diff",
"p_mean", "cohens_d")
#subset the data frame
y0410_1825_mf_alc <- subset (sigtests_overall_withid,
years=="0410" & age_group=="1825"
& gender_group=="all" & drug=="alc"
& contrast_level1=="wh",
select=keep_cols1)
#change the row.names
row.names (y0410_1825_mf_alc)= 1:dim(y0410_1825_mf_alc)[1]...
2013 Oct 19
0
[Bug 10219] New: Warn if list files more than once
...n: All
Status: NEW
Severity: enhancement
Priority: P5
Component: core
AssignedTo: wayned at samba.org
ReportedBy: jidanni at jidanni.org
QAContact: rsync-qa at samba.org
Wish it would tell me I'm repeating myself.
$ rsync -uva age_grouper Makefile filter extractor extractor extractor
interviewer m.jidanni.org:ceeeeeeee/
building file list ... done
Makefile
See how "real" programs do it:
$ touch f
$ mkdir w
$ cp f f f w
cp: warning: source file ?f? specified more than once
cp: warning: source file ?f? specified more tha...
2010 Aug 24
0
mlm for within subject design
..."E06001" "" "" "" ...
$ lga : int NA NA NA NA NA NA NA NA NA NA ...
$ dob_my : num 1.27e+12 1.27e+12 1.27e+12 1.27e+12 1.27e+12 ...
$ dob_ddmwdob : int 0 0 0 0 0 0 0 0 0 0 ...
$ age : int 0 0 1 2 0 0 0 0 0 0 ...
$ age_group : int 1 1 1 1 1 1 1 1 1 1 ...
$ sex : int 1 2 2 2 2 2 2 2 2 2 ...
$ aborig : int 1 4 4 4 4 4 4 4 4 4 ...
$ cob : int 1105 1105 1100 1101 1105 3 3 3 1105 1105 ...
$ marital : int 1 1 1 1 1 1 1 1 1 1 ...
$ emp_stat : int 1 1 8 1 1 1 1 1...