Displaying 20 results from an estimated 5567 matches for "white".
Did you mean:
while
2010 Dec 31
3
survexp - example produces error
...ot;
best regards,
Heinz
library(survival)
## Example from help page of survdiff
## Expected survival for heart transplant patients based on
## US mortality tables
expect <-
survexp(futime ~ ratetable(age=(accept.dt - birth.dt),
sex=1,year=accept.dt,race="white"),
jasa, cohort=FALSE,
ratetable=survexp.usr)
Error in floor(temp) : Non-numeric argument to mathematical function
sessionInfo('survival')
R version 2.12.1 Patched (2010-12-18 r53869)
Platform: i386-pc-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=German_Switze...
2010 Dec 25
4
2 Ethernet cabling question
Two questions that was not always clear for me [sorry for posting to this list :\]:
##############################################################################################
Q1) when cabling, is the color order important? like:
straight cabling:
A side: white-orange, orange, white-green, blue, white-blue, green, white-brown, brown
B side: white-orange, orange, white-green, blue, white-blue, green, white-brown, brown
could be eg.: like this??
A side: white-orange, brown, white-blue, green, white-green, blue, white-brown, orange
B side: white-orange, bro...
2008 Mar 10
1
ML Estimation Differences with R and SAS
...might be able to
offer any insight on this. Both R and SAS code and output are included in
this message (along with the dataset).
Thanks,
Patrick
MY R CODE IS:
Dataset <- read.table("<path>", header=TRUE, sep="", na.strings="NA",
dec=".", strip.white=TRUE)
Dataset$race <- factor(Dataset$race, levels=c('other','black','white'))
GLM.1 <- glm(low ~ lwt + ptl + ht + race + smoke ,
family=binomial(logit), data=Dataset)
summary(GLM.1)
MY SAS CODE IS:
PROC LOGISTIC descending DATA=p2;
class race (ref='other'...
2011 Sep 12
6
barplot in hexagram layout
dev.new(width=6, height=1.5,mar=c(0,0,0,0))
par(mfrow=c(1,1),mar=c(.5, .5, 1.5, .5), oma=c(.4, 0,.5, 0))
barplot(c(1,1,1,1,1,1),col=c("blue","purple","red","green","orange","yellow"),
axes = FALSE)
I have a barplot that returns six colors in a line. I would like to get the
same six color blocks in a hexagram layout (if it were a clock,
2018 Sep 14
1
Possible bug with chromatic adaptation in grDevices::convertColor
...??? clr <- t(col2rgb(rgb.in)) / 255??? clr.out <- convertColor(clr, "sRGB", "sRGB")??? rgb(clr.out)??? ## [1] "#CCCCCC" "#EEEEEE"
??? convertColor(clr, "sRGB", "sRGB", "D65", "D50")??? ## Error in match.arg(from, nWhite) :??? ##?? 'arg' must be NULL or a character vector
This appears to be because `grDevices:::chromaticAdaptation` expects the whitepoints to be provided in the character format (e.g. "D65"), but they are already converted by `convertColor` into the tristimulus values.? After applyi...
2008 Apr 22
2
Multidimensional contingency tables
How does one ideally handle and display multidimenstional contingency
tables in R v. 2.6.2?
E.g.:
> prob1<- data.frame(victim=c(rep('white',4),rep('black',4)),
+ perp=c(rep('white',2),rep('black',2),rep('white',2),rep('black',2)),
+ death=rep(c('yes','no'),4), count=c(19,132,11,52,0,9,6,97))
> prob1
victim perp death count
1 white white yes 19
2 white white...
2010 Jan 15
4
transposing a list of vectors
I have a list of vectors, all forced to be the same length:
testlist <- list(
shape=c(0, 0, 2),
cell.fill=c("red","blue","green"),
back.fill=rep("white",3),
scale.max=rep(100,3)
)
> str(testlist)
List of 4
$ shape : num [1:3] 0 0 2
$ cell.fill: chr [1:3] "red" "blue" "green"
$ back.fill: chr [1:3] "white" "white" "white"
$ scale.max: num [1:3] 100 100 100
>
I...
2009 Sep 04
1
DOE in R?
...have seen the answer to (in SAS) in
order to make sure I would have gotten it *right*.
There are 5 factors: 4 are quantitative with three levels each and 1 is
qualitative with two levels.
Factor and levels:
Intro: 0, 1.99, 2.99
Duration: 6, 9 ,12
GOTO: 3.99, 4.99, 5.99
Fee: 0, 15, 45
Color: Red, White
In order to screen these factors, I would want to get a design where I could
evaluate all main effects, all first order interactions and the squared
terms of Intro, Duration, GOTO and FEE (for example Intro*Intro).
Looking for the D-optimal design.
Is this something that R can provide?
These...
2016 Mar 02
0
Seu pedido foi aprovado (48225)
<html xmlns="http://www.w3.org/1999/xhtml" lang="pt-br" xml:lang="pt-br">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<span style="background-color: white; color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; font-size: 13.3333px;">Caro(a) usuário(a),</span><br style="background-color: white; color: #212121; font-family: wf_segoe-ui_normal, 'Segoe UI', 'S...
2009 Aug 21
8
Selecting groups with R
I have a data set similar to the following:
Color Score
RED 10
RED 13
RED 12
WHITE 22
WHITE 27
WHITE 25
BLUE 18
BLUE 17
BLUE 16
and I am trying to to select just the values of Color that are equal to RED
or WHITE, excluding the BLUE.
I've tried the following:
myComp1<-subset(dataset, Color =="RED" | Color == "WHITE")
myComp1<-subs...
2012 Feb 20
3
Run function several times changing only one argument - without a loop
...t;-c("Lehrer","Lehrerinnen","Klassenkollegen","Klassenkolleginnen","Geschwister")
par(las=1)
par(mar=c(5,13,4,2))
barplot(Ee1,horiz=T,col="grey85",border="NA",xlim=c(0,100),axes=F)
axis(2,pos=10, tick=T, tcl=F, labels=F,col="white")
axis(2,pos=20, tick=T, tcl=F, labels=F,col="white")
axis(2,pos=30, tick=T, tcl=F, labels=F,col="white")
axis(2,pos=40, tick=T, tcl=F, labels=F,col="white")
axis(2,pos=50, tick=T, tcl=F, labels=F,col="white")
axis(2,pos=60, tick=T, tcl=F, labels=F,col=&...
2003 Mar 10
2
graphics backgrounds from gray to white in png()
Hi,
I'm trying to make a png file of a histogram. I would like a white
background in the final product but end up producing a gray one, despite
setting what I think are the correct parameters. Suggestions for how to
properly set a white background would be welcome.
Thanks in advance,
Scot
# for non-lattice
> par("bg"="white")
> par("...
2012 Sep 25
1
mapping data from table to .csv template
I have a .csv table named mailing.csv as below. It consist a receiver,
subject and sender.
Receiver subject sender
1 Adrian Cole RE: [WHIRR-117] Composable services Tom White
2 Adrian Cole RE: [WHIRR-117] Composable services Tom White
3 Adrian Cole RE: [WHIRR-117] Composable services Adrian Cole
4 Adrian Cole RE: [WHIRR-117] Composable services Adrian Cole
5 Adrian Cole RE: [WHIRR-117] Composable services Tom White
6 Adrian Cole RE: [WHI...
2008 Jan 07
1
recode() function results in logical output, not factor output
Dear R Users:
I have race-ethnicity groups identified in the factor variable Ethnic_G.
I need to collapse Ethnic_G into a new variable with only two factors, 1 (White, non-Hispanic) and 2 (Minority).
As seen in the code and output below, the recoded race-ethnicity variable is put into logical format, not factor format.
I've used library(car) and the package was updated.
Any ideas on how to fix this problem would be apprecidated.
Thanks in advance!...
2012 Feb 05
2
text command - how to get a white background to cover grid lines
New to R - rookie question.
I'm a mechanical engineer and enjoying using R to make high quality graphs.
I've searched.
I want to put text notation on graph plot areas and have the text background
"box" white to cover over the grid lines.
my command so far....
text(15,5200,"Air Flow",cex=.8,col="blue", background="white") # this
doesn't work...
I've tried bg="white", background color="white" and a number of other
attempts.
The text is gett...
2009 Nov 20
3
Remove leading and trailing white spaces
I have a character string and I would like to remove the leading and
tailing white spaces. The example for 'sub' shows how to remove the
trailing white spaces, but I still can't figure out how to remove both
trailing and leading white spaces because I can't find any documentation
for what "+$" means or what "\\s+$" means. Maybe its because I...
2011 Oct 03
2
Import in R with White Spaces
Hi,
I have a simple question about importing data, I would be very grateful if
you could help me out.
I have used read.csv(file name, header=T, sep=",") to bring in a csv file I
saved in MS Excel.The problem is I have white spaces in the middle of values
(not in the column names), and this messes up the column entries. Since I
have many many files that I am importing and I have spaces in all of them, I
was looking for a way to avoid going into all of them and changing the white
spaec to, for example, an underscore.
Ca...
2006 Oct 27
1
Error using "White-corrected" Anova (white.adjust="hc3")
Hello.
I try to compute a "White-corrected" ANOVA. Therefore I use the command "Anova" implemented in the car()-package):
Anova(modelname, white.adjust="hc3")
and receive the error message:
"Fehler in SS[i] <- SS.term(names[i]) : nichts zu ersetzen" (German)
"Error in SS[i] <- SS.term(...
2003 Nov 16
2
Newbie: Barchart Gray with White Grid?
...(probably, there's a simple way
to do what I'm working toward).
R's statistical functions are coming along easily enough, but graphics
seem to be a little tougher for me, probably because I'm used to
working in SigmaPlot. As an exercise, I tried to create a gray bar
chart with white grid overlay, like the one on page 128 of Tufte's
"Visual Display of Quantitative Information." I figure this would
cover a lot of the basic techniques that I'll need for "real" work. I
got as far as having a gray bar chart (I was working within hist(),
mostly) with...
2008 May 14
3
strip white in character strings
...ames of the files. They are
country-specific and the element mycurrentdata[1,1] contains this
information.
So what I do is something like this:
pdf(file=paste(mycurrentdata[1,1], ".pdf", sep=""), width=...etc)
The only problem I have is that some of the country names contain white
space (e.g., "United Kingdom"). This is no problem for generating the
pdf plots but it may become problematic during further processing (e.g.
incl. the plots in LaTeX documents).
Is there an easy function to strip white space out of character strings
(similar to the strip.white=TRUE...