Displaying 20 results from an estimated 6000 matches similar to: "Help on indicator variables"
2013 Feb 26
3
Merging value labels into indicator variable.
I have a vaiable named NAM having value : 1,2,3,4,5,6,7,8,9. I want to
make an indicator variable that will take value 1 if NAM=7 or NAM=8 or
NAM=9. How can I do that?
I usually do: Var001<- ifelse(NAM==7,1,0) for the simplest case.
[[alternative HTML version deleted]]
2013 Feb 23
5
Selecting First Incidence from Longitudinal Data
I have a longitudinal competing risk data of the form:
ID COMPL SEX HEREDITY
1 0 1 2
1 0 1 2
1 3 1 2
2 0 0 1
2 1 0 1
2 2 0 1
2 2 0 1
3 0 0 1
3 0 0 1
3 0 0 1
3 0 0 1
3 2 0 1
4 0 1 2
4 0 1
2013 Dec 12
2
method default for hclust function
I could not figure out what was the default when I ran hclust() without specifying the method.
For example:
I just have a code like:
hclust(dist(data))
Any input would be appreciated:)
[[alternative HTML version deleted]]
2013 Dec 12
1
Heatmap, and heatmap.2 gave different figures for the same dataset
I have a huge dataset(15k X 18) and tried to use the heatmap in R to examine the patterns. However, I found that heatmap and heatmap.2 gave me completely different outputs.
Here are the codes:
------------
> dim(as.matrix(data.dcpm))
[1] 15462??? 18
>
> heatmap(as.matrix(data.dcpm), col=topo.colors(100))
> heatmap.2(as.matrix(data.dcpm), col=topo.colors(100), key=TRUE,
2013 Feb 05
1
Calculating Cumulative Incidence Function
Hello,
I have a problem regarding calculation of Cumulative Incidence Function.
The event of interest is failure of bone-marrow transplantation, which may
occur due to relapse or death in remission. The data set that I have
consists of- lifetime variable, two indicator variables-one for relapse and
one for death in remission, and the other variables are donor type (having
3 categories), disease
2013 Apr 09
2
R crash
I have a generalized linear model to solve. I used package "geepack". When
I use the correlation structure "unstructured", I get a messeage that- R
GUI front-end has stopped working. Why this happens? What is the solution?
The r codes are as follows:
a<-read.table("d:/bmt.txt",header=T")
2008 Aug 26
2
svymeans question
I have the following code which produces the output below it
clus1 <- svydesign(ids = ~schid, data = lower_dat)
items <- as.formula(paste(" ~ ", paste(lset, collapse= "+")))
rr1 <- svymean(items, clus1, deff='replace', na.rm=TRUE)
> rr1
mean SE DEff
W525209 0.719748 0.015606 2.4932
W525223 0.508228 0.027570 6.2802
W525035 0.827202
2009 May 06
1
Hmisc package: deff() command's formula for the design effect
Hello,
I have been using the Hmisc package's deff() command for some research with
clustered data. I noticed that the formula to calculate the design effect
seems a bit different. The formula for the DE is:
1 + rho*(B - 1)
In most resources I have seen the formula for B to simply be the average
number of observations in a cluster: n/k if n is the total sample size and k
is the number of
2012 Feb 13
1
survey package svystat objects from predict()
Hello,
I'm running R 2.14.1 on OS X (x86_64-apple-darwin9.8.0/x86_64 (64-bit)), with version 3.28 of Thomas Lumley's survey package. I was using predict() from svyglm(). E.g.:
data(api)
dstrat<-svydesign(id=~1,strata=~stype, weights=~pw, data=apistrat, fpc=~fpc)
out <- svyglm(sch.wide~ell+mobility, design=dstrat,
family=quasibinomial())
pred.df <-
2013 Mar 20
3
Introduction to R. Any such documentation in Vietnamese?
Dear fellow users
Are there any Vietnamese language resources for beginners of R? If so, I would be interested in hearing from people who have had experience with them and which are better (if there is more than one). I am involved with an aid project in Vietnam, and would like to move the scientists involved from using Excel for 'analysis' to R.
Thanks ....
Peter Alspach
The
2008 Aug 15
2
Design-consistent variance estimate
Dear List:
I am working to understand some differences between the results of the
svymean() function in the survey package and from code I have written
myself. The results from svymean() also agree with results I get from
SAS proc surveymeans, so, this suggests I am misunderstanding something.
I am never comfortable with "I did what the software" does mentality, so
I am working to
2010 Jun 21
1
[LLVMdev] Win32 COFF Support
On Mon, Jun 21, 2010 at 9:37 AM, Aaron Gray <aaronngray.lists at gmail.com> wrote:
>
> Whats going on with having both write_uint32_le()
> in WinCOFFObjectWriter::DefineSection() and WriteLE32() in
> WinCOFFObjectWriter::WriteFileHeader() ?
> Aaron
Thanks, missed that one. Nathan used write_uint32_le in WinCOFF.h, and
I guess accidentally used it in WinCOFFObjectWriter.cpp.
2005 Apr 28
1
make installworld, permissions and labels
Just a quick question,
My system is quite heavily customised with regard to permissions
and MAC labels on system binaries. Is there any way to stop
make installworld resetting all my customisation? At the moment
I have a set of scripts to set permissions on everything but that's
not exactly ideal.
Mark
--
PGP: http://www.darklogik.org/pub/pgp/pgp.txt
B776 43DC 8A5D EAF9 2126 9A67 A7DA 390F
2013 Mar 05
0
Samba 4, dynamic DNS, Kerberos
Dynamic DNS updating is failing (which is bizarre, because I could have
sworn I'd had it working before). Help?
Setup: Samba 4 DC running bind 9.9.2, Samba 3.6.3 member
The output of "net -d10 ads join" is attached, compressed.
Interesting portions of named.conf:
options {
(no allow-updates section)
...
tkey-gssapi-keytab "/var/lib/samba/private/dns.keytab";
2012 Dec 13
5
[PATCH special] vtpm fix cmake dependency
Ian, this one is special just for you. I''m sending it as an attachment
because my email client will mangle it.
This patch will remove the cmake dependency from xen prior to autoconf
stubdom
This patch applies ontop of [VTPM v7 3/8] vtpm/vtpmmgr and required libs
to stubdom/Makefile
You can apply it to your tree by doing the following:
git rebase -i <VTPM v7 3/8 revision>
2009 Apr 28
2
correlation coefficient
Hello,
I would like to get a correlation coefficient (R-squared) for my model.
I don't know how to calculate it in R.
What I've done so far:
x<-8.5:32.5 #Vektor x
y<-c(NA ,5.88 , 6.95 , 7.2 , 7.66 , 8.02 , 8.44 , 9.06, 9.65, 10.22 ,
10.63 ,11.06, 11.37, 11.91 ,12.28, 12.69 ,13.07 , 13.5 , 13.3 ,14.14 , NA , NA , NA , NA , NA) #Vektor y
2008 Jan 28
2
New package: gRain - gRAphical Independence Networks
Dear useRs
I have uploaded a new package, gRain, for propability propagation in graphical independence networks; sometimes also called probabilistic expertsystems and Bayesian networks.
Regards
S?ren H?jsgaard
_______________________________________________
R-packages mailing list
R-packages at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-packages
2008 Jan 28
2
New package: gRain - gRAphical Independence Networks
Dear useRs
I have uploaded a new package, gRain, for propability propagation in graphical independence networks; sometimes also called probabilistic expertsystems and Bayesian networks.
Regards
S?ren H?jsgaard
_______________________________________________
R-packages mailing list
R-packages at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-packages
2004 Feb 11
6
AGREP
Hi all, I have two questions
1 - I have the version 1.4.1 of R, and it doesn't have the 'agrep'
function in the base library. Is there a way to make this funcion
avaliable in R 1.4.1? I mean, how to 'copy' it from R 1.8.1 and 'paste'
it in R 1.4.1?
2 - The AGREP function doesn't give me the Levenshtein distance (edit
distance). Is there a function in R that does
2005 Apr 13
2
IMC
Hi,
I'm trying to setup IMC (idealx management console) to give our
windows admins some nice toy to play with, but I have problem to make it
work. I can log in after I authentificate as Administrator, but, I can't
modify any LDAP entries, as that fails with unsufficient privileges due
to the IMC trying to bind to LDAP as logged in user (Administrator),
instead of something like