similar to: Very basic question regarding plot.Design...

Displaying 20 results from an estimated 4000 matches similar to: "Very basic question regarding plot.Design..."

2011 Mar 09
2
rms: getting adjusted R^2 from ols object
How can I extract the adjusted R^2 value from an ols object (using rms package)? library(rms) x <- rnorm(10) y <- x + rnorm(10) ols1 <- ols(y ~ x) Typing "ols1" displays adjusted R^2 among other things, but how can I assign it to a variable? I tried str(ols1) but couldn't see where to go from there. Thanks, Mark Seeto
2002 May 11
2
Bug on Mac version of lm()?
Dear Mac users, Hi, as you might have probably read the thread of "[R] Rsquared in summary(lm)" on May 10, it seems that Mac version of lm() seem to be working incorrectly. I enclose the script to produce the result both for lm() and manual calculation for a simple regression. Could you run the script and report with the version of R, so I don't have to go through every builds
2011 Jun 08
1
predict with model (rms package)
Dear R-help, In the rms package, I have fitted an ols model with a variable represented as a restricted cubic spline, with the knot locations specified as a previously defined vector. When I save the model object and open it in another workspace which does not contain the vector of knot locations, I get an error message if I try to predict with that model. This also happens if only one workspace
2010 Jan 21
1
Simple effects with Design / rms ols() function
Hi everyone, I'm having some difficulty getting "simple effects" for the ols() function in the rms package. The example below illustrates my difficulty -- I'll be grateful for any help. #make up some data exD <- structure(list(Gender = structure(c(1L, 2L, 1L, 2L, 1L, 1L, 1L, 2L, 1L, 2L, 2L, 2L, 1L, 2L), .Label = c("F", "M"), class = "factor"),
2005 Dec 21
2
Why lmer() is not working, altough lme4 is installed?
I have installed lme4 library, but when I try something with lmer() function, I receive error message. On the other hand, I can use lme() function from the same library. Are those two the very same function or not? I am a bit confused. I am using: $platform: "i386-pc-linux-gnu" $arch: "i386" $os: "linux-gnu" $system: "i386, linux-gnu" $major: "2"
2009 Dec 02
1
Incorporating the results of White's HCCM into a linear regression:
Using hccm() I got a heteroscedasticity correction factor on the diagonal of the return matrix, but I don't know how to incorporate this into my linear model: METHOD 1: > OLS1 <- lm(formula=uer92~uer+low2+mlo+spec+degree+hit) Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) -0.0623377 0.0323461 -1.927 0.057217 . uer 0.2274742 0.0758720
2009 May 16
4
rgl install failed...
Hello! Interesting thing is that I cannot install rgl. It reports: checking for X... no configure: error: X11 not found but required, configure aborted. ERROR: configuration failed for package ?rgl? * Removing ?/usr/local/lib/R/site-library/rgl? I am pretty sure that my X11 is fine. Does anyone know why I got this error message? Best, PM
2011 Jun 03
2
Checking and building package
Hello! I am truing to compile an R-package having c-code. I put foo.c in src/ folder and useDynLib("foo") in NAMESPACE file. When trying R CMD check, I got an error message that shared object 'foo' is not found. Then I did R CMD SHLIB foo.c first. However, after that, I got warnings from R CMD check that there is an object file in /src folder. Even worse is if I run R CMD
2007 Mar 21
2
Detailed legend in mathplot ...
Hello, Recently, I have asked for a help with building graphs, and I got few great advices. Now, my appetite is growing :) and I wander how to add legend for two (or more) lines in following example: matplot(DAT[, c(3,4)], type="b", ylim=c(0,8), xaxt="n", yaxt="n", + pch=c(21,22), col="black", lty=c("dashed","solid"), xlab="",
2009 Sep 04
3
Applying qqmath using gamma distribution...
Hello ALL! Can anyone tell me how to specify qqmath() function with distribution qgamma? In help it is bit vague how to pass shape and scale parameters for gamma. Thank you in advance. Best, PM
2007 Jan 25
2
Unable to install gtkDevice ...
Hello! I am trying to install gtkDevice package, but without success. It is complaining about: * Installing *source* package 'gtkDevice' ... checking for gtk-config... no checking for gtk12-config... no ERROR: Cannot find gtk-config. I am using Ubuntu 6.06, and I cannot find that package in the repositories. Is there a remedy of any kind? What can I do? Best, Petar M.
2012 Apr 18
3
Installing texlive dependencies
Hello ALL! I am running Fedora 16 x86_64. Due to some dubious problems, that i couldn't resolve, with the TeXLive (2007, which is a default), I removed it. That removed R as well, and some other dependent packages. Then, I installed TeXLive 2011 from CTAN. However, when I wanted to install R, from Fedora's repositories, it asks for some TeX dependencies (for example, tex-preview,
2006 Jan 24
1
Can’t find X11 font when trying to produce graph
I am using R 2.1.1 on i486-pc-gnu-linux (Ubuntu Breezy). Recently, I bought new laptop HP nx8220 and installed Breezy with a few problems starting X-Windows. Nevertheless, I followed some instruction, managed to start X, and added R from the Ubuntu's repositories. When I try to produce any graph (like plot, bwplot etc.), I receive an error message: can't find X11 font Error in X11( ....
2009 Sep 15
5
Very general question about Debian...
Hello ALL! First, I apologize for sending question that spill-out from the scope of this list. However, you might be essentially the best informants. In brief, I am thinking to give second shot to the Debian. Currently I am using Ubuntu 9.04, but Debian still teases me, so to say. I used to use Debian testing (Lenny at that time), but when Lenny became stable, things became very shaky in
2004 May 27
1
Getting the same values of adjusted mean and standard errors as SAS
Hello, I am trying to get the same values for the adjusted means and standard errors using R that are given in SAS for the following data. The model is Measurement ~ Age + Gender + Group. I can get the adusted means at the mean age by using predict. I do not know how to get the appropriate standard errors at the adjusted means for Gender using values from predict. So I attempted to get them
2005 Nov 30
1
How to solve allocation problem in lme() analysis?
Hello! I am running analysis on the data from 4 experiments, with approximately 4600 rows (cases). My working model is: fitA1 = lme(RT~F1+F2+L,random=~1|Experiment/Subject,data=data) Model works very fine, but if I try to check whether the effect of L depends on Experiments/Subjects with: fitA2 = lme(RT~F1+F2+L,random=~1+L|Experiment/Subject,data=data) [with the idea to make: anova(fitA1,fitA2)]
2012 Aug 30
2
Which BUGS should one use?
Hello ALL! Some times ago I started to learn and play with Bayesian stuffs. Many advice use of WinBUGS for Bayesian inference Using Gibbs Sampler. However, WinBUGS is discontinued, and now, development is under OpenBUGS. I wasn't lazy, so I installed both and tried out. In more than 90% of cases they give comparable outcome. But in few cases I got substantial differences. Recently, I read nice
2009 Mar 18
2
Updated R on Debian testing machine...
Hello! I recently switched to Debian testing OS and explanation at the: http://cran.at.r-project.org/bin/linux/debian/ is a little bit fuzzy. Can anyone give step-by-step how-to have updated R on Debian testing and/or unstable. Thanks in advance! PM
2009 May 19
4
nlrwr package. Error when fitting the optimal Box-Cox transformation with two variables
Dear all: I'm trying to fit the optimal Box-Cox transformation related to nls (see the code below) for the demand of money data in Green (3th Edition) but in the last step R gives the next error message. Error en `[.data.frame`(eval(object$data), , as.character(formula(object)[[2]])[2]) : undefined columns selected. ?Any idea to solve the problem? Thanks in advance,
2005 Dec 31
3
Problems with updating R-packages
Dear Helpers, I am new in Linux and R, trying to update packages I need in my work, but repeatedly I failed for reasons I do not understand. First, I use: > update.packages() Then, I choose nearest mirror and accept update of 'Design' package: > Design : > Version 2.0-9 installed in /usr/lib/R/site-library > Version 2.0-12 available at http://cran.r-mirror.de > Update