Displaying 20 results from an estimated 10000 matches similar to: "How to preserve date format while aggregating"
2008 Sep 09
6
plotting group means
Hi all,
I want to plot the grouped means of some variables. The dependent variables
and the grouping factor are stored in different columns. I want to draw a
simple line-plot of means, in which the x-axis represents the variables and
y-axis represents the means. The means of the groups should be connected by
lines. So far, the only function that I could find comes closest to what I'm
2009 Feb 27
2
Adjusting confidence intervals for paired t-tests of multiple endpoints
Dear R-users,
In a randomized placebo-controlled within-subject design, subjects recieved
a psycho-active drug and placebo. Subjects filled out a questionnaire
containing 15 scales on four different time points after drug
administration. In order to detect drug effects on each time point, I
compared scale values between placebo and drug for all time conditions and
scales, which sums up to
2008 Sep 19
1
getting line breaks with xtable
Sorry, for asking the same question again, but I got no reactions the last
time. Maybe it was just overseen by the experts.
I'm using the xtable function with Sweave and Lyx and I would like to know
how to get automatic line breaks for long strings in a column of the table.
I've learned from the Lyx wiki that the Latex command \linebreak produces
table cells with multiple lines. I tried to
2008 Dec 19
1
diagonal lines in legends of ggplot2
Hi, I have the following problem with ggplot2: When I specify black contours
for bars in a barplot, ggplot automatically shows diagonal lines in the
legend boxes. Is there a way, to remove these diagonal lines?
Here's a simple example:
library(ggplot2)
df<-data.frame(x=gl(6,1),y=rnorm(6,100,50))
ggplot(df,aes(y=y,x=x,fill=x))+geom_bar(aes(group=x),colour='black',size=1)+
2010 Sep 23
1
How to pass a model formula as argument to with.mids
Hello
I would like to pass a model formula as an argument to the with.mids
function from the mice package. The with.mids functon fits models to
multiply imputed data sets.
Here's a simple example
library(mice)
#Create multiple imputations on the nhanes data contained in the mice
package.
imp <- mice(nahnes)
#Fitting a linear model with each imputed data set the regular way works
2009 Jul 30
2
weight median by count for multiple records
Hello everyone,
I have a .csv file with the following format:
uniqueID SubjectID Distance_miles Tag
1 1001 5.5 3
2 1001 7 1
3 1001 6.5 1
4 1001 5 1
5 1002
2009 Aug 26
1
Within factor & random factor
Hi,
I am quite new to R and trying to analyze the following data. I have 28
controls and 25 patients. I measured X values of 4 different locations
(A,B,C,D) in the brain image of each subject. And X ranges from 0 to 1.
I think "control or patient" is a between subject factor and location is
a within subject factor. So,
controls: 28
patients: 25 (unbalanced data set)
respone measure:
2003 Sep 16
2
gnls( ) question
Last week (Wed 9/10/2003, "regression questions") I posted
a question regarding the use of gnls( ) and its dissimilarity
to the syntax that nls( ) will accept. No one replied, so
I partly answered my own question by constructing indicator
variables for use in gnls( ). The code I used to construct
the indicators is at the end of this email.
I do have a nagging, unanswered
2010 Dec 06
1
lattice: strip panel function question
Dear list,
If have some repeated measurement data which looks something like:
time <- rep(1:5 , each=2*4)
groups <- rep(c("Case", "Control"), each=4)
subjects <- factor(rep(1:(2*4), 5))
responses <- time + rnorm(5*2*4) + as.integer(factor(groups))
data <- data.frame(responses, time, groups, subjects)
Now I want to plot each subject in a separate panel:
2008 Oct 08
1
NA's in multiple choice summary table in Hmisc
Hi,
I have a set of 30 binary variables measuring side effects after drug
treatment. Since each subject can have multiple side effects, I want to
display these side effects in a multiple choice table. I'm using the summary
and mChoice functions of the Hmisc package, because it produces nicely
formatted latex tables. My problem is, that table includes a category for
people who have at
2016 Jun 22
2
Ayuda sencilla (SQL)
Muchas gracias, Carlos.
Sobre todo por el sqldf, que seguro me ahorre mucho tiempo. La opción que
se plante de primero d <- table(tips$day) y luego dim(d) me parece menos
eficiente y cómo que directamente sqldf("select count(distinct day) from
tips"), pero supongo que esos son gustos!
También son "cómodas" las líneas: aggregate(subjectid ~ cond, data = dat,
FUN = function(x)
2010 May 12
1
Input encoding problem when using sweave with xetex
Hello
Because I want to use different true type fonts with latex, I''m using the
XeTeX typesetting engine for my sweave-documents. I''m using Lyx with Sweave
on a Windows 7 PC and have set up LyX to work with XeTeX according to the
following instructions:
http://wiki.lyx.org/LyX/XeTeX
Because the input file for XeTeX is assumed to be in UTF-8 encoding, I set
the encoding
2016 Jun 22
2
Ayuda sencilla (SQL)
Estoy en 3.3.0 y "sqldf" lo instala sin problemas...
El 23 de junio de 2016, 1:23, Mauricio Monsalvo <m.monsalvo en gmail.com>
escribió:
> Malas nuevas para mi:
> package ?sqldb? is not available (for R version 3.3.0)
> ¿Puedo hacer algo más que esperar? No me voy a "bajar" de versión de R.
>
> El 22 de junio de 2016, 20:02, Mauricio Monsalvo
2004 Mar 23
2
Coefficients and standard errors in lme
Hello,
I have been searching for ways to obtain these for combinations of fixed
factors and levels other than the 'baseline' group (contrasts coded all
0's) from a mixed-effects model in lme. I've modelled the continuous
variable y as a function of a continuous covariate x, and fixed factors
A, B, and C. The fixed factors have two levels each and I'd like to know
whether
2010 Sep 01
3
[LLVMdev] Assertion failure in tablegen: rationale ?
Hello,
I was fiddling with TableGen (for a use that has nothing to do with a
compiler but it's doesn't matter) and TableGen triggers an assertion failure
on this code (I reduced the case to the minimum, it's a parsing bug):
class Bli<string _t>
{
string t = _t;
}
class Bla<list<Bli> _bli>
: Bli<!car(_bli).t>
{
}
#0 0x00007ffff6ebda75 in *__GI_raise
2010 Sep 01
0
[LLVMdev] Assertion failure in tablegen: rationale ?
On Sep 1, 2010, at 4:35 AM, Amaury Pouly wrote:
> Hello,
> I was fiddling with TableGen (for a use that has nothing to do with a compiler but it's doesn't matter) and TableGen triggers an assertion failure on this code (I reduced the case to the minimum, it's a parsing bug):
David, can you take a look? This is related to your lisp interpreter :)
-Chris
>
> class
1999 Sep 29
1
date() in win version
when i do
print(date())
the output is
[1] "Wed Sep 29 09:13:04 1999\n"
ios it on purpose the the linfeed is
shown as abbreviation and not done?
--
Erich Neuwirth, Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
2006 Jan 16
5
A function that return a link_to, Possible ?
Hello, I try this :
in application_helper.rb
-----------------------
def lnk bla
return link_to bla, { :controller => bli , :action => "blo" , :id
=> "blu" }
end
in file.rhtml
-----------
<%= lnk "yo!" %>
This return an error. There is a way to do this or something similar, or
this is completly impossible ?
Thanks
2006 Sep 01
3
Date conversion with as.POSIXct and as.POSIXlt (PR#9196)
Full_Name: Erich Neuwirth
Version: 2.3.1
OS: Windows XP, Linux
Submission from: (NULL) (131.130.135.167)
Converting Sys.Date() to a POSIX compliant time type in different ways
produces inconsistent results:
> Sys.date()
[1] "2006-09-01"
> as.POSIXct(Sys.Date())
[1] "2006-09-01 02:00:00 CEST"
> as.POSIXlt(Sys.Date())
[1] "2006-09-01"
>
2011 Sep 01
2
Removing special chars in strings?
Hi all,
How can I replace those "\" in the str?
Thanks in advance.
func <- function(str) {
print(gsub("\\","",str))
}
func("bla\ble\bli")