Re: [R] Help with fmodel in statisticalModeling package

2019-09-06 Thread Paul Johnston
: CPS85$bogus <- as.numeric(rnorm(nrow(CPS85)) > 0) -pd > On 6 Sep 2019, at 11:57 , Paul Johnston > wrote: > > Hi > > Anyone able to help me with this. > I'm doing a datacamp course and the effect of adding a "bogus variable" to a > linear model. >

[R] Help with fmodel in statisticalModeling package

2019-09-06 Thread Paul Johnston
#print(fmodel((aug_model))) I get Error: variable 'bogus' was fitted with type "logical" but type "character" was supplied Any pointers gratefully accepted Cheer Paul J Paul Johnston Field Support (Slough House) University of Manchester

Re: [R] word stemming for corpus linguistics

2016-07-26 Thread Paul Johnston
doesn't have a method to work with objects of class 'character'. Again, the problem is that tm doesn't seem to allow for concordance analysis ... or perhaps it does and I just haven't figured out how to do it, so am happy to be shown some documentation on that process,

Re: [R] word stemming for corpus linguistics

2016-07-26 Thread Paul Johnston
Suggest look at http://www.inside-r.org/packages/cran/tm/docs/stemDocument -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Andy Wolfe Sent: 26 July 2016 08:10 To: r-help@r-project.org Subject: [R] word stemming for corpus linguistics Hi list On a piec

[R] Reading PCorpus created using tm package

2016-07-21 Thread Paul Johnston
session. I've seen this http://stackoverflow.com/questions/28377646/how-to-reconnect-to-the-pcorpus-in-the-r-tm-package So can I create a corpus and just reload the file persistent copy or not? Cheers Paul Paul Johnston Research Infrastructure Room B39 Sackville Street Building  

[R] Passing data to t.test in loop

2014-12-02 Thread Paul Johnston
Dear All First post so sorry for any breaches of etiquette. I have a csv containing the results for a series of experiments which record the time taken for various sizes of iterations. "run_id","size","time" 1,100,1.00 2,200,2.100 3,100,1.100 4,200,2.100 5,200,1.900 6,300,4.00 7,200,2.5 ... I r

[R] Reporting Kaplan-Meier / Cox-Proportional Hazard Standard Error, km.coxph.plot, survfit.object

2012-02-19 Thread Paul Johnston
What is the best way to report the standard error when publishing Kaplan-Meier plots? In my field (Vascular Surgery), practitioners loosely refer to the "10% error" cutoff as the point at which to stop drawing the KM curve. I am interpreting this as the *standard error of the cumulative hazard*,

[R] (no subject)

2012-01-25 Thread Paul Johnston
subscribe __ 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.

[R] Cox proportional hazards confidence intervals

2011-11-20 Thread Paul Johnston
I am calculating cox propotional hazards models with the coxph function from the survival package. My data relates to failure of various types of endovascular interventions. I can successfully obtain the LR, Wald, and Score test p-values from the coxph.object, as well as the hazard ratio as follo

[R] What is going on?

2009-02-11 Thread Paul Johnston
Ok, so I'm new to R, but this is driving me crazy. In this example, I am trying to process each element in a list. s = "1,2" l = strsplit(s, ",", fixed=TRUE) print("BEGIN") n = length(l) i = 1 while (i <= n) { x = l[[i]] print(paste("x:", class(x), x)) print("BEFORE PRINT") print(x) pr

Re: [R] Unexpected mfrow, layout behavior (pdf still has multiple pages)

2009-02-05 Thread Paul Johnston
You are correct, thank you. I added a new subsection 'Graphics Devices' in http://wiki.r-project.org/rwiki/doku.php?id=tips:surprises:traps to document this behavior. Paul On Thu, Feb 5, 2009 at 4:58 AM, Peter Dalgaard wrote: > Paul Johnston wrote: >> My goal is to crea

[R] Unexpected mfrow, layout behavior (pdf still has multiple pages)

2009-02-05 Thread Paul Johnston
My goal is to create a graph with one column and three rows into a single graphic. The mfrow, mfcol, and layout functions all have the same effect: three graphs are produced in a single pdf file, having one graph per page. This is not what I want (I didn't want multiple pages). Just before I sent