Displaying 20 results from an estimated 3000 matches similar to: "shell command"
1999 Jun 18
1
R INSTALL -l
The FAQ says in
[5.2 How can add-on packages be installed?]
to install a package to a private tree, use
[$ R INSTALL -l lib pkgdir_1 ... pkgdir_n]
where lib gives the path to the library tree to install to.
which, for me, returns
Package '-l' does not exist. Has there been a change?
Thank you
Ross
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
|Ross
2009 May 15
1
Plotting question re. cuminc
Hello everyone,
(This is my second question posted today on the R list).
I am carrying out a competing risks analysis using the cuminc function...this takes the form:
cuminc(ftime,fstatus,group)
In my study, fstatus has 3 different causes of failure (1,2,3) there are also censored cases (0). "group" has two levels (0 and 1).
I therefore have 6 different cumulative incidence curves:
2004 Apr 06
1
Storing p-values from a glm
Hi,
for example one could do it this way:
v <- summary(fit)$coefficients[,4]
the coefficient attribute is a matrix, and with the "4" you refere to the
pvalue (at least in lm - don't know if summary(glm) produces sligthely
different output).
to skip the intercept (1st row): v <- summary(glmfit)$coefficients[-1,4]
hope this helps,
Arne
--
Arne Muller, Ph.D.
2003 Nov 27
1
lagsarlm - using mixed explanatory variables (spdep package)
Hello
I'm very new to R (which is excellent), so apologies if this has already
been raised. In the spdep package, I'm trying to undertake an
autoregressive mixed model using the lagsarlm function. This is working
fine, but there does not appear to be a method of including an explanatory
variable without it automatically being included as a lagged term. I'm
after something along the
2005 Nov 29
3
Reclassifying values within a vector to several other values
Dear List
Apologies for such a simple question:
I have a vector of 738 elements, coded with values between 1 and 16 (but
not containing 7, 10, 11 or 13) and wish to recode value 14 to 1, 4 to 2, 1
to 3, 2 to 4 and all other values to 5. I've been trying to use the
replace function (in base) and %in%, but without success.
Many thanks
Roy
2010 May 25
1
Centos 5.4 to 5.5 fails to update lvm2 (needs newer device-mapper?)
Updating from centos 5.4 to 5.5 using an update rather than a rebuild, I get the following complaint from yum:-
lvm2-2.02.56-8.el5_5.1.x86_64 from setup has depsolving problems
--> Missing Dependency: device-mapper >= 1.02.39-1 is needed by package lvm2-2.02.56-8.el5_5.1.x86_64 (setup)
This is from a local mirror, so checking the upstream feed in case the mirroring is incomplete I see
2006 Sep 29
1
Helmert contrasts for repeated measures and split-plot expts
Dear R-help
I have two separate experiments, one a repeated-measures design, the other
a split-plot. In a standard ANOVA I have usually undertaken a
multiple-comparison test on a significant factor with e.g TukeyHSD, but as
I understand it such a test is inappropriate for repeated measures or
split-plot designs.
Is it therefore sensible to use Helmert contrasts for either of these
designs?
2005 Nov 16
1
Problem with R.2.2 "No rule to make target `d:/prog/r/rw2011/include/R.h"
Dear R-devlopers,
I removed yesterday the R.2.1. installation from windows NT laptop and I
am getting the following error when building a pacage with R.2.2
---------- Making package msbase ------------
adding build stamp to DESCRIPTION
making DLL ...
make[3]: *** No rule to make target `d:/prog/r/rw2011/include/R.h',
needed by `llogic.o'. Stop.
....
I have no idea from where
2011 Feb 16
1
read.table - reading text variables as text
Hi
I'm reading a CSV file using read.table, and it keeps importing a text
variable as a factor. To overcome this, I've used the as.is command
referring to the variable in question (called "stim")
data<-read.table(file.choose(), header=T, sep=",", as.is = "stim")
However, "stim" is still imported as a factor. I notice there are other
read.table
2009 Aug 25
0
Pec function in R
Hello everyone,
These are some questions about the 'pec' function in R. These questions deal with prediction error curves and their derivation. Prediction error curves are documented in, for example, "Efron-type measures of prediction error for survival analysis" by Gerds and Schumacher.
I have detailed some syntax that I have used at the bottom of this email. The associated
2005 Mar 21
2
Violin plot for discrete variables.
Dear Rgurus,
To my knowledge the best way to visualize the distribution of a discrete
variable X is
plot(table(X))
The problem which I have is the following. I have to discrete variables
X and Y which distribution I would like to compare. To overlay the
distribution of Y with lines(table(Y)) gives not satisfying results.
This is the same in case of using density or histogram.
Hence, I am
2006 Feb 20
1
Nested AIC
Greetings,
I have recently come into some confusion over weather or not AIC
results for comparing among models requires that they be nested.
Reading Burnham & Anderson (2002) they are explicit that nested
models are not required, but other respected statisticians have
suggested that nesting is a pre-requisite for comparison. Could
anyone who feels strongly regarding either position
2009 Nov 15
1
Problem building package for R 2.10.0 on Mac OS X
Hi
I have submitted a package (rioja) to CRAN. It checks OK for all R versions and OS's except r-release-macosx-ix86 where it fails when checking the examples. Specifically, it fails because R can't find the package vegan which is needed in a function. Here is the snippet from the check results:
### Begin snippet
checking examples ... ERROR
Running examples in 'rioja-Ex.R'
2011 Feb 28
1
Creating new variables. How do you get them into a data frame?
Hi
I'm an R newbie. I can't seem to add new variables to data frames. Here are
the stages
(1) I import the data using read.csv.
(2) I fix it using fix(data)
(3) I create a new variable using
spos<-tagPOS(stim,language="en",model=NULL,tagdict=NULL).
(tagPOS is a function in the OpenNLP toolkit, which tags a string for part
of speech. "stim" is a variable in the
2012 May 18
1
Natural Language Toolkit for R - is it still there?
Hi
I used the package Natural Language Toolkit about a year ago to parse
strings into parts of speech. However, I cannot find it on CRAN.
Has it been withdrawn?
Thanks
Nick
--
Lecturer in Speech and Language Pathology
Room 1.9
King George VI Building
Queen Victoria Road
University of Newcastle-upon Tyne
NE1 7RU
0191 222 8720
[[alternative HTML version deleted]]
2011 Oct 05
4
SPlus to R
I'm trying to convert an S-Plus program to R. Since I'm a SAS programmer I'm not facile is either S-Plus or R, so I need some help. All I did was convert the underscores in S-Plus to the assignment operator <-. Here are the first few lines of the S-Plus file:
sshc _ function(rc, nc, d, method, alpha=0.05, power=0.8,
tol=0.01, tol1=.0001, tol2=.005, cc=c(.1,2),
2007 Nov 26
1
Unweighted meta-analysis
Hello
I'm very much a beginner on meta-analysis, so apologies if this is a
trivial posting. I've been sent a set data from separate experimental
studies, Treatment and Control, but no measure of the variance of effect
sizes, numbers of replicates etc. Instead, for each study, all I have
is the mean value for the treatment and control (but not the SD). As
far as I can tell, this forces
1999 Mar 02
2
Problem with Rterm.exe
I have downloaded rw0632 (Windows Version) from the CRAN at ETH Zuerich.
Im working with NT4.0 Service Pack 4. I can start without any problems
the GUI program Rgui.exe.
But by using Rterm.exe (batch mode or with ESS respectivelly) I always
get an error "the instruction at "0x10018ee8" referenced memory at
""......."
Any ideas what is wrong?
Best Regards
Markus
2005 Sep 13
2
Translating lme model call to lme4
I would appreciate help translating the following lme model to an lmer
function.
lme(lognrms ~ Group*Rotation*muscle*side*support*arms,
random=~1|Subject/Stratum2/rep, data=Data)
Many thanks
Ross Darnell
r.darnell at uq.edu.au
2007 Oct 17
2
Need help with function that includes 2 summation
I am relatively new to R, so this may be a much simpler question than it
seems to me. I am trying to create a function that includes two
summations, and can't figure out how. I am attaching the equation as a
pdf file. This function will then be optimized over a chosen range of
values, but right now I just need help with the function. Thank you.
Zack Darnell
Duke University
--
Zack