Displaying 20 results from an estimated 3000 matches similar to: "suggestion for proportions"
2002 Jun 26
2
contrast matrix in package multcomp
Hi,
I've got a problem building a contrast matrix for the Dunnet contrast in
package multcopm. The following works fine:
> summary(simtest(adiff ~ trial))
Simultaneous tests: Dunnett contrasts
Data: adiff by trial
Contrast matrix:
trial1 trial2 trial3 trial4 trial5
trial2-trial1 -1 1 0 0 0
trial3-trial1 -1 0 1 0 0
2010 Sep 19
2
working with eval and environments
I'm trying to get the following section of code to work, I think the problem
is being caused by the assignment of data to the lm function not evaluating
to "train" in the parent environment but I can't seem to figure out how to
do this.
fitmodel <- function(trial,data)
{
wrap.lm <- function(formula,data,...) { cat("in wrap lm",NROW(data),"\n");
2010 Nov 22
4
Rexcel
Hello I am new to RExcel and I would like to run a source code form the
excel worksheet. I would like to run the following code
source("C:\\Quantil Aplicativos\\Genercauca\\BackwardSelectionNC.r")
from the excel wroksheet. Does anybody know how to do this?
Thank you
Felipe Parra
[[alternative HTML version deleted]]
2011 Jun 09
1
package.skeleton() does not create 'data' folder
Hi again, yesterday I mailed this query however I could not see this
on the mail list. Therefore, I am reposting it again.
I was using package.skeleton() function to create the
skeleton of my package in windows. Here is my attempt:
rm(list = ls())
setwd("F:/R_PackageBuild")
package.skeleton("trial1", namespace = TRUE, code_files =
"F:/R_PackageBuild/trial.r")
In
2002 Apr 17
1
concat
i have a function that returns a list containing a variety of variable types
i am trying to run the function multiple times and return the output into a
variable with a semi-consistent naming pattern
i.e., for ten trials i want to return the list into variables
trial1,trial2,...trial10
is there a generic way to get this to happen
i have a similar process that does the same thing to an external
2011 Sep 21
3
Reading data in lisp format
Hi,
I am trying to read the "credit.lisp" file of the Japanese credit database in UCI repository, but it is in lisp format which I do not know how to read. I have not found how to do that in the foreign library
http://archive.ics.uci.edu/ml/datasets/Japanese+Credit+Screening <http://archive.ics.uci.edu/ml/datasets/Japanese+Credit+Screening>
Could anyone help me?
Best
2010 Sep 20
3
Depletion of small p values upon iterative testing of identical normal distributions
Dear all,
I'm performing a t-test on two normal distributions with identical mean &
standard deviation, and repeating this tests a very large number of times to
describe an representative p value distribution in a null case. As a part of
this, the program bins these values in 10 evenly distributed bins between 0
and 1 and reports the number of observations in each bin. What I have
noticed
2010 Nov 17
2
statistical test for comparison of two classifications (nominal)
Dear all,
I am having a hard time to figure out a suitable test for the match
between two nominal classifications of the same set of data.
I have used hierarchical clustering with multiple methods (ward,
k-means,...) to classify my dat into a set number of classesa, and I
would like to compare the resulting automated classification with the
actual - objective benchmark one.
So in principle I
2011 Mar 02
2
problem with glm(family=binomial) when some levels have only 0 proportion values
Hello everybody
I want to compare the proportions of germinated seeds (seed batches of
size 10) of three plant types (1,2,3) with a glm with binomial data
(following the method in Crawley: Statistics,an introduction using R,
p.247).
The problem seems to be that in two plant types (2,3) all plants have
proportions = 0.
I give you my data and the model I'm running:
success failure
2012 Jan 05
1
Fwd: WHO Anthro growth curve macros and R&In-Reply-To=<CAAOCNNZawGtKkWpgFMYADSyxWGTeWEDxqVVHv7=Azo=1G+H9gg@mail.gmail.com>
Dear Gustaf,
I wish you a happy new year!
I am a PhD Staff at LSHTM and I have been trying to use WHO anthro macros in R with the file you posted on internet but when I double check the WHZ, HAZ, WAZ output with output from ENA or STATA, it differs slightly. Do you have any idea why that might be the case?
Many thanks
Severine
2012 Jan 16
3
boxplot with diamond shape
Hi,
I haven't found in R a possibility to draw a boxplot with a diamond
shape (means and CI).
Does anyone know how to plot it ?
thanks,
2011 Mar 03
2
Ordering several histograms
Hallo everyone,
I want to evaluate the change of the distribution for several size classes.
How can i order these separate histograms with the same y-axis along a
common x-axis according to their size classes. It would like it to look a
bit like this
(http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=109) without
the quantile regression. I can produce the separate histograms, but have
2013 Jan 08
2
plot residuals per factor
Dear R-users,
I want to plot residuals vs fitted for multiple groups with ggplot2.
I try this code, but unsuccessful.
library("plyr")
models<-dlply(dat1,"d",function(df)
mod<-lm(y~x,data=df)
ggplot(models,aes(.fitted,.resid), color=factor(d))+
geom_hline(yintercept=0,col="white",size=2)+
geom_point()+
geom_smooth(se=F)
--
---
Catalin-Constantin ROIBU
2010 May 24
2
How to set parameters constraints in a function?
Dear R list,
I have a function specifying my log-likelihood, and now I need to set the
constraint that *alpha > kappa*, could anyone help me with setting this in
my function?
the function is defined as follows:
mll <- function(param){
n <- length(x)
psi <- numeric(n)
psi[1] <- 1.0
a0 <- exp(param[1]); a1 <-exp(param[2]); b1 <- exp(param[3]); *alpha *<-
2007 Mar 22
3
Cohen's Kappa
Hi,
im little bit confused about Cohen's Kappa and i should be look into the
Kappa function code. Is the easy formula really wrong?
kappa=agreement-chance/(1-chance)
many thanks
christian
###############################################################################
true-negativ:7445
false-positive:3410
false-negativ:347
true-positiv:772
classification-aggrement:68,6%
2012 Oct 16
4
how to extract from list
Hi all,
I have a list of 20000 data, and the list look like below. I wonder what is
the simplest way to extract 'kappa' value (or 'xi' or 'alpha' for the
matter) from each of the data. How can I simply code it without having to
change the list to a dataframe first? Many thanks!
$X19997
xi alpha kappa
784.7718640 165.4065141 -0.2709599
$X19998
2012 May 31
3
RScript.exe and map directory issue
Hi,
I'm trying to run on Windows 7 a scriptfile with Rscript.exe from within
Excel 2010 with the following code:
Call Shell(rPath & "\Rscript.exe C:\Work\Latest\_Test.R", vbHide)
The good news is: the above code works perfectly, but ...
If I add white spaces to my map directory, like:
Call Shell(rPath & "\Rscript.exe C:\Work\Latest 1\_Test.R", vbHide)
In the
2006 Apr 28
1
Where do I find Cohen´s kappa???
Hello,
I?m looking for a way to measure the goodness of fit of my model with Cohen?s Kappa (scaling between 0 and 1).
The kappa function does not give the results I?m looking for. Heres the code:
z<-glm(x~y,binomial)
kappa(z, exact = T)
Does anyone know more?
many thanks
Christian
--
_______________________________________________
Search for businesses by name, location, or phone number.
2012 Feb 10
4
function arrows.circular not working
I have started using the circular package but it is not recognizing the function arrows.circular. I attempted to use the example provided in the circular manual. Here is the example code using the circular package:
plot(rvonmises(10, circular(0), kappa=1))
arrows.circular(rvonmises(10, circular(0), kappa=1))
arrows.circular(rvonmises(10, circular(0), kappa=1), y=runif(10), col=2)
2011 Jun 22
1
caret's Kappa for categorical resampling
Hello,
When evaluating different learning methods for a categorization problem with
the (really useful!) caret package, I'm getting confusing results from the
Kappa computation. The data is about 20,000 rows and a few dozen columns,
and the categories are quite asymmetrical, 4.1% in one category and 95.9% in
the other. When I train a ctree model as:
model <- train(dat.dts,