Displaying 20 results from an estimated 10000 matches similar to: "Re: A Problem I'm having with R"
1999 Jul 12
0
Re: S+ code
Dear Mr. Cleland, SEM-ueser, R-User, ...
there isn't s-plus or R (a GNU-free version of the programming language
S) code for structural equation modelling. I always wondered why. I
personally think the language S, with the implementations S+ and R, is a
good-perhaps the best-environment for statistical analyses. Why? It is
object orientated, logical, etc. For example: the code for least
2006 Jul 09
3
vignette("introduction") causes "Error in sprintf(" (PR#9069)
Full_Name: Chris Evans
Version: 2.3.1
OS: Windoze XP
Submission from: (NULL) (217.34.100.197)
If I give "vignette("introduction")" I get:
Error in sprintf(gettext(fmt, domain = domain), ...) :
use format %s for character objects
vignette() works for some other vignettes and "vignette()" gets me a list of
vignettes and shows three with the name
2010 Apr 23
1
Oddity with internet access and R 11.0 with Sophos firewall and Windoze XP - solved
Just in case anyone else hits this. I just installed R 11.0 alongside R
10.1.0 (off my D: drive in D:\R\... but I think that's irrelevent) and
all went well, I selected my nearest CRAN mirror (Bristol is the one I
like) and getting the selection list seemed to take ages though it did
come eventually. However, I then got an error message saying that R
couldn't make contact on port 80. I
2008 May 28
4
OT: batch processing XLS files to CSV
Dear R gurus, particularly those of generous M$ tolerance and diverse
gifts and knowledge!
I have an interesting challenge that I will end up crunching in R
involving service usage by patients. Maybe I can do all of it in R but
I can't see how yet.
My situation is that our IT Department can give me loads of XLS files
about patients one of our services have seen. The are one per patient
2006 Jun 19
1
how to do this sum?
Hi, Everybody!
I have a big table which named table_x, and all the elements in the table is very large!
Now I want to do the summay on the talbe_x[,3].
Unfornately, I can't get the right result!
And the R give the warning messages as follow:
> sum(table_x[,3])
>[1] NA
>Warning message:
>interger overflow in sum(.);please use sum(as.numeric(.))
(the original upper message is
2006 Jul 30
1
Power of a single sample binomial test
The only references to this I can find searching the archives are to a
student who asked in relation to his course work on a stats course.
Promise I'm not doing that!
I have a situation in which we want to test proportions against an
expected proportion, binom.test() is great. I'd like to do some post
hoc power tests (the x and n were beyond our control in the survey as
all we could set
2011 Sep 20
2
update.packages() as ordinary user, /usr/lib/R/site-library is not writable
I am moving from windoze on a Dell laptop to Debian but I seem to have
hit a snag for R. I managed to find the information to point an
/etc/apt/sources.list entry at my local CRAN repository and have
installed R 2.13.1 for squeeze from the Bristol UK repository.
I installed a number of the additional R packages using synaptic which
reported no errors but when I run my first
2002 May 29
4
Why is.integer() doesn't work with single values?
Hi all,
I don't understand the behavior of is.integer():
> x <- integer()
> is.integer(x)
[1] TRUE
> x <- 10
> is.integer(x)
[1] FALSE
> x <- 1:10
> is.integer(x)
[1] TRUE
Why is.interger() returns FALSE if x has only one element? And how can
someone check if x is an integer but contains only one value? (R 1.5.0
on Linux i386)
Thanks, Sven
2006 Jul 24
1
Plotting league tables/ caterpillar plots
Dear list,
I was wondering if there is a function to plot league tables, sometimes
also known as "caterpillar plots"?
A league table is conceptually very similar to a box plot. One difference
is that the inter-quartile ranges are not shown. If there isn't such a
function a first attempt for a "selfmade" plot would be to tell boxplot
not to plot boxes (sounds silly
2011 May 29
1
Oddity: I seem to have a variable in a dataframe that doesn't show in colnames() - can anyone advise?
I may be being dopey, I surely am, but I'm baffled by this. I've been
working, on and off for a few days in R version 2.13.0 (2011-04-13)
i386-pc-mingw32/i386 (32-bit) working it through ESS.
I've got a dataframe created a couple of days back, during the session:
> dim(AllDat)
[1] 27270 94
I came back this morning and misremembered my variables and thought I
had a variable
2012 May 15
2
max value
Here is an R problem I am struggling with:
My dataset is organized like this...
subject session variable_x variable_y
01 1 1 <interger values>
01 1 2
01 1 3
01 2 1
01 2 2
01
2007 May 13
2
Oddities upgrading from 2.4.1 to 2.5.0
I'm working on Windoze XP and have for some time installed R in D:\R and
upgraded my packages after installing the new version of R with a bit
of code I think I got from the list:
ip <- installed.packages(lib.loc = "d:\\R\\R-2.4.1\\library")
ip <- ip[ip[,1]!="base" ,1]
install.packages(ip)
This time around that's produced some warning grumbles:
Warning messages:
2006 Feb 06
5
lme4: Error in getResponseFormula(form) : "Form" must be a two sided formula
I'm sure I'm being stupid so flame away...
R2.2.1 on Windoze (boohoo) latest updates of packages.
I'm exploring a dataset (land) with three variables looking at an
narrowly unbalanced two group (GROUP) ANCOVA of a randomised
controlled trial analysing endpoint score (SFQ.LOCF.ENDPOINT) entering
the baseline score (SFQ.BASELINE) as covariate and the following work
fine:
> res.same
2005 Apr 25
3
How to transform the date format as "20050425"
Dear R user,
if the dates are in format as "20050425" i.e., Apr. 25 2004"
can you suggest an easy way to transfom it to standard form
as "2005-04-25" or "2004Apr25" or "2005/04/25" or any other
format which is R recognizable?
if there is no easy way to do that, can you let me know what
is the function in R performing similiar function as the
2009 Jul 18
2
Zinb for Non-interger data
Sorry bit of a Newbie question, and I promise I have searched the forum
already, but I'm getting a bit desperate!
I have over-dispersed, zero inflated data, with variance greater than the
mean, suggesting Zero-Inflated Negative Binomial - which I attempted in R
with the pscl package suggested on
http://www.ats.ucla.edu/stat/R/dae/zinbreg.htm
However my data is non-integer with some pesky
2006 Jul 24
5
change the name of file
Dear R Users,
Is it possible to make file names dependent on a changing variable?
For instance. I generate random numbers in a loop and at each iteration I
want data to write to file (I do not want to write everything in one file
using 'append'):
for (i in 1:50){
x<-matrix(runif(100, min=0,max=1),nrow=5,ncol=20)
Write(t(x),file="Data_i.txt",ncolumns=5,sep="\t")
}
2006 Aug 07
3
Finding points with equal probability between normal distributions
Dear mailing list,
For two normal distributions, e.g:
r1 =rnorm(20,5.2,2.1)
r2 =rnorm(20,4.2,1.1)
plot(density(r2), col="blue")
lines(density(r1), col="red")
Is there a way in R to compute/estimate the point(s) x where the density of the
two distributions cross (ie where x has equal probability of belonging to
either of the two distributions)?
Many Thanks
Eleni
2012 Aug 01
2
Problem updating packages in 2.15.1 on Ubuntu 12.04
The specific message is:
"Warning: package 'spatial' in library '/usr/lib/R/library' will not be
updated"
and the number of libraries about which that's the complaint is now
increasingly almost daily so clearly something is wrong.
I'm working on a laptop on which I do the recommended Ubuntu updates
daily. I done a standard installation of R 2.15.1 using
2006 Dec 05
5
if(){} else{}
Dear R-community,
my data set looks like 'mat' below.
Plant<-c(NA,1,1,1,NA,NA,NA,NA,NA,1);
Value1<-rnorm(1:10);
Value2<-rnorm(1:10);
mat<-cbind(Plant,Value1,Value2);
I receive data from two different sites.
One site is identified by an interger number, the other site has no data in
column Plant=NA.
My pb:
I'm trying to assign labels "A" or "B" to
2012 Oct 20
2
Help with programming a tricky algorithm
Hi All,
I'm a little stumped by the following problem. I've got a dataset with
the following structure:
idxy ix iy country (other variables)
1 1 1 c1 x1
2 1 2 c1 x2
3 1 3 c1 x3
. . . . .
3739 55 67 c7 x3739
3740 55 68 c7 x3740
where ix and