Re: [R] [Lattice] Incrase the height of strips in Trellis plots

2007-09-05 Thread Bernd Weiss
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frede Aakmann Tøgersen schrieb: > This should give you something close to what you want: > > > xyplot(Petal.Length ~ Petal.Width | Species, iris, >strip = strip.custom(par.strip.text = list(cex = 2)), >par.settings = list(layout.heigh

[R] [Lattice] Incrase the height of strips in Trellis plots

2007-09-04 Thread Bernd Weiss
Dear all, I wonder how to increase the height of strips via strip.default or strip.custom. The following example hopefully illustrates the difficulty I am facing: library(lattice) xyplot(Petal.Length ~ Petal.Width | Species, iris, strip = strip.custom(par.strip.text = list(cex = 2))) Tha

Re: [R] meta-analysis in R

2007-06-21 Thread Bernd Weiss
On 21 Jun 2007 at 12:09, Irene Mantzouni wrote: Date sent: Thu, 21 Jun 2007 12:09:31 +0200 From: "Irene Mantzouni" <[EMAIL PROTECTED]> To: Subject:[R] meta-analysis in R > I would like to combine time-series data to test for corr

Re: [R] converting proc mixed to lme for a random effects meta-analysis

2007-06-19 Thread Bernd Weiss
On 19 Jun 2007 at 8:13, Lucia Costanzo wrote: Date sent: Tue, 19 Jun 2007 08:13:30 -0400 From: Lucia Costanzo <[EMAIL PROTECTED]> To: r-help@stat.math.ethz.ch Subject:[R] converting proc mixed to lme for a random effects meta-anal

[R] [ggplot2] Change color of grid lines

2007-06-17 Thread Bernd Weiss
Hi, I am making myself familiar with ggplot2 (I really like the examples at ). One thing that really annoys me is the default use of white grid lines and a gray background [1, 2]. I simply would like to have black grid lines and a white background. No problem, I th

Re: [R] How to generate two dimensional random variable for normal distributed

2007-05-17 Thread Bernd Weiss
Am 16 May 2007 um 23:20 hat Patrick Wang geschrieben: Date sent: Wed, 16 May 2007 23:20:25 -0700 (PDT) From: "Patrick Wang" <[EMAIL PROTECTED]> To: r-help@stat.math.ethz.ch Subject:[R] How to generate two dimensional random variabl

Re: [R] Different gridlines per panel in xyplot

2007-02-20 Thread Bernd Weiss
Am 20 Feb 2007 um 20:52 hat Rene Braeckman geschrieben: From: "Rene Braeckman" <[EMAIL PROTECTED]> To: Date sent: Tue, 20 Feb 2007 20:52:29 -0800 Subject:[R] Different gridlines per panel in xyplot > In the example R script below

Re: [R] How to avoid sort of x values in dotplot?

2007-02-19 Thread Bernd Weiss
Am 19 Feb 2007 um 20:28 hat Rene Braeckman geschrieben: From: "Rene Braeckman" <[EMAIL PROTECTED]> To: Date sent: Mon, 19 Feb 2007 20:28:01 -0800 Subject:[R] How to avoid sort of x values in dotplot? > I am trying to avoid that d

Re: [R] Adding lines to xYplot

2007-01-27 Thread Bernd Weiss
Am 27 Jan 2007 um 20:13 hat Michael Kubovy geschrieben: To: "r-help@stat.math.ethz.ch list" From: Michael Kubovy <[EMAIL PROTECTED]> Date sent: Sat, 27 Jan 2007 20:13:15 -0500 Subject:[R] Adding lines to xYplot > I am using xYplo

Re: [R] Meta-regression with lmer() ? If so, how ?

2006-11-09 Thread Bernd Weiss
Am 9 Nov 2006 um 8:45 hat Emmanuel Charpentier geschrieben: Date sent: Thu, 09 Nov 2006 08:45:36 +0100 From: Emmanuel Charpentier <[EMAIL PROTECTED]> To: r-help@stat.math.ethz.ch Subject:[R] Meta-regression with lmer() ? If so, how

Re: [R] extract values from a vector

2006-11-01 Thread Bernd Weiss
Am 1 Nov 2006 um 14:49 hat Antje geschrieben: Date sent: Wed, 01 Nov 2006 14:49:43 +0100 From: Antje <[EMAIL PROTECTED]> To: R-help@stat.math.ethz.ch Subject:[R] extract values from a vector > Hello, > > I'm looking for a solutio

Re: [R] help: convert lmer.coef to matrix

2006-08-11 Thread Bernd Weiss
On 11 Aug 2006 at 10:33, Simon Pickett wrote: Date sent: Fri, 11 Aug 2006 10:33:46 +0100 (BST) From: "Simon Pickett" <[EMAIL PROTECTED]> To: r-help@stat.math.ethz.ch Subject:[R] help: convert lmer.coef to matrix > Hi all, > I am t

[R] Combine tables with different dimensions

2006-05-07 Thread Bernd Weiss
Suppose, I have two tables t1 and t2 which are constrcted as follows: x1 <- c(rep(0:2,10)) x2 <- c(rep(0:1,15)) y1 <- c(rep(5:10,5)) y1 <- as.factor(y1) y2 <- c(rep(c(5,7),15)) y2 <- as.factor(y2) t1 <- table(x1,y1) t2 <- table(x2,y2) > t1 y1 x1 5 6 7 8 9 10 0 5 0 0 5 0 0 1 0 5 0 0 5

Re: [R] hist-data without plot

2006-03-20 Thread Bernd Weiss
On 20 Mar 2006 at 14:23, Gottfried Gruber wrote: From: Gottfried Gruber <[EMAIL PROTECTED]> To: r-help Date sent: Mon, 20 Mar 2006 14:23:26 +0100 Subject:[R] hist-data without plot > hello, > > i need the data from hist() but i

Re: [R] How to get the intercept from lm?

2006-03-10 Thread Bernd Weiss
Am 10 Mar 2006 um 12:17 hat Rainer M Krug geschrieben: > Hi > > I am using R 2.2.0 under SuSE 10 > > I want to use lm() to get the slope and intercept for several > daatasets and store them in a database. So far so good - but how do I > extract the slope and the intercept from the result from lm

Re: [R] sqlFetch on MySQL-DB

2005-10-10 Thread Bernd Weiss
Am 10 Oct 2005 um 7:51 hat christian schulz geschrieben: > Hi, > > there is a problem with the type of attributes - is it varchar!? IMHO > you should play a bit with different type's in mysql and the > consequence in R. > > I recognize "similar" problems with RMySQL, if you have variables > wi

[R] sqlFetch on MySQL-DB

2005-10-09 Thread Bernd Weiss
Dear all, I successfully set up a local MySQL-database. Connecting via RODBC is not problem, the same in fetching 3 of 4 tables. But trying to connect to table 4 fails. > author<-sqlFetch(test,"author") Error in fromchar(unclass(x)) : character string is not in a standard unambiguous format

Re: [R] Extending a data frame

2005-09-21 Thread Bernd Weiss
as.character(year)),group=status,data=data.fram > e(table(tmp))) Dear Chuck, yes, that's it! Thank's a lot, Bernd -- Bernd Weiss, M.A. University of Cologne / Research Institute for Sociology Greinstr. 2 / D-50939 Cologne / Germany E-Mail: <[EMAIL PRO

[R] Extending a data frame

2005-09-21 Thread Bernd Weiss
Dear all, all data I am talking about can be found at . The R-code is located at I'd like to plot the frequencies for status against year. Typing table(tmp$year) it can be simple seen that some years are missing,

[R] Question regarding lmer with binary response

2005-09-04 Thread Bernd Weiss
Dear all, dear Prof. Bates, my dependent variable (school absenteeism, truancy[1]) is a binary response for which I am trying to compute an unconditional mixed effects model. I've got observations (monday, wednesday and friday) nested in individuals (ID2), which were nested in classes (KID2) an

Re: [R] Regular expressions & sub

2005-08-18 Thread Bernd Weiss
On 18 Aug 2005 at 21:17, Peter Dalgaard wrote: > Dirk Eddelbuettel <[EMAIL PROTECTED]> writes: > > > Bernd Weiss uni-koeln.de> writes: > > > I am struggling with the use of regular expression. I got > > > > > > > as.character(test$sampl

[R] Regular expressions & sub

2005-08-18 Thread Bernd Weiss
Dear all, I am struggling with the use of regular expression. I got > as.character(test$sample.id) [1] "1.11" "10.11" "11.11" "113.31" "114.2" "114.3" "114.8" and need [1] "11" "11" "11" "31" "2" "3" "8" I.e. remove everything before the "." . TIA, Bernd _

Re: [R] Multilevel logistic regression using lmer vs glmmPQL vs.gllamm in Stata

2005-08-03 Thread Bernd Weiss
Am 3 Aug 2005 um 18:02 hat ronggui geschrieben: > >On Wed, 3 Aug 2005, Bernd Weiss wrote: > > > >> I am trying to replicate some multilevel models with binary > >> outcomes using R's "lmer" and "glmmPQL" and Stata's gllmm, > >>

Re: [R] Multilevel logistic regression using lmer vs glmmPQL vs. gllamm in Stata

2005-08-02 Thread Bernd Weiss
Am 3 Aug 2005 um 7:52 hat Bernd Weiss geschrieben: [..] Sorry, I forgot to mention which R version I am using: > version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, ming

[R] Multilevel logistic regression using lmer vs glmmPQL vs. gllamm in Stata

2005-08-02 Thread Bernd Weiss
Dear all, I am trying to replicate some multilevel models with binary outcomes using R's "lmer" and "glmmPQL" and Stata's gllmm, respectively. The data can be found at . The relevant Stata output can be found at

Re: [R] Lattice: Combining xyplot and histogram

2005-06-13 Thread Bernd Weiss
Am 13 Jun 2005 um 11:40 hat Mwalili, S. M. geschrieben: > > See ?layout [...] Thanks to Roy, Gabor and Mwalili for their helpful suggestions. As Gabor wrote, I have to make myself familiar with the grid package and viewports. Bernd __ R-help@stat.

[R] Lattice: Combining xyplot and histogram

2005-06-13 Thread Bernd Weiss
Dear all, I am trying to create a lattice plot which consists of 1 xyplot and 2 histograms (each for x and y). My first try was like this: x<-rnorm(1000) y<-rnorm(1000) xy <- xyplot(y~x) hist.x <- histogram(x) hist.y <- histogram(y) print(xy, position=c(0, 0.2, 1, 1), more=TRUE) print(hist.x,

Re: [R] Error when downloading and installing ALL R packages

2005-04-25 Thread Bernd Weiss
On 22 Apr 2005 at 17:53, Uwe Ligges wrote: > Bernd Weiss wrote: > > > Hi, > > > > after updating to 2.1 (see below) I am no longer able to install all > > R packages as mentioned at > > <http://support.stat.ucla.edu/view.php?supportid=30>. > >

[R] Error when downloading and installing ALL R packages

2005-04-22 Thread Bernd Weiss
Hi, after updating to 2.1 (see below) I am no longer able to install all R packages as mentioned at . After finishing the download, I received the following error: [...] trying URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2

Re: [R] phi correlation

2005-02-16 Thread Bernd Weiss
On 16 Feb 2005 at 12:54, Nicole wrote: > Hello my big problem is, i can´t find the phi-correlation instruction > in the R - programm. (correlation method= spearman, pearson, kendall, > I have found) See package "vcd", command "assoc.stats". > I also cant find the transform instruction which I

Re: [R] Sweave and LaTeX beamer class -- SOLVED!

2004-12-20 Thread Bernd Weiss
On 20 Dec 2004 at 7:11, Bernd Weiss wrote: > Hi, > > has anyonne experienced problems between the LaTeX beamer class and > Sweave? The following code does not work properly: > # \documentclass{beamer} > > \usepackage[latin1]{inputenc} >

[R] Sweave and LaTeX beamer class

2004-12-19 Thread Bernd Weiss
Hi, has anyonne experienced problems between the LaTeX beamer class and Sweave? The following code does not work properly: # \documentclass{beamer} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage{ngerman} \begin{document} \frame{ \frametitle{

[R] Problems compiling Rd-Files

2004-06-08 Thread Bernd Weiss
Dear all, there has been a thread on missing Rd.sty, when converting Rd-files to DVI-files, see . This problem could be solved by editing Rd2div.sh manually, but then I got the following error message: ---[error]-

Re: [R] What library is coxreg?

2004-03-16 Thread Bernd Weiss
Variogram cox.zph(survival) Test the Proportional Hazards Assumption of a Cox Regression Type 'help(FOO, package = PKG)' to inspect entry 'FOO(PKG) TITLE'. Hope it helps, Bernd -- Bernd Weiss, M.A. Universitaet zu Koeln / University of Cologne Forschungsinstitut

[R] event history analysis and multiple origin and destination states

2003-11-21 Thread Bernd Weiss
Hi, I dind't find any event history (survival) functions for handling multiple origin and destination states in R, e.g. for estimating appropriate survival curves via product-limit estimation. Thanks for any comments, Bernd -- Bernd Weiss, M.A. Universitaet zu Koeln / Universi

[R] Problems installing lattice

2003-11-18 Thread Bernd Weiss
my version of R should be updated. Any help would be appreciated, Bernd [1] http://finzi.psych.upenn.edu/R/Rhelp02a/archive/21118.html -- Bernd Weiss, M.A. Universitaet zu Koeln / University of Cologne Forschungsinstitut fuer Soziologie / Research Institute for Sociology Greinstr. 2 / 50 939 Colo

[R] Match data.frames with different number of rows

2003-11-05 Thread Bernd Weiss
Dear all, I have two data.frames a and b: i <- c(1,1,2,2,3,3,4,4) x <- c(1,53,7,3,4,23,6,2) a <- data.frame(i,x) and j <- c(1,2,3,4) y <- c(99,88,77,66) b <- data.frame(j,y) So, a looks like this > a i x 1 1 1 53 2 7 2 3 3 4 3 23 4 6 4 2 and b like this > b j y 1 99 2

[R] line breaks in recode

2003-11-04 Thread Bernd Weiss
id, "c(101,25,167,45,75)=25; c(104,51)=51") ... the result is a syntax error. TIA Bernd -- Bernd Weiss, M.A. Universitaet zu Koeln / University of Cologne Forschungsinstitut fuer Soziologie / Research Institute for Sociology Greinstr. 2 / 50 939 Cologne / Germany

Re: [R] barchart in lattice

2003-11-02 Thread Bernd Weiss
Am 2 Nov 2003 um 10:34 hat Deepayan Sarkar geschrieben: > > On Sunday 02 November 2003 04:17, Bernd Weiss wrote: > > Dear all, > > > > I have two factors 'country' and 'status' which I would like to plot via > > barchart (lattice). 'status&#

[R] barchart in lattice

2003-11-02 Thread Bernd Weiss
chart of 'country'. barchart(daten$COUNTRY|daten$STATUS), barchart(table(daten$COUNTRY)|table(daten$STATUS)), etc. are obviously wrong. I have absolutely no idea how to do this. You can download the datafile from <http://www.uni-koeln.de/~ahf34/meta.txt> TIA, Bernd

[R] Adjusting for within-cluster correlation: robcov() in Design-package and 'ids' in survey-package

2003-10-07 Thread Bernd Weiss
Dear all, I would like to know if it possible to use the the robcov()-command in the Design- package in order to obtain a robust variance-estimate that adjusts for within-cluster correlation. Does the ids-option in the survey-package the same job? TIA, Bernd __

Re: [R] Re: point-biserial correlation

2003-03-31 Thread Bernd Weiss
On 31 Mar 2003 at 15:07, Noel Yvonnick wrote: [...] > Note that the point-biserial correlation is nothing but the standard > correlation coefficient when one of the variables is dichotomous, so > that cor(.) is OK. Yes, this is a misleading subject. > The biserial is different and includes a co

[R] point-biserial correlation

2003-03-31 Thread Bernd Weiss
Dear list, has anyone written a package/function in R for computing a point- biserial resp. biserial correlation? Thanks in advance Bernd __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help