Displaying 20 results from an estimated 10000 matches similar to: "building mean/median over subgroups"
2003 Jun 12
3
Multiple imputation
Hi all,
I'm currently working with a dataset that has quite a few missing
values and after some investigation I figured that multiple imputation
is probably the best solution to handle the missing data in my case. I
found several references to functions in S-Plus that perform multiple
imputation (NORM, CAT, MIX, PAN). Does R have corresponding functions?
I searched the archives but was not
2003 Jun 11
1
COX PH models for event histories?
This is a question about the use of the Cox proportional hazards model to analyze event histories.
I am looking at the responses of sympathetic nervous system activity to a stimulus. The activity I observe is a burst that can only occur once per heart beat cycle (e.g., a binary count). Typically bursts occur in 60-80% of the heart cycles * sensory stimuli can modify these burst probabilities.
2003 Jul 31
1
help with tapply and weighted.mean
Hello!
I have data frame with 'weights' in one of the columns. I need to
compute weighted mean on another column other factor variable and
i am trying to:
res<-tapply(data$k,list(data$model),weighted.mean,w=data$w,na.rm=T)
and i get:
Warning messages:
1: longer object length
is not a multiple of shorter object length in: x * w
2: longer object length
is not a multiple of shorter
2002 Apr 29
1
Release of Design library; update of Hmisc library
The Design library has been fully ported to R except for Cox proportional hazards regression modeling (using Therneau's survival package) which will be available in about two weeks. It will take much longer to make all the example code executable, is it currently contains many examples for which data are not provided. Thanks to Xiao Gang Fan <xiao.gang.fan1 at libertysurf.fr> who
2002 Apr 29
1
Release of Design library; update of Hmisc library
The Design library has been fully ported to R except for Cox proportional hazards regression modeling (using Therneau's survival package) which will be available in about two weeks. It will take much longer to make all the example code executable, is it currently contains many examples for which data are not provided. Thanks to Xiao Gang Fan <xiao.gang.fan1 at libertysurf.fr> who
2002 Apr 26
4
SAS and R
Hello
I am sure this is elementary, but I can't figure it out.....
I am using SAS v8.2 and R 1.4.1 on a Windows platform.
I have a large (6 megabyte) file in .sd2 format. I want to import it into R.
If necessary, I can create a smaller file, as I don't need all the variables that are in this file
I downloaded the package foreign. I then tried to use PROC CPORT in SAS to create a
2002 Nov 23
1
No subject
Dear lister
Few months ago I posted a question about the drawing of a nomogram through R
routines. Any news?
thanks
_________________________________________________________________
http://join.msn.com/?page=features/junkmail
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send
2003 Jun 05
2
ridge regression
Hello R-user
I want to compute a multiple regression but I would to include a check for
collinearity of the variables. Therefore I would like to use a ridge
regression.
I tried lm.ridge() but I don't know yet how to get p-values (single Pr() and p
of the whole model) out of this model. Can anybody tell me how to get a
similar output like the summary(lm(...)) output? Or if there is
2002 Aug 22
1
combining output from several operations
Hi everyone,
I wonder if there's a patient soul out there who has a minute to look at
the following.
I've got a set of summary statistics I need to perform many times.
Naturally, I've looked at writing a function to automate the process as
much as possible. (These are the data I mentioned recently in my
question about weighted means.) I'm having trouble figuring out the
proper
2002 Apr 12
5
How to specify search order for require()
In a .First.lib I want to issue two require()s to insure that two other packages are loaded. But I want the package being loaded by .First.lib using library.dynam("mypackage",pkb,lib) to be higher in the search order than the two required packages, because I want to have a couple of functions from the two required packages overridden. What is the best way to do that? Thanks in advance
2002 May 14
2
R CMD check
I am unclear on whether to run R CMD check pgkname as user or as root on Linux. When running as user, after all the latex, html, and man files are created, I get the following error message:
Rdconv(): Couldn't open '': Permission denied
Has anyone dealt with that message?
When I run R CMD check a second time, all latex, html, etc. are recreated which takes quite a while. Is there
2003 Jun 22
1
Using weighted.mean() in aggregate()
Dear R users, I have a question on using weighted.mean() while aggregating a
data frame. I have a data frame with columns Sub, Length and Slope:
> x[1:5,]
Sub Length Slope
1 2 351.547 0.0025284969
2 2 343.738 0.0025859390
3 1 696.659 0.0015948968
4 2 5442.338 0.0026132544
5 1 209.483 0.0005304225
and I would like to calculate the weighted.mean of Slope, using Length
2002 Aug 04
5
Pseudo R^2 for logit - really naive question
I am using GLM to calculate logit models based on cross-sectional data. I
am now down to the hard work of making the results intelligible to very
average readers. Is there any way to calculate a psuedo analoque to the R^2
in standard linear regression for use as a purely descriptive statistic of
goodness of fit? Most of the readers of my report will be vaguely familiar
and more comfortable with
2002 May 23
1
case-cohort sampling
Hi.
I've a dataframe with about 46000 women with about 500 cases (cancers). I
want to define a case-cohort sampling scheme, matching by age and hospital
centre. Is there anyone who has already written a code for that? It should
be something similar to the stcacoh macro in Stata.
TIA,
Stefano
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list
2002 Jul 08
1
Imputations in R
I'm interested in finding a package in R to do multiple imputations, similar
to MICE in S-Plus. Does one exist?
Please email directly to me.
Thanks.
Linda Andrews
Social & Scientific Systems
(301) 628-3234
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info",
2002 Sep 14
1
missing data dataset needed
Not exactly an R question but..........
Does anyone have a dataset with a nice story behind it
that would be suitable for regression analysis but is
missing data in one or two covariates ? I am playing
around with different missing data routines and need a
nice dataset to play with.
Thanks,
Steve
__________________________________________________
Yahoo! News - Today's headlines
2002 Dec 02
1
advanced tabulation
i make me thoughts about a "advanced tabulation" package similar to
commercial software products like Quantum or Wincross.
Before i'm beginning to fight with coding - is in the mailing-List anybody
doing something similar in the past and have a good starting point
and/or suggestions for me ?
My purpose ist to define for a dataset headers (i.e. sex,age-groupes..)
which should
2002 Dec 18
2
acceptable p-level for scientific studies
Dear list members,
I have a statistical question, that doesn't belong to this list, and I
apologise for that in advance but I would appreciate your help very much.
Is there some convention for selecting the a level for significance testing
in scientific (e.g. chemical processes) studies? Most people use the 0.05
level but I could not find a reference to justify this. Why not 0.01 or 0.1?
2003 Feb 05
2
clustering and stratification
Hello,
Does R have any capabilities (or are there any add on packages) which
can do estimation of standard statistical models (means, regression,
logistic regression, etc) which take into account not only weights (e.g.
post-stratification weights) but also the sample design, such as
stratification and clustering information (to compute a robust taylor
linearized variance estimator, for
2003 Feb 10
1
Type of multi-valued variable
Hi,
I've read in the past a thead in the R discussion list
about the multi-valued type variable (what was called checklist).
At the moment Gregory had intention to add some general code
in his gregmisc package.
I'm wondering if there's some general code / packages available ?
A general class for taking account this type of variable
would be very useful in the domain of survey