[R] TSLS / 2SLS with a binary outcome

2014-11-30 Thread Philip Robinson
Hi, I am wanting to complete 2 stage least squared regression with a binary outcome. I have found and implemented a continuous outcome with tsls() from the sen package or ivreg() from the AER package. However I am struggling to find a package/function that implements a function for a binary outc

[R] cex values being ignored in the curve function

2014-04-19 Thread Philip Robinson
Dear R-Community, The cex values in curve seem to be being ignored. I have searched previous help questions and also the web generally, and cannot find this being a major problem so I am suspicious of something odd happening but I am at a loss to work out why. I am trying to plot this: b1

Re: [R] ROCR package not installing

2012-11-22 Thread Philip Robinson
it status thanks Philip -Original Message- From: Mohammed Ouassou [mailto:mohammed.ouas...@statkart.no] Sent: Thursday, 22 November 2012 6:02 PM To: Philip Robinson Cc: r-help@r-project.org Subject: Re: [R] ROCR package not installing try: install.packages("ROCR",dep=T) M.O On to., 2012-11-

Re: [R] ROCR package not installing

2012-11-22 Thread Philip Robinson
Robinson Cc: r-help@r-project.org Subject: Re: [R] ROCR package not installing Hello, What is the version of R you use ? Regards, Pascal Le 22/11/2012 15:02, Philip Robinson a écrit : > I have tried installing the package (ROCR) with this command: > > > > Install.packages(ROCR) &

[R] ROCR package not installing

2012-11-21 Thread Philip Robinson
I have tried installing the package (ROCR) with this command: Install.packages(ROCR) And with this command on the command line R CMD INSTALL ROCR_1.0-4.tar.gz But both times I get exactly the same error shown below, I don't understand what is wrong, is this an error in the package c

[R] identifying a column name correctly to use in a formula

2012-02-29 Thread Philip Robinson
Hi, I have a large matrix (SNPs) that I want to cycle over with logistic regression with interaction terms. I have made a loop but I am struggling to identify to the formula the name of the column in a way which is meaningful to the formula. It errors becasue it is not evaluated proporly. (below

[R] nested if else statements

2012-02-05 Thread Philip Robinson
I have a vector of 2,1,0 I want to change to 0,1,2 respectively (the data is allele dosages) I have tried multiple nested if/else statements and looked at the ?if help and cannot work out what is wrong, other people have posted code which is identical and they state works. Any help would be great

[R] extracting from data.frames for survival analysis

2012-01-26 Thread Philip Robinson
Hi, I have a data frame: > class(B27.vec) [1] "data.frame" > head(B27.vec) AGE Gend B27 AgeOn DD uveitis psoriasis IBD CD UC InI BASDAI BASFI Smok UV 1 571 119 38 2 1 1 1 1 1 5.40 8.08 NA 1 2 351 133 2 2 1 1 1 1 1 1.69 2.

[R] determining the difference between 2 character strings

2012-01-15 Thread Philip Robinson
Hi, I am struggling, I have 2 lists with shared elements, one ~600, one ~1000, and I need to determine the difference between them. They are character strings, and to use setdiff(), or unique() I need vectors. I don't know how to force these character strings into a form where you can use functio

[R] Lapack routine dgesv: system is exactly singular

2012-01-09 Thread Philip Robinson
Hi I have a problem with this error, I have searched the archives and found previous discussion about this, can I cannot understand how the explanations apply to what I am trying to do. I am trying to do Log_rank Survival analysis, I have included tables and str command, is it a factor/int

[R] creating vectors from data-frames

2012-01-08 Thread Philip Robinson
I am having a problem with creating a vector from a rows or columns, I searched around and found as.vector(x), but it does not seem to do what it says it does I have included an example below, of doing what would seem to be the method required to create a vector, but instead it creates a one

Re: [R] R for loop stops after 4 iterations

2011-10-23 Thread Philip Robinson
That's fantastic, thank you very much, the qnorm option is interesting, I will have to play around with it. Many thanks again Philip -Original Message- From: R. Michael Weylandt [mailto:michael.weyla...@gmail.com] Sent: Sunday, 23 October 2011 10:28 AM To: Philip Robinson Cc: r-h

[R] R for loop stops after 4 iterations

2011-10-22 Thread Philip Robinson
I have a data frame called e, dim is 27,3, the first 5 lines look like this: V1 V2 V3V4 1 1673 0.36 0.08 Smith 2 167 0.36 0.08 Allen 399 0.37 0.06 Allen 4 116 0.38 0.07 Allen 595 0.41 0.08 Allen I am trying to calculate the proportion/p

Re: [R] help with graphing -- Points in my graph are not apparent, always displayed in steps

2009-12-13 Thread philip robinson
Thank you very much, -- Philip David Winsemius wrote: > > > -- View this message in context: http://n4.nabble.com/help-with-graphing-Points-in-my-graph-are-not-apparent-always-displayed-in-steps-tp961629p963227.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] help with graphing -- Points in my graph are not apparent, always displayed in steps

2009-12-13 Thread philip robinson
Sorry to have not provided enough information in my prior post. Here is a summary of the calculation set that I am doing. The histograms have changed since my last post, but I am not so concerned about them. The scatter plots do not show all of the points, they seem to round off to the most common

Re: [R] help with graphing -- Points in my graph are not apparent, always displayed in steps

2009-12-13 Thread philip robinson
http://n4.nabble.com/file/n962784/egraph_rules_list_2.png The red X's that are listed above represent data points that have been completely ignored in production of my graph. I know that in a specified sentence length there are variations in number of Conjunctions -- View this message in context:

[R] help with graphing -- Points in my graph are not apparent, always displayed in steps

2009-12-11 Thread philip robinson
I am trying to graphically represent a large set of data who's result is not strictly uniform. http://n4.nabble.com/file/n961629/egraph_rules_list_2.png The scatter plot to the left has all of the data rising in steps however I know that there are cases within my data that do not fit the dotted