_1.5
[33] scales_0.5.0 rvest_0.3.2 assertthat_0.2.0 mnormt_1.5-5
[37] colorspace_1.3-2 stringi_1.2.3lazyeval_0.2.1 munsell_0.5.0
[41] broom_0.4.4 crayon_1.3.4
--
Kevin E. Thorpe
Head of Biostatistics, Applied Health Research Centre (AHRC)
Li Ka Shing Knowledge Institute of St. Michael
home/steve/src/R/R-3.5.0/src/main'
Makefile:135: recipe for target 'R' failed
How does one set the -fPIC flag?
I have never had trouble compiling under Mint, which is based on
Ubuntu.
Thanks!
Steve
--
Kevin E. Thorpe
Head of Biostatistics, Applied Health Research Centre (AHR
;- do.call(rbind, lapply(names(x), function(z)
ata.frame(type=z, x[[z]])))
#Error in ata.frame(type = z, dat[[z]]) : still cannot find function
"ata.frame"?
*William H. Poling, Ph.D.*
*From:* R-help [mailto:r-help-boun...@r-project.org] *On Behalf Of
*Huzefa Khalil
*Sent:* Wednesday,
4),
B = data.frame(x = 5:6, y = 7:8)
)
dplyr::bind_rows(l, .id = "type")
#> type x y
#> 1A 1 3
#> 2A 2 4
#> 3B 5 7
#> 4B 6 8
This also has the advantage of returning a data frame when the inputs
are data frames.
Hadley
I _clearly_ need to
p
and David Carlson is beautifully elegant.
Thanks again,
Kevin
-Original Message-
From: R-help On Behalf Of David L Carlson
Sent: Wednesday, May 2, 2018 3:51 PM
To: William Dunlap ; Kevin E. Thorpe
Cc: r-help mailing list
Subject: Re: [R] Converting a list to a data frame
Or add th
nd'ed together and the element name becomes a new
variable. For example, I would like to turn the list above into a data
frame that looks like this:
data.frame(type=c("A","A","B","B"),x=c(1:2,5:6),y=c(3:4,7:8))
Appreciate any pointers.
Kevin
--
Kevi
LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.5.0 tools_3.5.0tcltk_3.5.0
--
Kevin E. Thorpe
Head of Biostatistic
virus running).
Thanks all for the advice!
Paul
-Original Message-
From: Paul Lantos
Sent: Tuesday, March 27, 2018 8:35 PM
To: Kevin E. Thorpe ; Jeff Newmiller
Cc: r-help@r-project.org
Subject: RE: [R] unable to move temporary installation of package
Thanks, Kevin. I have done that but no
mented, minimal, self-contained, reproducible
code.
---
Jeff Newmiller The ..... . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Li
3.4.3 nnet_7.3-12 data.table_1.10.4-3
[28] foreign_0.8-69 multcomp_1.4-8 TH.data_1.0-8
[31] latticeExtra_0.6-28 magrittr_1.5codetools_0.2-15
[34] MASS_7.3-48 scales_0.5.0backports_1.1.2
[37] htmltools_0.3.6 splines_3.4.3 colorspace_1.3-2
[40] quantreg_5.34
pspline(OPTION), nonlin
1747.1295 3.05 <0.0002> Iterations: 8 outer, 19
Newton-Raphson> Theta= 0.991 > Degrees of freedom for terms= 4 >
Likelihood ratio test=2136 on 4.05 df, p=0 n= 3390429 > *
Thanks,
KS
--
Kevin E. Thorpe
Head of Biostatistics, Appli
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
---
This email has been checked for viruses by AVG.
http://www.avg.com
--
Kevin E. Thorpe
Head of Biostat
I am wondering if there is a way to undo the results of table().
For example if you had a table that looked like the result of table(x, y) or
table(x, y, z) is there a simple/elegant way to reverse the process to get the
"original" x, y and z vectors?
Thanks,
Kevin
--
Kevin E. T
correctly.
Kevin
On 02/07/2017 02:23 PM, Kevin E. Thorpe wrote:
I am re-running some logistic regression analyses using lrm from the rms
package but latex(anova(...)) appears to be broken on my system.
Here is some anova() output followed by the latex() error for two models
since the error c
s_1.0.5 htmltools_0.3.5
[34] splines_3.2.3 assertthat_0.1 colorspace_1.3-2
[37] quantreg_5.29 sandwich_2.3-4 stringi_1.1.2
[40] acepack_1.4.1 lazyeval_0.2.0 munsell_0.4.3
[43] zoo_1.7-14
--
Kevin E. Thorpe
Head of Biostatistics, Applied Health Research Centre (AHRC)
Li
2 3
8 2 8 3 3
Obviously, for 2 elements the simple rbind works but I would like a
general solution for arbitrary length lists. Hopefully that is clear.
Kevin
--
Kevin E. Thorpe
Head of Biostatistics, Applied Health Research Centre (AHRC)
Li Ka Shing Knowledge Institute of St. Michael
CLC_TIME=English_Canada.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] Formula_1.2-1 survival_2.39-4 lattice_0.20-33
loaded via a namespace (and not attached):
[1] Matrix_1.2-6 tools_3.3.1 gtabl
v() object. It did not give an
error and produced a result but I don't know if it did a competing risk
analysis or not.
Thanks.
--
Kevin E. Thorpe
Head of Biostatistics, Applied Health Research Centre (AHRC)
Li Ka Shing Knowledge Institute of St. Michael's Hospital
Assistant Professo
pts a factor
outcome but if not, you would need to re-code it to 0/1.
Kevin
--
Kevin E. Thorpe
Head of Biostatistics, Applied Health Research Centre (AHRC)
Li Ka Shing Knowledge Institute of St. Michael's Hospital
Assistant Professor, Dalla Lana School of Public Health
University of Tor
to create a new "R-not-help" list where, as in a
Monty Python skit, people could be directed there to be insulted and all these unhelpful
replies could be sent.
A milder alternative is to encourage some R-help subscribers to click the "Don't send" or
"Save"
mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Kevin E. Thorpe
Head of Biostatistics, Applied Health Re
Courier) so that's what I follow.
--
Kevin E. Thorpe
Head of Biostatistics, Applied Health Research Centre (AHRC)
Li Ka Shing Knowledge Institute of St. Michael's
Assistant Professor, Dalla Lana School of Public Health
University of Toronto
email: kevin.tho...@utoronto.ca Tel: 416.864
the working
directory to the directory (folder) where your CSV file is. There is a
menu option for this.
Kevin
--
Kevin E. Thorpe
Head of Biostatistics, Applied Health Research Centre (AHRC)
Li Ka Shing Knowledge Institute of St. Michael's
Assistant Professor, Dalla Lana School of
On 03/31/2015 01:44 PM, Duncan Murdoch wrote:
On 31/03/2015 1:05 PM, Kevin E. Thorpe wrote:
Hello.
I am trying to simulate recruitment in a randomized trial. Suppose I
have three streams (strata) of patients represented by these data frames.
df1 <- data.frame(strat=rep(1,10),id=1:10,pid=1
01
22 2 2 2002
I hope what I'm trying to accomplish makes sense. Maybe I'm missing
something obvious, but I really have no idea at the moment how to
achieve this elegantly. Since I need to simulate many trial recruitments
it needs to be general and compact.
I appreciate any ad
t and ANOVA?
--
Thank you
Sike Li (Lydia)
[[alternative HTML version deleted]]
--
Kevin E. Thorpe
Head of Biostatistics, Applied Health Research Centre (AHRC)
Li Ka Shing Knowledge Institute of St. Michael's
Assistant Professor, Dalla Lana School of Public Health
University of Tor
ttp://tim-smith.us/arrgh/syntax.html
Whitespace is meaningless, unless it isn't. Some parsing ambiguities
are resolved by considering whitespace around operators. See and
despair: x<-y (assignment) is parsed differently than x < -y (comparison)!
--
Kevin E. Thorpe
Head of Biostatistics, Ap
"0.330147" "0.741404" ""
rating "-0.077856" "0.014466" "5.381925" "0"""
Use data frames instead.
out<-data.frame(round(cbind(me,se,t,p),digits)); out<-cbind(out,disc)
names(out)<-c("estima
Thanks. I guess I could have searched for that. Apologies.
I'll have to try it on my tablet.
Kevin
On 05/08/2014 11:57 AM, Jeremy Miles wrote:
It exists:
https://play.google.com/store/apps/details?id=com.appsopensource.R
No graphics.
Jeremy
On 8 May 2014 05:44, Kevin E. T
uns on all commonly used
platforms. If chromebooks and android devices get into greater use, it
would be cool if R were available.
Kevin
--
Kevin E. Thorpe
Head of Biostatistics, Applied Health Research Centre (AHRC)
Li Ka Shing Knowledge Institute of St. Michael's
Assistant Professor, Da
on to fit
the parametric model. You can still obtain hazard ratio estimates from
that model with a little bit of calculation (e.g. exp(-beta/scale)).
--
Kevin E. Thorpe
Head of Biostatistics, Applied Health Research Centre (AHRC)
Li Ka Shing Knowledge Institute of St. Michael's
Assistan
ives Error in order(val) : object 'val' not found
dat1[order(dat1[,2]), ] # Works just fine.
John Kane
Kingston ON Canada
I don't think the behaviour has changed. I bet dat1[order(dat1$val), ]
works just fine.
--
Kevin E. Thorpe
Head of Biostatistics, Applied Health Resear
lternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducib
On 08/13/2013 03:06 PM, Stackpole, Chris wrote:
From: Kevin E. Thorpe [mailto:kevin.tho...@utoronto.ca]
Sent: Monday, August 12, 2013 11:00 AM
Subject: Re: [R] Memory limit on Linux?
What does "ulimit -a" report on both of these machines?
Greetings,
Sorry for the delay. Other fire
with that. It could be a RHEL vs CentOS thing, but
that seems very strange to me.
2) When I compile from source to test this, is there a specific
option I should pass to ensure max usage?
Thank you.
Chris Stackpole
What does "ulimit -a" report on both of these machines?
--
Kevin E. Tho
nks
What do you mean it doesn't run? Is there an error message? What is
it? Also, you do not need to put RX in strata() in the survfit() function.
--
Kevin E. Thorpe
Head of Biostatistics, Applied Health Research Centre (AHRC)
Li Ka Shing Knowledge Institute of St. Michael's
Assist
ing.
Take a look at the ?hist to understand how the bins are constructed.
--
Kevin E. Thorpe
Head of Biostatistics, Applied Health Research Centre (AHRC)
Li Ka Shing Knowledge Institute of St. Michael's
Assistant Professor, Dalla Lana School of Public Health
University of Toronto
email: kevin.
se to each other. Try your
simulations again with variance ratios exceeding 2 and see what happens.
--
Kevin E. Thorpe
Head of Biostatistics, Applied Health Research Centre (AHRC)
Li Ka Shing Knowledge Institute of St. Michael's
Assistant Professor, Dalla Lana School of Public Health
Univer
;], l, contriburl =
contriburl, :
Installed is tcl-8.6.0-r1 and tk-8.6.0 in a GENTOO environment.
--
Kevin E. Thorpe
Head of Biostatistics, Applied Health Research Centre (AHRC)
Li Ka Shing Knowledge Institute of St. Michael's
Assistant Professor, Dalla Lana School of Public
row.names=false when we output csv data. But there exists
that parameter in R help. Hoping for your reply!
Best regards!
B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B
B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B Li
Nan
--
Kevin E. Thorpe
On 03/20/2013 03:49 AM, Prof Brian Ripley wrote:
If things are not readily available in R it is always good to pause and
reflect if there might be a good reason.
I nominate this as a fortune candidate.
--
Kevin E. Thorpe
Head of Biostatistics, Applied Health Research Centre (AHRC)
Li Ka
ve HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Kevin E. Thorpe
Head of Biostatistics,
On 01/30/2013 11:26 AM, John Sorkin wrote:
If you use a log link, you are not, I believe, performing a logistic
regression!
I guess strictly speaking, that is true. I was being a little sloppy in
terminology.
"Kevin E. Thorpe" 1/30/2013 11:22 AM >>>
On 01/30/2013 11
always use that myself, but if you use the log link, you get RR. As for
why you would, I would suggest it's because physicians think they
understand a RR better than and OR.
"Kevin E. Thorpe" 1/30/2013 11:14 AM >>>
On 01/30/2013 09:02 AM, nalluri pratap wrote:
> Rel
imal, self-contained, reproducible code.
--
Kevin E. Thorpe
Head of Biostatistics, Applied Health Research Centre (AHRC)
Li Ka Shing Knowledge Institute of St. Michael's
Assistant Professor, Dalla Lana School of Public Health
University of Toronto
email: kevin.tho...@utoronto.ca Tel: 41
cept removed
cc <- cancor.formula(cbind(SAT, PPVT, Raven) ~ n + s + ns + na + ss,
data=Rohwer)
## Error in chol.default(Rxx) :
## the leading minor of order 1 is not positive definite
#this works as is
cc <- cancor.formula(cbind(SAT, PPVT, Raven) ~ -1 + n + s + ns + na +
ss, data=Rohwer)
cc
rsk
package for one approach.
--
Kevin E. Thorpe
Biostatistician/Trialist, Applied Health Research Centre (AHRC)
Li Ka Shing Knowledge Institute of St. Michael's
Assistant Professor, Dalla Lana School of Public Health
University of Toronto
email: kevin.tho...@utoronto.ca Tel: 416.86
will usually need to run "make install" as root, unless
you modify the installation location.
One reason I do this is, that I figure if my system has the tools
to compile R, I likely won't have concerns about installing packages
that require some compilation as well.
Kevin
ould not find function "sqlFetch"
close(chan)
I am sure there is a simple answer to this. Thanks.
--
Kevin E. Thorpe
Biostatistician/Trialist, Applied Health Research Centre (AHRC)
Li Ka Shing Knowledge Institute of St. Michael's
Assistant Professor, Dalla Lana School
ing
the median = element x in terms of n (say (n + 1)/2 or whatever it would be) if there is
an even amount of elements, or x in terms of n (with a different way of saying how many
n) if there is an odd amount of elements?
Much appreciated
--
Kevin E. Thorpe
Biostatistician/Trialist, Applie
>
> But the plot was overcrowded. Anyway, I must first complete the first
> step, this was just to make some practice on it.
>
> As you can see, until now I didn't succeed.
>
> I hope someone will be so gentle to give it a try. Attached you are
> the data-set
> Thank y
LEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Kevin E. Thorpe
Biostatistician/Trialist, Applied Health Research Centre (AHRC)
Li Ka Shing Knowledge Institute of St. Michael's
Assistant P
ems to like my
data inputs just fine and relies on HMISC and ROCR, both packages I know
well.
Thanks
jonah
On 1/17/12 11:49 AM, "Kevin E. Thorpe" wrote:
On 01/17/2012 07:16 AM, Essers, Jonah wrote:
Thanks for the reply. I think more the issue is whether it can be
applied
to cross
ld be fine.
On 1/16/12 10:23 PM, "Kevin E. Thorpe" wrote:
On 01/16/2012 08:10 PM, Essers, Jonah wrote:
Greetings,
I have generated several ROC curves and would like to compare the AUCs.
The data are cross sectional and the outcomes are binary. I am testing
which of several models p
nction in Hmisc that does this will also work on
binary data.
Thanks
Pencina MJ, D'Agostino RB Sr, D'Agostino RB Jr, Vasan RS. Evaluating the
added predictive ability of a new marker: from area under the ROC curve to
reclassification and beyond. Stat Med 2008;27:157-172
--
Kevin
ther attached packages:
[1] mgcv_1.7-11
loaded via a namespace (and not attached):
[1] Matrix_1.0-2 grid_2.14.0lattice_0.20-0 nlme_3.1-102
--
Kevin E. Thorpe
Biostatistician/Trialist, Applied Health Research Centre (AHRC)
Li Ka Shing Knowledge Institute of St. Michael's
Ass
dates in excel, especially when multiple computers
are involved. When someone has data in excel, I now require them to
make the csv file on their system and manually verify the dates but
opening the file in notepad.
--
Kevin E. Thorpe
Biostatistician/Trialist, Applied Health Research Centre
I cannot find the solution to this
problem.
Can someone give me a hint?
Thanks very much!
Bye, sarah
The only reason I can think of you wanting to avoid sample() is because
this is homework and the list is not for homework. If I have misjudged
the intent of your post, please forgive me.
://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Kevin E. Thorpe
Biostatistician/Trialist, Applied Health Research Centre (AHRC)
Li Ka Shing Knowledge
So, when you say you get no output when you 'run' the code, what
exactly do you mean by 'run' the code? What I would do is:
1. Put the code in a file called 'whatever.R'. 2. Start R, and do
source("whatever.R"). That defines the functions. do "ls()"
statistics.
Best,
David
I believe the MAd package may have what you are looking for. It can
call metafor for you.
Kevin
--
Kevin E. Thorpe
Biostatistician/Trialist, Applied Health Research Centre (AHRC)
Li Ka Shing Knowledge Institute of St. Michael's
Assistant Professor, Dalla Lana Sc
On 08/25/2011 08:49 AM, carol white wrote:
Thanks for your reply. I used the following commands:
sudo apt-get update
sudo apt-get install r-base
Is that how you installed R-2-10 or how you tried to install 2.13.1?
- Original Message -
From: Kevin E. Thorpe
To: carol white
Cc: &quo
d not
require the headers.
I don't use Ubuntu, so I don't know what the name of packages you need
for the headers. Typically the packages have the devel versions
separate, you you need those.
--
Kevin E. Thorpe
Biostatistician/Trialist, Applied Health Research Centre (AHRC)
Li Ka
example or explanation, why getting used to "=" is
not a good idea?
Or is it?
Thanks ahead,
Berry
As a top-level expression, it probably doesn't matter too much. I
always use <- myself. Here is an example where = does not equal <-
print(fit <- lm(...)) is very di
t
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Dalla Lana School of
v.off()
> >>
> >> How can one get rid of this? The only workaround I found is to place
> >> it into a if() loop:
> >>
> >> for(i in 1:1){
> >> pdf()
> >> plot(runif())
> >> dev.off()
> >> }
> >>
> >> so
.
--
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Dalla Lana School of Public Health
University of Toronto
email: kevin.tho...@utoronto.ca Tel: 416.864.5776 Fax: 416.864.3016
__
R-help@r-project.org mailing
it","FTy","FTm","PTy","PTm"),
direction = 'long')
So, thanks again for pointing me in the right direction here.
Kevin
The list contains the subgroups of the variables you want combined and
v.names, as you appear to know, provide
other values are shifted left. The
attributes in the result are correct, but the contents of rcl$PTm are
what I expected in rcl$init.
> sessionInfo()
R version 2.11.1 Patched (2010-07-21 r52598)
Platform: i686-pc-linux-gnu (32-bit)
locale:
[1] LC_CTYPE=en_US LC_NUMERIC=C LC_TIME=en_US
urv.all)
plot(surv.all) I would really appreciate any assistance. Thank you.
Regards,
Andre
--
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Dalla Lana School of Public Health
University of Toronto
email: kevin.tho...@utoronto.ca Tel: 416.
W Eryk Wolski wrote:
Hi,
ESS replaces "_" by "<-". How can I switch off this feature?
I need to be able to type the underscore
Thanks
Eryk
Pressing the underscore a second time gives you the underscore.
--
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Transl
t least
I had to.
Kevin
--
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Dalla Lana School of Public Health
University of Toronto
email: kevin.tho...@utoronto.ca Tel: 416.864.5776 Fax: 416.864.3016
_
Kevin E. Thorpe wrote:
stefan.d...@gmail.com wrote:
Hi,
I am using Sweave to write an article. If I want to convert the *.rnw
to a *.tex file I have to run Sweave which might take a long time. Is
there away to get a tex-file as result without (evaluating) the
R-chunks, i.e. the opposite of
-chunk).
Thanks,
Stefan
This is untested, but does Sweave("file.rnw", eval=FASLE) do what you want?
--
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Dalla Lana School of Public Health
University of Toronto
email: kevin.tho...@utoron
command not found
I believe there is something in the latex help page in the rms package
that talks about preview difficulties on MAC.
--
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Dalla Lana School of Public Health
University of Toronto
e
mplement it
yourself and share the result, as your question is an important one.
Also, please be sure to state your affiliation on your notes.
Frank
On 05/28/2010 02:19 PM, Vishwanath Sindagi wrote:
Hello:
I am working on getting some statistics related to clinical trials
and
stuff. I have
mented
3 line 2
4 line 3
5 #nother comment
6 line 4
just a guess. hard to tell without the file...
Barry
--
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Dalla Lana School of Public Health
University of Toronto
em
s and have that installed also, but until
I become a bit more familiar with this software I'm starting from BUGS.
Kevin
--
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Dalla Lana School of Public Health
University of Toronto
email: kevin.tho
average length of
follow-up time anticipated in the study.
Kevin
--
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Dalla Lana School of Public Health
University of Toronto
email: kevin.tho...@utoronto.ca Tel: 416.864.5776 Fax: 416.864.3016
TC", "TT"), lty = c(3, 2, 1), title
"LAT4H")
Thanks!
In the help file for plot.survfit you can read about the fun argument.
fun="event" does what you want.
--
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Dal
ive. It's a good way to get a feeling
for a particular distribution without installing anything.
--
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Dalla Lana School of Public Health
University of Toronto
email: kevin.tho...@utoronto.ca T
it appears (hence my terse reply the other day).
Also, at the bottom of every r-help email is a link to the "Posting
Guide." Following the instructions there, for example, creating a toy
example that illustrates your problem is often very useful in helping
you solve the problem wit
March 2010 20:19, Kevin E. Thorpe [via R] <
ml-node+1587986-1699461774-180...@n4.nabble.com
wrote:
ManInMoon wrote:
Hi, I am new to R.
What does a negative amount in an index do?
i.e. x[-lenght[x]]
Why don't you try it and see for yourself?
--
Kevin E
ManInMoon wrote:
Hi, I am new to R.
What does a negative amount in an index do?
i.e. x[-lenght[x]]
Why don't you try it and see for yourself?
--
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Dalla Lana School of Public Health
Universi
hould be an "enable X11 forwarding" (or something similar) option in
your ssh client application. You should look e.g. in "connection settings".
Kind regards,
Kimmo
Agree. Sounds like you are using a client on Windows. Also, Vojtech
Zeisek's reply is perti
X11cairo
In addition: Warning message:
In function (display = "", width, height, pointsize, gamma, bg, :
unable to open connection to X11 display ''
Would you give some clues what is going on?
thanks
Did you start ssh with the -X switch?
--
Kevin E. Thorpe
Biostatistician
Kevin E. Thorpe wrote:
Hello.
I am getting an error thrown from tkrplot. It is
X11 font -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, face 1 at size 12
could not be loaded
> sessionInfo()
R version 2.10.1 Patched (2009-12-29 r50852)
i686-pc-linux-gnu
locale:
[1] LC_CTYPE=en
or the 100dpi version?
I'm pretty sure I have the necessary fonts. I just may need to tell X
where they are, so I'm wondering exactly which font(s) are being requested.
Thanks.
--
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Dalla Lana
.
Kevin E. Thorpe wrote:
I was messing around with some data in R and SAS (the reason is
unimportant) fitting a multiple linear regression and got a
curious discrepancy. The data set is too big to post, but if
someone wants it, I can send it.
So, here are the (partial) results:
From R
3.6-0 lattice_0.17-25
loaded via a namespace (and not attached):
[1] cluster_1.12.0 grid_2.8.0
--
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Dalla Lana School of Public Health
University of Toronto
email: kevin.tho...@utoronto.c
ode above needs to be inside a
\begin{document} ... \end{document} pair.
Then, the pdflatex (I beilieve this exists in MiKTeX) command builds
a pdf file.
Kevin
Best regards,
Joel
--
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Dalla Lana
Peter Dalgaard wrote:
Kevin E. Thorpe wrote:
I'm sure this is simple enough, but an R site search on my subject
terms did suggest a solution. I have a numeric vector with many
values that I wish to create a factor from having only a few levels.
Here is a toy example.
> x <
els. The results I would
like to see from printing the value and summary(x) are:
> x
[1] A A A B B B C C C C
Levels: A B C
> summary(x)
A B C
3 3 4
Hopefully this makes sense.
Thanks,
Kevin
--
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professo
line
I am using, or do I need to have an additional line
sciach$dummyba[sciach$ba==1] <- 1
Thanks in advance.
David
Try sciach$dummyba <- ifelse(sciach$ba==0,2,1)
--
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Dalla Lana School of
;mean", "Var" and "length" togheter?
3.)Find the minimum of this function:
f(x)=(x-3)^4
with the Newton method.
4.) Define a function that is able to calculate the geometric mean of a
seriation:
Sorry for all these quest
Daniel Fernandez wrote:
I'm not sure but my guess is that part isn't working... is that the way
to call R from perl?
It's the way I would call R in batch from the command line. In your
call you are missing the CMD part.
Sent from my iPhone
On May 6, 2009, at 8:09 AM, &
BATCH regressExpr.spl temp` work?
--
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Dalla Lana School of Public Health
University of Toronto
email: kevin.tho...@utoronto.ca Tel: 416.864.5776 Fax: 416.864.6057
Kevin E. Thorpe wrote:
Ravi Varadhan wrote:
Good try, Kevin. But that doesn't seem to do it.
set.seed(123)
x <- sort(runif(100))
y <- sin(4*pi*x) + rnorm(100, sd=0.2)
ans.lo2 <- loess(y ~ x, degree=2, span=0.75)
ans.gam2 <- gam(y ~ lo(x, degree=2, span=0.75))
summa
an iterations argument which is related
to the robustness of the estimates. I would think that could also
account for tail departures especially.
I don't gave the gam package installed, so can't test these myself
at the moment.
- Original Message -
From: "Kevin E. Thorp
,span=0.75,degree=2)) and see if that helps.
Kevin
--
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Dalla Lana School of Public Health
University of Toronto
email: kevin.tho...@utoronto.ca Tel: 416.864.5776 Fax: 416.864.6057
1 - 100 of 129 matches
Mail list logo