Displaying 20 results from an estimated 1000 matches similar to: "Windows 7 issues with installing packages and setting library paths"
2008 Nov 06
2
replacing characters in formulae / models
Dear all,
How can I replace text in objects that are of class "formula"?
y="a * x + b"
class(y)="formula"
grep("x",y)
y[1]
Suppose I would like to replace the "x" by "w" in the formula object "y".
How can this be done? Somehow, the methods that can be used in character objects do not work 1:1 in
formula objects...
Many
2008 Feb 22
3
Simultaneously summarizing many models
Dear R users,
Let?s say I have 10 models, each named m1,m2,m3..., and I would like to summarize them automatically
and simultaneously - e.g., to extract parameter estimates later on from all models; how can I do that?
I have tried:
x=1:10 #this creates some example data
y=rnorm(10)
m1=lm(x~y)
m2=lm(x~1)
sum.lms=function(x)summary(paste("m",x,sep=""))
sum.lms(1:2)
but
2007 Nov 08
6
Extract correlations from a matrix
Dear R users,
suppose I have a matrix of observations for which I calculate all
pair-wise correlations:
m=matrix(sample(1:100,replace=T),10,10)
w=cor(m,use="pairwise.complete.obs")
How do I extract only those correlations that are >0.6?
w[w>0.6] #obviously doesn?t work,
and I can?t find a way around it.
I would very much appreciate any help!
Best wishes
Christoph
(using R
2009 Aug 20
1
nested, repeated measure lme
Dear all,
Suppose I have a nested, repeated measure lme model. Which of the following formulae is correct?
(assuming data are sampled from several plots in an agricultural experiment)
(1) y~explanatory.variables,random=~time|block/plot/subplot/individual
(2) y~explanatory.variables,random=~time|unique.ID.of.every.individual
I have read that (2) is the only approach that works. But how could I
2008 Jun 07
1
Multivariate LM: calculating F-values after calling linear.hypothesis
Dear R users,
I am analyzing several response variables (all scaled to [0;1]) using a
multivariate linear model.
After fitting the model, I set up a hypothesis matrix to test specific
contrasts for these response variables; for example: "a always increases
significantly more than b when regressed against x".
What I am stuck with now is how to calculate the correct F-values (and
2008 Nov 25
4
glm or transformation of the response?
Dear all,
For an introductory course on glm?s I would like to create an example to show the difference between
glm and transformation of the response. For this, I tried to create a dataset where the variance
increases with the mean (as is the case in many ecological datasets):
poissondata=data.frame(
response=rpois(40,1:40),
explanatory=1:40)
attach(poissondata)
However, I have run into
2004 Jan 27
2
WinFS and Samba interoperability
Hi There,
Do any of the latest versions of Samba
interoperate with WinFS found in Microsoft future OS
called Longhorn ?
Thanks
Chris Kordish
Staff Engineer - Sun Microsystems
Competitive Strategy Group - CTO Office
781-442-2784
NOTICE: This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any unauthorized
review, use,
2015 Feb 27
2
The Environment variables settings in bin/R, why do they ignore environment variables of the same name?
Hello,
In installation/R/bin/R i notice
1. R_HOME_DIR is hard coded e.g.
R_HOME_DIR=/usr/local/lib64/R
2. It ignores R_HOME_DIR
echo "WARNING: ignoring environment value of R_HOME"
3. R_SHARE_DIR, R_INCLUDE_DIR and R_DOC_DIR are also hard coded.
Is there a reason why these settings do not read the values from the
environment variables of the same name (assuming they exist) and
2009 Oct 15
0
let R and Rscript infer paths from their own location (PR#14007)
Full_Name: Philip R. Kensche
Version: 2.9.1
OS: Linux
Submission from: (NULL) (131.174.146.252)
Use case:
Run R scripts using bin/Rscript or "bin/R --no-restore --file=<script-file>
--args <args>" in a heterogeneous computing grid in which it is not possible to
predict the actual installation directory of the R binaries.
Problem:
The script bin/R and the wrapper
2008 Oct 01
0
Minimizing both AIC and df in model selection
Dear R users,
Suppose I have a set of 10 candidate models, and these all differ by a delta-AIC of 5.
Would it be sensible, then, to choose the best-fit model as the one that has *both* minimal AIC
*and* minimal number of d.f.?
Are there any references for such an approach?
Many thanks for your help!
Best wishes,
Christoph
--
Dr. rer.nat. Christoph Scherber
University of Goettingen
DNPW,
2009 Jan 07
1
Extracting degrees of freedom from a gnls object
Dear all,
How can I extract the total and residual d.f. from a gnls object?
I have tried str(summary(gnls.model)) and str(gnls.model) as well as gnls(), but couldn?t find the
entry in the resulting lists.
Many thanks!
Best wishes
Christoph
--
Dr. rer.nat. Christoph Scherber
University of Goettingen
DNPW, Agroecology
Waldweg 26
D-37073 Goettingen
Germany
phone +49 (0)551 39 8807
fax +49
2008 Oct 02
1
An AIC model selection question
Dear R users,
Assume I have three models with the following AIC values:
model AIC df
model1 -10 2
model2 -12 5
model3 -11 2
Obviously, model2 would be preferred, but it "wastes" 5 df compared to the other models.
Would it be allowed to select model3 instead, simply because it uses up less df and the delta-AIC
between model2 and model3 is just 1?
Many thanks for any
2008 Nov 03
2
standard errors for predict.nls?
Dear all,
Is there a way to retrieve standard errors from nls models? The help page tells me that arguments
such as se.fit are ignored...
Many thanks and best wishes
Christoph
--
Dr. rer.nat. Christoph Scherber
University of Goettingen
DNPW, Agroecology
Waldweg 26
D-37073 Goettingen
Germany
phone +49 (0)551 39 8807
fax +49 (0)551 39 8806
Homepage http://www.gwdg.de/~cscherb1
2012 Jul 20
1
Creating a pdf with layers?
Dear all,
Is it possible to create a pdf file with layers using the pdf() device in R?
Many thanks for your help!
Christoph
(using R 2.15.1 on Windows 7 64-Bit)
--
PD Dr Christoph Scherber
Georg-August University Goettingen
Department of Crop Science
Agroecology
Grisebachstrasse 6
D-37077 Goettingen
Germany
phone 0049 (0)551 39 8807
fax 0049 (0)551 39 8806
http://www.gwdg.de/~cscherb1
2006 Dec 07
2
help-links.sh not found by help.start() -- do I need to recompile?
Dear Rexperts,
after building R 2.4.0 from source in a temporary directory (*without*
installation), and subsequently moving the whole source/build tree to
another location, I have noticed that I had to change the variables
R_SHARE_DIR, R_INCLUDE_DIR, and R_DOC_DIR in the wrapper-script
/lib/R/bin/R as to reflect the current situation.
However, when I try to run the HTML help via
2006 Feb 02
2
RHOME
R-help --
I built R-2.2.1 in my own directory on a sun (solaris). Now I would like
the sysadmin to move the contents to /usr/local/lib and place the binary
in /usr/local/bin. No problem. However, the RHOME variable defaults to
the directory from which R was built so it is not usable by anyone but me
or ROOT. I would like to avoid building this again if possible. Any ideas?
Thanks,
Dan
2018 Dec 21
2
Bug report: R.home() cause package Rcpp failed executing sourceCpp, similar bug are labeled "BUG 16660" since 2016 and here I could provide a solution that tested in my laptop.
https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16660
Here is the bug, which R.home may generate a path contains a whitespace.
this will cause Rcpp failed executing sourceCpp
> sourceCpp("b:/2018-12-14/src/18020/MCMC.cpp")
Error in system(cmd, intern = !showOutput) : 'D:/Program' not found
Error in system(cmd, ignore.stderr = TRUE, intern = TRUE) :
2008 Jul 24
2
What is wrong with this contrast matrix?
Dear all,
I am fitting a multivariate linear model with 7 response variables and 1 explanatory variable.
The following matrix P:
P <- cbind(
c(1,-1,0,0,0,0,0),
c(2,2,2,2,2,-5,-5),
c(1,0,0,-1,0,0,0),
c(-2,-2,0,-2,2,2,2),
c(-2,1,0,1,0,0,0),
c(0,-1,0,1,0,0,0))
should consist of orthogonal elements (as can be shown using %*% on the individual columns).
However, when I use
2017 Apr 06
3
failure of make check-all
This run was done this AM on my linux box, and older 32 bit Dell optiplex (core 2 duo).
The failure message is at the very end. (It's due to be replaced in a couple of weeks.)
The sequence of steps was
svn up
tools/rsync-recommended
./configure
make
make check-all |& tee zzz
Terry T.
Result of ./config
R is now configured for i686-pc-linux-gnu
Source directory: .
2017 Apr 06
0
failure of make check-all
You may want to retry that after a make distclean, in case anything changed in the toolchain.
-pd
> On 6 Apr 2017, at 14:43 , Therneau, Terry M., Ph.D. <therneau at mayo.edu> wrote:
>
> This run was done this AM on my linux box, and older 32 bit Dell optiplex (core 2 duo). The failure message is at the very end. (It's due to be replaced in a couple of weeks.) The sequence