Displaying 20 results from an estimated 6000 matches similar to: "Two questions, first about contingency tables, and second about table () and data.frame (), from a visually impaired user."
2010 Feb 14
4
Problem in performing goodness of fit test in R.
I am trying to perform goodness of fit test using R. I am using this website http://wiener.math.csi.cuny.edu/Statistics/R/simpleR/stat013.html for help. However, I am unable to carry out the test successfully. My code follows. It is taken from the website just mentioned.
freq=c(22,21,22,27,22,36) # frequencies obtained after rolling the dice 150 times.
prob=c(1,1,1,1,1,1)/6 # specify expected
2018 Feb 23
2
How to Save the residuals of an LM object greater or less than a certin value to an R object?
Dear list members,
I want to save residuals above or less than a certain value to an R
object. I have performed a multiple linear regression, and now I want
to find out which cases have a residual of above + 2.5 and ? 2.5.
Below I provide the R commands I have used.
Reg<-lm(a~b+c+d+e+f) # perform multiple regression with a as the
dependent variable.
Residuals<-residuals(reg) # store
2018 Mar 06
5
couple of how-to-do it in R questions regarding corelations and mean and SD of likert items
Dear list, I have the following how-to-do it in R, questions.
Suppose I have ten independent variables, and one dependent variable.
I want to find the Pearson correlation of all the IVs with the DV, but
not the correlation between the IVs.
What I know so far, about R, that I have to type the cor () function
ten times, each time requesting for a correlation between one IV and
the DV.
I was
2010 May 20
2
Reading results of commands in Microsoft Word typed in the terminal window, A question from a Blind R user.
Hi all,
I would like to read the results of the commands type in the terminal window in Microsoft Word. As a blind user my options are somewhat limited and are time consuming if I want to see the results of the commands that I have type earlier. for example if my first two commands were
x<-c(1,2,3,4,5)
mean(x)
and I have typed ten more commands after the first two commands it is not easy
2018 Feb 23
0
How to Save the residuals of an LM object greater or less than a certin value to an R object?
Residuals are stored as a numeric vector. The R software comes with a document "Introduction to R" that discusses basic math functions and logical operators that can create logical vectors:
abs( stdresiduals ) > 2.5
It also discusses indexing using logical vectors:
stdresiduals[ abs( stdresiduals ) > 2.5 ]
Note that in most cases it is worth going the extra step of making your
2018 Feb 26
1
questions about performing Robust multiple regression using bootstrap
Dear list,
I am slightly confused about how I can do the following in R.
I want to perform robust multiple regression. I?ve used the Boot
function in CAR package to find confidence intervals and standard
errors. Inadition to these, I want to find the robust estimates for
the F test and r-square. Finally, I would like to know the
significance levels of bootstrap results.
Below I explain
2018 Mar 06
0
couple of how-to-do it in R questions regarding corelations and mean and SD of likert items
Hi
For first question, maybe I am completely wrong but
cor(swiss[,-1], swiss[,1])
should give you what you want in one step.
Second question
Without an example it is hard to say but maybe aggregate is the way forward.
> aggregate(iris[,1:4], list(iris$Species), function (x) c(mean=mean(x), sd=sd(x)))
Group.1 Sepal.Length.mean Sepal.Length.sd Sepal.Width.mean Sepal.Width.sd
1
2010 May 21
2
Getting sink to work with “message” on R 2.11.0 - what did I miss?
Hi all,
I am trying to use type message with sink, like this:
sink("all.Rout", type="message")
1+3
sink()
readLines(con = "all.Rout")
So to get the following output:
> 1+3
[1] 4
Obviously this doesn't work.
I tried some variations (based on the explanations in the help) but am
missing something on how to make it work.
Any suggestions?
(p.s: I need
2012 Dec 01
4
Getting all possible contingency tables
Hello all,
Let say I have 2-way contingency table:
Tab <- matrix(c(8, 10, 12, 6), nr = 2)
and the Chi-squared test could not reject the independence:
> chisq.test(Tab)
Pearson's Chi-squared test with Yates' continuity correction
data: Tab
X-squared = 1.0125, df = 1, p-value = 0.3143
However I want to get all possible contingency tables under this
independence
2010 May 22
2
Capturing R console output into a file (sink+savehistory ??)
After reading more, I understand I didn't formulate my last question
correctly, so please allow me to rephrase:
What I am looking for is a way to save the R console session output.
That is, a command that would combine the results of using:
?sink # And
?savehistory
My motivation for this is that doing it will allow someone who is a blind
user of R to be able to easily export his results to
2007 Sep 26
0
Help re speech software for the visually impaired
Hi,
Not too sure what you're looking for, but Speex isn't a screen reader,
it's a compression algorithm. Also, there's no with thing as Speex
version V208.
Cheers,
Jean-Marc
Byers, Robert wrote:
>
> Hello Speex Development Team,
>
> We have purchased many T-2000 phones from VAVAA ( Gold Score
> International Holdings Limited of China) which use the Speex
2007 Sep 26
2
Help re speech software for the visually impaired
Hello Speex Development Team,
We have purchased many T-2000 phones from VAVAA ( Gold Score
International Holdings Limited of China) which use the Speex V208
software.
Many of these phones are being used by Vision Impaired people some of
whom are totally blind.
Do you have a version of your software that we could load which produces
speech outpiut that communicates to the user each key selected
2009 Feb 24
2
Simulating contingency table (Basic question, help please)
I'd like to carry out a Monte Carlo simulation test where given data is a
contingency table. I think this is something to do with using rmultinonom(),
but I'm not sure how to code this, to simulate contingency tables. Could
anyone please help with how to use R to simulate contingency tables like
this?
--
View this message in context:
2012 May 28
2
import contingency table
hello everyone,
i often work on contingency table that I create from data.frame (with
table() function)
but a friend sent me an excel sheet wich *already is* a contingency
table (just a simple 2 way table !...)
any clue on how to import it in R (keeping row names and col names) ?
any tuto I come accross only mention the table transformation, but
never the import of such data
I only found
2008 Feb 14
3
contingency table
Hello!
May you help me? I'm trying to do a contingency table using this
> data(iris)
> library(rpart)
> modelo <- rpart(Species ~., iris)
> prev <- predict(modelo, iris)
Finally the contingency table
> table(iris$Species, prev)
But an error occurs:
Error in table(iris$Species, prev) :
all arguments must have the same length
And I do not understand why, may you
2011 Mar 02
4
Contingency table in R
Hi,
I have a table in R with data I needed and need to create a contingency table out of it. The table I have so far looks like this:
Binger
r
DietType No Yes
Dangerous 15 12
Healthy 52 9
None 134 24
Unhealthy 72 23
These are the error messages that I keep getting whenever I try to get a contingency table. I'm not sure why it won't work
2012 May 19
1
Contingency table and mean(sd)
Hi All,
I have a question regarding contingency tables. I would like to calculate the mean and standard deviation of a continuous variable from my own dataset based on the percentages of a contingency table I obtained from a scientific article.
dataset<- data.frame(cbind(case=rep(0:1,5), x1=c(1:10), x2=c(0:9)))
contingency_table<- matrix(c(100, 75, 65, 85, 90, 87), nrow=3, ncol=3)
In
2000 Aug 23
1
3D perspective of a contingency table
How can I draw a 3D perspective of a contingency table, that is
showing 3D bars whose height is in proportion of the table cells?
---------------
Charles RAUX,
Laboratoire d'Economie des Transports
CNRS-Universit? Lumi?re Lyon 2-ENTPE
email : charles.raux at let.ish-lyon.cnrs.fr
http://www.ish-lyon.cnrs.fr/let
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
2003 Apr 24
3
Detailed contingency tables
Is there any existing function for creating contingency tables that will
display counts, row, column, and cell percentages in the same
tables....anything similar to crosstabs in S?
Marc W. Zodet, MS
Health Statistician
Center for Cost and Financing Studies
Division of Statistical Research and Methods
2101 East Jefferson Street, Suite 500
Rockville, Maryland 20852
Phone: 301-594-7072
Fax:
2008 Mar 18
1
ask for help how to get accumulate contingency table?
Hi, I post the question again.
x<-rep(c(2,3,4),20)
y<-sample(rep(c(0,1),30))
tr<-rep(c(1:5),6)
data1<-data.frame(x,y,tr)
data1<-data1[order(data1$tr),]
> data1
x y tr
2 1 1
4 0 1
3 1 1
2 1 1
4 1 1
3 1 1
2 0 1
4 0 1
3 0 1
2 0 1
4 0 1
3 1 1
3 0 2
2 0 2
>table(data1)
tr = 1
y
x 0 1
2 2 2
3 1 3
4 3 1
tr = 2
y
x 0 1
2 2 2
3 2 2
4 1 3