Displaying 20 results from an estimated 200 matches similar to: "how to calculate Rsquare"
2011 Jul 13
1
max possible rsquare
Dear all,
I have a question regarding the output of the coxph function. What does the
'max possible' exactly mean in the output below? Many thanks.
coef exp(coef) se(coef) robust se z Pr(>|z|)
smocc_zyban -0.4384 0.6451 0.8667 0.9473 -0.463 0.644
self 1.1857 3.2728 0.1405 0.1443 8.216 2.22e-16 ***
smocc_zyban:self
2003 Aug 27
1
how to calculate Rsquare
I think you've badly misinterpreted the purpose
of the R listserv with this request:
https://www.stat.math.ethz.ch/mailman/listinfo/r-help says
"The `main' R mailing list, for announcements about the
development of R and the availability of new code, questions
and answers about problems and solutions using R, enhancements
and patches to the source code and documentation of R,
2005 Jun 22
0
Rsquare from glmmPQL or another GLMM?
Hi,
I know that Rsquare in glm or in non-linear models is "wrong", but some people
like this.
How I make to estimate the Rsquare from a model ajusted with glmmPQL or
another GLMM?
Thanks for all
Ronaldo
--
A simplicidade ?? o ??ltimo degrau da sabedoria.
-- Victor Hugo
--
|> // | \\ [***********************************]
| ( ?? ?? ) [Ronaldo Reis J??nior
2013 May 16
2
R looping help
Hey I'm not really sure what I should put on here, but I am having trouble
with my R code. I am trying to get the p-values, R^2s etc for a number of
different groups of variables that are all in one dataset.
This is the code:
#Stand counter
st<-1
#Collections
stands<-numeric(67)
slopes<-numeric(67)
intercepts<-numeric(67)
mses<-numeric(67)
rsquares<-numeric(67)
2013 Jun 18
2
offset en bucle
Amigos de la erre.
He creado mi primer bucle con for para entrenar unos modelos con GAM. La
respuesta es quasipoisson porque estoy trabajando con densidades de peces.
Sin embargo, tengo un problema, no se muy bien como aƱadir el offset a la
formula siguiente cuando creo el bucle.
GAM.A1 <-gam ((DYO)~s(DMA,k=4)+ s(WOD,k=4)+s(CIN,k=4)+s(DRA,k=4)+s(DBR,k=4)
2012 Aug 06
1
cannot find function "simpleRDA2"
Hi,
I am trying to run the command "forward.sel.par," however I receive
the error message: "Error: could not find function 'simpleRDA2'." I
have the vegan library loaded. The documentation on "varpart" has not
helped me to understand why I cannot call this function. Maybe I am
missing something obvious because I am still an 'R' novice.
Below is a
2012 Jun 01
2
Partial R-square in multiple linear regression
Hello,
I am trying to obtain the partial r-square values (r^2 or R2) for
individual predictors of an outcome variable in multiple linear
regression. I am using the 'lm' function to calculate the beta
coefficients, however, I would like to know the individual %
contributions of several indepenent variables. I tried searching for
this function in many R packages, but it has proven elusive
2008 Oct 30
2
p-value=0 running coxph
Dear all,
I have a question concerning the p-value. When running coxph I get a p-value
= 0. :confused:
Can this be true? Why aren?t there decimal points? Is there a way to find
out the exact p-value?
Here is the output:
----------------------------------------------------------------------------------------------------
Call:
coxph(formula = Surv(start, stop, status) ~ Albumin_gproL, data = dial,
2011 Jun 28
2
coxph() - unexpected result using Crawley's seedlings data (The R Book)
Hi,
I ran the example on pp. 799-800 from Machael Crawley's "The R Book" using package survival v. 2.36-5, R 2.13.0 and RStudio 0.94.83. The model is a Cox's Proportional Hazards model. The result was quite different compared to the R Book. I have compared my code to the code in the book but can not find any differences in the function call. My results are attached as well as a
2009 May 10
2
plot(survfit(fitCox)) graph shows one line - should show two
R 2.8.1
Windows XP
I am trying to plot the results of a coxph using plot(survfit()). The plot should, I believe, show two lines one for survival in each of two treatment (Drug) groups, however my plot shows only one line. What am I doing wrong?
My code is reproduced below, my figure is attached to this EMail message.
John
> #Create simple survival object
>
2009 May 09
4
how to get design matrix?
How do you get the design matrix R used when calculating ANOVA?
--
View this message in context: http://www.nabble.com/how-to-get-design-matrix--tp23464638p23464638.html
Sent from the R help mailing list archive at Nabble.com.
2006 Sep 30
3
Textmate project drawer: is there a Windows alternative?
I was reading about the project drawer feature in Textmate, which is Mac
only.
Is there a similar feature in a Windows based text editor that works with R.
This feature sounds really useful.
Thanks,
Graham
[[alternative HTML version deleted]]
2008 May 09
2
how to check linearity in Cox regression
Hi, I am just wondering if there is a test available for testing if a linear fit of an independent variable in a Cox regression is enough? Thanks for any suggestions.
John Zhang
____________________________________________________________________________________
[[elided Yahoo spam]]
2005 Dec 13
1
Problem with understanding output of Cox model
Hi all,
I am using a 'tricked' Cox Hazard regression model for discrete choice
habitat modelling.
However, I'm having a hard time understanding the meaning of the first
line the following part of the summary() output:
Rsquare= 0.307 (max possible= 0.475 )
Likelihood ratio test= 91.8 on 12 df, p=2.23e-14
Wald test = 26.3 on 12 df, p=0.00977
Score (logrank) test = 58.6 on 12 df,
1999 May 03
1
bug
-------------------------------------------------
SAMPLE SCRIPT:
x<-rnorm(50)
y<-12*x+30*rnorm(10)
ff<-lm(y~x)
sink("output.txt")
print(ff) # this work give basic coefficients
summary(ff) # should give Rsquare etc
sink()
-------------------------------------------------
Having fitted a curve on a data set, I am trying
to write all the statistics about the fit to a
file.
In
2005 Jun 15
3
Error using newdata argument in survfit
Dear R-helpers,
To get curves for a pseudo cohort other than the one centered at the mean of
the covariates, I have been trying to use the newdata argument to survfit
with no success. Here is my model statement, the newdata and the ensuing
error. What am I doing wrong?
> summary(fit)
Call:
coxph(formula = Surv(Start, Stop, Event, type = "counting") ~
Week + LagAOO + Prior.f +
2006 Dec 05
1
Spearman correlation ties and discrepancies
Hi. I am currently trying to run some Spearman correlations, and have
encountered two issues.
1) When using cor.test() with a variable that includes ties, I get the
"Cannot compute exact p-values with ties" error. I have read that this
function now uses an asymptotic formula that allows for ties, so do not
understand why I am getting this error. (I am running version 2.4.0.)
I
2010 Oct 06
1
Does R have function/package works similar to SAS's 'PROC REG'?
Hello,
I am working on a variable selection problem and I wonder whether there is
some function or package in R works similar to the 'PROC REG' in SAS? Thank
you.
Some facts about 'PROC REG':
PROC REG in SAS first composes a crossproducts matrix. The matrix can be
calculated from input data, reformed from an input correlation matrix, or
read in from an SSCP data set. For each
2011 Jul 25
1
error in survival analysis
This is a simple R program that I have been trying to run. I keep running into the "singular matrix" error. I end up with no sensible results. Can anyone suggest any changes or a way around this?
I am a total rookie when working with R.
Thanks,
Rasika
> library(survival)
Loading required package: splines
> args(coxph)
function (formula, data, weights, subset, na.action, init,
2011 Apr 15
3
Rsquared for anova
I calculate an anova test in the following way:
expdata<-read.table("/home/dorien/UA/meta-music/optimuse/optimuse1-build-desktop/results/results_processedCP",
header=TRUE)