Displaying 20 results from an estimated 800 matches similar to: "cluster function to use with GLM"
2011 Oct 12
3
large numbers
Hi,
When I import an excel "CSV" file, large numbers such as " 43988014.3" is
imported as "43988014", leaving out the decimal ".4". How to import keeping
the fraction?
Thanks.
Chetty
--
Professor of Family Medicine
Boston University
Tel: 617-414-6221, Fax:617-414-3345
emails: chettyvk@gmail.com,vchetty@bu.edu
[[alternative HTML version deleted]]
2009 Mar 30
3
two monitors
Hi, I have set up two monitors. I am using windows XP. I would like to keep
one window- command line in one monitor and the script and graphs in the
second monitor. How do I set it up?
It works for word documents simply by dragging the document. It does not
work if I drag and drop the scripts window. Is R not compatible for this?
Thanks.
Chetty
--
Professor of Family Medicine
Boston University
2012 Aug 25
2
date
Hi,
I have dates as follows:
1/4/2006 0:00:00 AM
It is a factor at present.
How do I find out the day of the week from this? How do I convert to Julian
date format?
Thanks.
Chetty
--
Professor of Family Medicine
Boston University
Tel: 617-414-6221, Fax:617-414-3345
emails: chettyvk@gmail.com,vchetty@bu.edu
[[alternative HTML version deleted]]
2011 Oct 12
2
reading large numbers
Hi,
This happens when I read in large numbers;
------------------------------------
> as.numeric(4398801.3)
[1] 4398801
> as.numeric(439880.3)
[1] 439880.3
------------------------------------
Please help to read in numbers with more than 8 characters!
Thanks.
Chetty
--
Professor of Family Medicine
Boston University
Tel: 617-414-6221, Fax:617-414-3345
emails:
2012 Apr 21
2
Date object
HI,
I have to work with data objects. I have trouble. I would like to convert
date to a integer of Julian dates omitting hours, minutes etc. I tried as.
Date and also as.POSIXlt, ct etc.
Please help me to compute the following difference. I get an "NA" for
output.
1/14/2006 0:00:00 AM -1/9/2006 0:00:00 AM
Thanks.
Chetty
--
Professor of Family Medicine
Boston University
Tel:
2010 Mar 22
2
using reorder in "dotplot"
Hi ,
Name
rate
HEALTHALLIANCE HOSPITALS, INC -1.06211747
MOUNT AUBURN HOSPITAL 0.50960291
STURDY MEMORIAL HOSPITAL 2.64233232
LAWRENCE GENERAL HOSPITAL 2.15628558
CAMBRIDGE HEALTH ALLIANCE 1.23623144
I would like use
2010 Mar 23
2
using reorder in dotplot
Hi,
Please help to correct my error in the following. I want to plot the values
of 'x" in increasing order.
-----------------------------------
library(lattice)
Name<-c("A","B","C")
x<-c(15,20,10)
test<-data.frame(Name,x)
dotplot(Name~x,test)
dotplot(reorder(Name,x)~x,test)
"reorder" has no effect!
Thanks.
Chetty
------------------------
2009 Mar 02
1
xy-plot alb font size
I would appreciate any help for the following question. How to increase the
font size of labels for the x and y axes in the following code?
---------------------------------
xyplot(lbxglu~lbxgh|eth,reg.dat.5, panel = p, col = 1:2,
par.strip.text = list(cex = 1.25,col="brown"),
xlab="A1C",ylab="Fasting Plasma Glucose", main="FPG")
p <- function(..., col)
2009 Mar 04
1
dotplot
Hi,I would like to fill the dots in this graph. I would appreciate help to
do that if possible. If fill is not possible, can I make it bright? I do NOT
want to increase the size.
__________________
dotplot(hu.event~fitted.adj.cat,data=risk.benefit.cast,groups=treat,
auto.key=list(space="right"))
------------------------------------------
Thanks.
Chetty
--
Professor of Family Medicine
2009 Feb 25
2
reshape from wide to long
Hi,I would like to reshape the following "wide" data set to "long" form. I
would appreciate help with the correct code for "reshape". I tried a few
unsuccessfully.
Thanks.
Chetty
__________________________________________________
dat.1
Grp X0 X3 X6 X12 X25
X501 C 0.5326517 0.6930942 0.9403883 1.157571
2009 Feb 13
2
loading mgcv package
Hi ,When I try to load the 'mgcv" package, often, but not always, get this
error message. What am I doing wrong?
__________________
This is mgcv 1.4-1.1
Error in runif(1) :
.Random.seed is not an integer vector but of type 'list'
Error : .onAttach failed in 'attachNamespace'
Error: package/namespace load failed for 'mgcv'
-----------------------------------------
2009 Feb 12
3
Adding abline in Lattice graph
Hi,I would like add a horizontal line at 126 (col=red) and a vertical line
at 6.5 ( col= blue) in each panel .How should I use the panel.abline
function in the following code I am using:
------------------
library(lattice)
with(reg.dat.5,coplot(lbxglu~lbxgh|eth,panel=panel.smooth,xlab="ABC",
ylab="FBG"))
----------------------------------------
Thanks a lot.
Professor of
2009 Sep 25
2
summarize-plyr package
Hi,I am using the amazing package 'plyr". I have one problem. I would
appreciate help to fix the following error: Thanks.
______________________________
> library(plyr)
> data(baseball)
> summarise(baseball,
+ duration = max(year) - min(year),
+ nteams = length(unique(team)))
Error: could not find function "summarise"
> ddply(baseball, "id", summarise,
+
2009 Jul 03
1
exporting interactive rggobi plots
Hi , I have created a parallel coordinate plot using rrgobi. I like to make
a powerpoint slide. I am not able to copy and paste. Is there any way to do
this? Thanks for any help.
Chetty
--
Professor of Family Medicine
Boston University
Tel: 617-414-6221, Fax:617-414-3345
emails: chettyvk@gmail.com,vchetty@bu.edu
[[alternative HTML version deleted]]
2009 Oct 13
1
Lattice barchart-reordered
Hi,Can I use "reorder" function with barchart as in dotchart? Here are some
codes which do not work for me. Thanks
Chetty
___________________________
a1c.cast$bmi.cat.reordered[a1c.cast$eth!="Other"]
<-with(a1c.cast[a1c.cast$eth!="Other",],reorder(bmi.cat.ordered[a1c.cast$eth!="Other"],
BP.FN.RATE,median ))
barchart(BP.FN.RATE~
2009 Oct 11
0
barchart
Hi,In Lattice graphs, can I use "reorder" function in a barchart as in the
case of "dotchart"? Or it can be used only with dotcharts?
Thanks
Chetty
Professor of Family Medicine
Boston University
Tel: 617-414-6221, Fax:617-414-3345
emails: chettyvk@gmail.com,vchetty@bu.edu
[[alternative HTML version deleted]]
2008 Jan 11
5
installing and using a package
i'm trying to learn R. i have no programing experience. i tried to add on
a package and just picked "yags". i can't get it to work or get any help.
---
> install.packages("yags")
Warning in install.packages("yags") :
argument 'lib' is missing: using 'C:\Documents and Settings\j\My
Documents/R/win-library/2.6'
trying URL
2009 Apr 01
0
回复: R-help Digest, Vol 73, Issue 32
Dear sir, How to do bilinear time series in R?Is there any functions or packages? thank you!
-----Sincerely yours
Kuangnan Fang 方匡南 敬上
department of statistics ,Economics school,Xia men University.
Fujian Province (361005) China
Mobile Phone:15860721915 SKYPE: ruiqwy
MSN Messenger: ruiqwy@hotmail.com
QQ:39863401
--- 09年3月31日,周二, r-help-request@r-project.org
2008 Oct 29
1
how can I access parts of yags output
Here is an example given from
?yags
library(methods)
data(stackloss)
Y1 <- yags(stack.loss~Air.Flow,id=1:21, data=stackloss)
How can I access parts of the output.
I tried:
> str(Y1)
Formal class 'yagsResult' [package "yags"] with 25 slots
..@ coefficients : num [1:2] -44.13 1.02
..@ coefnames : chr(0)
> Y1$coefnames
Error in Y1$coefnames : $
2002 Jul 16
1
methods: representation gives "unused arguments" on failure (PR#1796)
Full_Name: Markus Jantti
Version: 1.5.1
OS: GNU/Linux Unstable (Sid)
Submission from: (NULL) (193.166.59.44)
I was trying to get the package yags 3.20 by Vince Carey
<stvjc@channing.harvard.edu>
to run, but - after successfull installation -- loading the library failed with
the
message
> library(yags)
Error in stop(paste("Duplicated slot names: ", paste(slots[duplicated(slo