Displaying 3 results from an estimated 3 matches for "w_poet".
Did you mean:
poet
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
2009 Nov 14
1
setting contrasts for a logistic regression
Hi everyone,
I'm doing a logistic regression with an ordinal variable. I'd like to set
the contrasts on the ordinal variable. However, when I set the contrasts,
they work for ordinary linear regression (lm), but not logistic regression
(lrm):
ddist = datadist(bin.time, exp.loc)
options(datadist='ddist')
contrasts(exp.loc) = contr.treatment(3, base = 3, contrasts = TRUE)
lrm.loc =
2009 Sep 20
2
how to count occurrences of string?
Hi everyone,
I have an array with a variable called comments. I wish to count the number
of subjects whose post-experiment comments contain a string x and then cross
tab this with other variables of interest, ex. age. Does anyone have any
suggestions on how to count unique occurrences of a string embedded within a
variable and cross-tab it with other variables?
I've looked through the help