Displaying 20 results from an estimated 1000 matches similar to: "newbie question"
2000 Oct 31
2
log-linear
Hi,
It appears that there is no package for estimating log linear models (L.
Goodman's family) for data in the form of frequency tables. Am I wrong?
Thanks
Marwan Khawaja
Research Coordinator
Fafo, Institute for Applied Social Science
N-0608 Oslo, Norway
Tel +47 22 08 86 00
+47 22 08 86 94 (Direct)
+47 22 67 33 05 (Private)
Fax +47 22 08 87 00
2001 Mar 22
2
Two-argument functions in tapply()
Hello to all.
My question is very simple...
Let's say we have a data frame with three variables (columns): X, W and F. X
is a numeric variable (e.g. like income) F is a factor (e.g. with 2 levels)
and W is a case weight (data are from household sample but an individual was
interviewed, weights are functions of number of persons in the house hold).
I wanted to compute a means of X weighted
2008 Jan 22
1
deparse, substitute and S4 generics
Hello everyone,
I encountered the following confusing behavior of 'deparse' and
'substitute' while programming with S4 classes (see example below). It
seems like the presence of '...' argument in the definition of the
generic generates the problem. I have no clue why, can anyone explain
that to me? Are there any "workarounds"?
Thanks a lot for your time!
2007 Jul 25
2
initalizing and checking validity of S4 classes
Dear useRs and wizaRds,
I am currently developing a set of functions using S4 classes. On the way I encountered the problem exemplified with the code below. For some reason the 'validity' method does not seem to work, i.e. does not check for errors in the specification of the slots of the defined class. Any hints?
My understanding of the whole S4 system was that validity checks are made
2006 Jun 23
2
problem with hist() for 'times' objects from 'chron' package
Hello dear useRs and wizaRds,
I encountered the following problem using the hist() method for the
'times' classes
from package 'chron'. You should be able to recreate it using the code:
library(chron)
# pasted from chron help file (?chron)
dts <- dates(c("02/27/92", "02/27/92", "01/14/92", "02/28/92",
"02/01/92"))
class(dts)
2002 Nov 14
1
analysis of data with observation weights
Dear R-users,
Recently I had to analyze a dataset from household survey. The sample design
ensured, that each household in the population has the same probability of being
sampled. However the data were gathered from only one adult individual in each
household, who was randomly choosen by an interviewer (via "Kish grid"). To
equalize the probabilities for each INDIVIDUAL a casewise
2007 Jan 25
1
using non-ASCII strings in R packages
Hello dear useRs and wizaRds,
I am currently developing a package that will enable to use administrative map of Poland in R plots. Among other things I wanted to include region names in proper Polish language so that they can be used in creating graphics etc. I am working on Windows and when I build the package it is complaining about non-ASCII characters R code files.
I was wondering what would
2009 May 18
1
S4 method dispatch and namespaces: why is default method selected
Hi,
I ran into the following peculiarity involving S4 method dispatch and
namespaces.
I develop a package which have a namespace and which depends on 'pixmap'
package, which itself does not have a namespace.
Now, in my package I have a class which has a slot for objects from
class "pixmap" and I
want to have a "plot" method for this new class. Not to clutter the
2001 Mar 02
0
[OT] correspondence analysis w/ non-mutually-exclusive ca tegories
Andy,
Take a look at Greenacre, Theory and Applications of Correspondence
Analysis. He has many example of dealing with all sorts of data.
Basically, the technique is relevant for 2-way tables -- MCA is an
extenstion. It is not clear in your example whether CA is really
appropriate -- you want to make an observation (if at all possible) fall in
one cell, treating the others layers as
2011 Oct 05
1
Directory listings not working
Hello,
I just finished installing gluster on two machines in server mode in EC2.
I have mounted it via fuse on one of the boxes. Here is my volume info:
# gluster volume info
Volume Name: fast
Type: Stripe
Status: Started
Number of Bricks: 2
Transport-type: tcp
Bricks:
Brick1: server1:/data2
Brick2: server2:/data
All of this works great, and I can write files at a fairly high throughput.
2002 Mar 15
1
Non-english fonts in plots
Hello to all
I've got a question concerning use of fonts while making plots in R. I
wanted to know if it is possible for me to use polish letters in functions
like text() title() etc. Looked up characters, which can be obtained via
Hershey(), but there are none of them.
I made plots using postscript(), pdf() or png() device to export them to
MSWord or LaTeX.
Windows ANSI CE #dec codes of
2002 Oct 02
4
T-Distribution
Dear sir,
I would ask if there are in R some code to generate a random sample
from a mvariate student distribution like that one wich generate the
multivariate normal one i mean( rmvnorm(n, mu, sigma)
Second question : if R can plot density 3Dcurve I don't mean de
histogram but de hole density function(normal for example).
I use a windows version of The R software
Thank you in advance
wiyh
2007 Jun 02
3
Updating R version
A quick question. I am trying to understand how I could move the installed
packages in my R 2.3 version to the newly installed R 2.5 version, without
having to install all the packages again. I copied the files under the old
library subdirectory to the new library subdirectory. But still the newer
version is not recognizing the packages that were copied over.
Thanks.
[[alternative HTML version
2002 Aug 05
1
Dotplot
Hello,
I am using Dotplot (from Frank Harrell's HMISC library) to make a graph of rates
with confidence intervals but I get a 'black' background -- nice but not on a
printed document:
>Dotplot(group~Cbind(rate,lower,upper)|mortality,data=mort,ylab=' ')
How do I change the background (and other) collors in Dotplot?
Thanks for you help.
Marwan Khawaja
platform
2002 Nov 15
1
analysing data with case weights: rejoinder
Hello,
Based on replies (which I'm gratefull for) I guess the only solution
is to create a package, that will contain function to build
lm()-like linear models, and allow weighting cases (as I described
two days ago).
This would also alow buliding those models for data in aggregated
form without a need for using e.g. expand$grid().
Thank you again for replies.
2002 May 02
1
design/HMISC packages
Hello,
No luck in loading Frank Harrell's packages -- did anyone encountered the
same problem?
R : Copyright 2002, The R Development Core Team
Version 1.4.1 (2002-01-30)
> library(design, T)
Design library by Frank E Harrell Jr, Version of Wed Apr 17 17:07:30 EDT
2002
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shared library
2007 Mar 13
4
'substitute' question
# I use this code to label a graph with the R2:
# graph
x <- rnorm(100)
y <- x + rnorm(100)
lm1 <- lm(y~x)
plot(x,y)
# label
R2text <- substitute(paste(R^2," = ",r2),list(r2=r2))
text(1,-3,R2text, col="red")
# i have modified this a bit, so that i have a vector with other labels,
each of which
# will be labelled on the graph. Example:
texts <- c("And the
2007 Mar 08
1
sink with R-code
I have the same question that Eusebio had:
Is there a function similar to "sink" that redirect also R code to a
file that
is:
sink("R001")
x <- c(2,-6,-4,8,5,4,1,3,4,-9,0,1)
A <- matrix(x, ncol=3)
A
A.prima <- t(A)
A.prima
dim(A)
dim(A.prima)
sink()
create a file "R001" with contents:
------------------------------------------
[,1] [,2] [,3]
[1,]
2007 Mar 08
1
Searching and deleting elements of list
Hi,
I have a problem. Please, look at example and try to help me!!
> A<-c("aaa","bbb","ccc","ddd","eee")
> B<-c("vvv","ooo","aaa","eee","zzz","bbb")
> C<-c("sss","jjj","ppp","ddd")
> D<-c("bbb","ccc")
2003 Apr 16
2
barplot2
Hello,
I get a nice looking barplot using the barplot2 function in the gregmisc
package:
body2 <- barplot2(hh3, beside = TRUE,
col = c("mistyrose", "lightcyan"),
....
cex.names = 1.0, plot.ci = TRUE, ci.l = cil, ci.u = ciu,
plot.grid = TRUE)
box()
However, obviously I lose the collors when converting from ps to a pdf
(outside of R)