Re: [R] Negative values on output

2014-08-19 Thread Bert Gunter
Please follow the posting guide and post in plain text, not HTML, so that helpeRs do have to try to decipher this mess. Cheers, Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." Cli

[R] Negative values on output

2014-08-19 Thread sam cruickshank
Good afternoon, I am completed a linear regression model which I personally am happy with the output and residual charts (although they are a bit bunched). I have been using visreg() to visualise my data, and although I have logged the dependent variable (as it is cost data), on one of the

Re: [R] Weighted Mann-Whitney-Wilcoxon-Test

2014-08-19 Thread Thomas Lumley
]On Wed, Aug 20, 2014 at 2:01 AM, Alexander Sommer wrote: > tl;dr: I am looking for a nonparametric alternative to wtd.t.test in package > weights. > > Is anyone aware of an(other) implementation in R? survey::svyranktest T. Lumley and A.J. Scott (2013). Two-sample rank tests under complex sa

[R] Weighted Mann-Whitney-Wilcoxon-Test

2014-08-19 Thread Alexander Sommer
Hi fellow R-users, well, say I got two groups, A and B. Nested within each group are subgroups and in each subgroup are objects with values x and y to a certain attribute. So, I can compute the portion of x-objects for each subgroup as #x/(#x + #y). Artificial example with 12 subgroups in group

Re: [R] A question in Rinternals.h

2014-08-19 Thread PO SU
BTW, you say i always send html format email, finally i find that it is my mail server which send mail in html format by default., i should change the format eveytime before sending a mail... -- PO SU mail: desolato...@163.com Majored in Statistics from SJTU At 2014-08-19 06:28:06,

Re: [R] A question in Rinternals.h

2014-08-19 Thread PO SU
Tks for your guide, but before i know which maillist should i ask the question, i could only ask it here. 'figure out' i mean 'understand'. Forgive my pool english :). -- PO SU mail: desolato...@163.com Majored in Statistics from SJTU At 2014-08-19 06:28:06, "Prof Brian Ripley" wrote: >P

Re: [R] principle component values on PCA plots do not match

2014-08-19 Thread David L Carlson
Try using scale=0 with the biplot function). David C -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Jinsong Zhao Sent: Monday, August 18, 2014 7:42 PM To: r-help@r-project.org Subject: Re: [R] principle component values on PCA plo

Re: [R] GSUB and Data.frame format lost

2014-08-19 Thread Ivan Calandra
Hi, If I understand you well, the problem is that DataGoogle2 is a 1-column data.frame and this is expected based on your code! I think you want something like this to change the 1st column of the data.frame: DataGoogle2 <- DataGoogle1 DataGoogle2$Campaña <- gsub("facebook-Ads1", "FBAds", Da

[R] GSUB and Data.frame format lost

2014-08-19 Thread Omar André Gonzáles Díaz
Hi all, please, i'm trying to understand how using "Gsub" for some search and replace of text, makes my data frame lost it's format. This is my code: DataGoogle1 <- read.csv(file = "DataGoogle2.csv", header = T, stringsAsFactors = F) head(DataGoogle1) Result 1: CampañaV

Re: [R] programme bivariate binomial negative

2014-08-19 Thread Michael Dewey
At 05:34 19/08/2014, Untung Kurniawan wrote: I'm making a thesis with bonimial negative bivariate regression, please help me to be delivered program. thank you. library(sos) # install sos first if you do not already have it findFn("negative binomial bivariate regression") This gives you quite

Re: [R] A question in Rinternals.h

2014-08-19 Thread Prof Brian Ripley
Please do read the posting guide (clearly you have not as you sent HTML). - This is the wrong list: it is a question about C code. - In any case, it is about C. The R Internals manual may help you, otherwise you need to talk to a local C adviser. (Even if this were not off-topic here, we do

[R] A question in Rinternals.h

2014-08-19 Thread PO SU
Dear Rusers, when i am reading Rinternals.h file, i can't understand the following codes in lines 395-407: #define CHAR(x)R_CHAR(x) const char *(R_CHAR)(SEXP x); /* Various tests with macro versions below */ Rboolean (Rf_isNull)(SEXP s); Rboolean (Rf_isSymbol)(SEXP s); Rboolean (Rf_isLogic

Re: [R] Prediction intervals (i.e. not CI of the fit) for monotonic loess curve using bootstrapping

2014-08-19 Thread Jan Stanstrup
And just then I realized the problem. nknots need to be length(knots). Otherwise knots are deleted. I am not so sure this works equally well as my original loess fit though. The fit I get with cobs is highly dependent on the "knot step size". At 0.4 for example it seems ok. At 0.3 I get points

Re: [R] Prediction intervals (i.e. not CI of the fit) for monotonic loess curve using bootstrapping

2014-08-19 Thread Jan Stanstrup
Sorry. I have updated the code to have include the knot selection (https://github.com/stanstrup/retpred_shiny/blob/master/retdb_admin/make_predictions_CI_tests.R). I am working on the "Good data" at the moment. - Jan. On 08/18/2014 08:14 PM, David Winsemius wrote: > I had that result somet