similar to: logistic regression with percentages

Displaying 20 results from an estimated 9000 matches similar to: "logistic regression with percentages"

2000 Dec 20
3
glm
It was my fault, as you have seen. Y matrix must contain successes and failures, and not successes and trials. Sorry for my ignorance and thanks a lot for your help. Oscar -------------- next part -------------- An HTML attachment was scrubbed... URL: https://stat.ethz.ch/pipermail/r-help/attachments/20001220/341c2519/attachment.html
2010 Jan 12
2
Calculate the percentages of the "numbers" in every column.
Dear friends, I have a table like this, I have A B C D ... levels, the first column you see is just the index, and there are different numbers in the table. A B C D ... 1 0 2 1 0 2 1 0 2 1 3 2 3 0 0 4 0 0 1 0 5 0 2 3 1 ... I want to calculate the frequencies or the percentages of the numbers in every column. How do I get a table like this,
2010 Oct 27
2
Generate random percentages and placing vectors
Hello everyone, I have two questions: 1.) I would like to generate random percentages that add up to 100. For example, if I need 5 percentages, I would obtain something like: 20, 30, 40, 5, 5. Is there some way to do this in R? 2.) I would like to insert vectors of specified length into a larger vector of specified length randomly, and fill the gaps with zeroes. For example, if I have 3 vectors
2013 Jan 30
1
Percentages in bar plot
Dear R-users, Though it's a silly thing to ask, but I'm not getting a way out. I wish to find the percentage distribution for a data vector 'stop'. The coomand below is giving the frequency distribution. May I know the option to see the percentages instead of frequencies. Similarly, what option I should put in a histogram plot to see the percentages instead of frequencies?
2008 Sep 17
3
t-test between percentages
Hi all, though i know this is a simple question, i really hope someone could. I am just trying to compare percents respectively the difference in percents by a simple test. t.test usually compares means and is working like it is supposed to be. Now i wonder how i can use a test in R to test for significant difference between two percentages.
2005 Feb 16
2
Sampling given a table of percentages?
I have a vector V. sum(V) = 100, i.e. it's percentages. length(V) is large. I wish to generate samples (with replacement is fine), integers, in the range 1:length(V) who's distribution is driven by the distribution implied by the percentages in V. V is unsorted, but that could change. I'd rather not be too specific about the distribution of V. I can certainly solve the
2010 May 14
2
multhist,labels and percentages
Hi All, I am in the annoying position of having to present some data to someone who seems to be somewhat less than numerate. I need to label the y-axes of a multhist with the y-axis labeled not as counts but as percentage of a population. Plotting the standard histogram is in a way fine, all I need is to: -- have a left-handside y-axis labels for pop 1 and a right-handside y-axis labels for pop2
2008 Mar 13
4
a more elegant way to get percentages?
Hi, I am trying to get percentages in a more elegant way. I have a data.frame with locations and values (counts) of species at that location. Each location is repeated for each species i have values for and i would like to get percentages of each species at that location. I am not sure if i am clear in my explanations so i will paste my code below: ##################### > x locat val 1
2008 May 23
3
Percentages for categorical data by group
I can think of several ways to blunt force hard code what I want but I imagine there is a command or two that can be easily combined to do this: I have a data frame with about 23000 observations. There first variable is the group to which the observation belongs (about 500 different groups). The second variable is a response for each observation that is a 1,2,3,4 or 5. I want to be able to
2008 Mar 09
2
format numbers into percentages
Hi, I am currently using the following to formate numbers into percentages: x=0.00112 paste(round(x*100,2),"%",sep="") I am wondering if there is a built in R function that does the same. Does anyone know? Thanks, -- Tom [[alternative HTML version deleted]]
2010 Dec 11
2
Specifying Prior Weights in a GLM
Hello R folks, I have three questions. I am trying to run a logistic regression (binomial family) where the response variable is a proportion. According to R Documentation in "a binomial GLM prior weights are used to give the number of trials when the response is the proportion of successes." However when I run my code I get the following error message: Error in
2005 Jul 26
4
elegant solution to transform vector into percentages?
Hi, I am looking for an elegant way to transform a vector into percentages of values that meet certain criteria. store<-c(1,1.4,3,1.1,0.3,0.6,4,5) # now I want to get the precentages of values # that fall into the categories <=M , >M & <=N , >N # let M <-.8 N <- 1.2 # In my real example I have many more of these cutoff-points # What I did is: out <- matrix(NA,1,3)
2010 Nov 15
1
Converting numbers to percentages for boxplots
Hi, I need to convert general numbers to percentages in R to create a boxplot for purposes of comparison. Can you please tell me how I can do that? My data is attached as a csv file. Thanks. Daniel
2004 Dec 13
3
Percentages in contingency tables *warning trivial question*
I hesitate to post this question in the light of recent threads, indeed I have hesitated for several weeks, however I have come to a full stop and really need some help if I am going to progress. I am a new user of R for medical statistics. I have attempted to read all the relevant documents, but would welcome any suggestions as to what I have missed. I am trying to contruct "table 1"
2003 May 14
1
mcl models, percentages
I've put two packages for R on my home page at http://www.xs4all.nl/~jhckx/R/. The "pcnt" package is for multiway percentage tables. I've posted a first effort called "ctab" on this group and a request for enhancing "ftable" with percentages on the wishlist. The "mcl" package is for estimating multinomial logistic models using conditional logistic
2007 Jun 02
1
Calculating column percentages of a table
Hello, I know, this is a real newbie question, but I can't find anything on this in the manuals! I know that I get calculate the column totals of a table with `apply(mytable, 2, sum)'. Now I want each column total to be 100% and calculate the percentage of each field of the column. How would I do that? Rcommander, the ultimate newb-tool, has a function `colPercents' which is exactly
2003 Mar 06
0
modifying ftable to allow percentages (wishlist) (PR#2606)
Full_Name: John Hendrickx Version: 1.6.2 OS: Windows XP Submission from: (NULL) (80.126.78.108) (This is not a bug report but a request to add a feature to future versions of R. Hope this is an appropriate place). I'd like to suggest adding an option to ftable to allow percentages. It would be easy to do and backwards compatible. Percentage tables are useful in educational contexts, whereas
2009 Feb 27
1
cross tabulation: convert frequencies to percentages
Hello, might be rather easy for R pros, but I've been searching to the dead end to ... twsource.area <- table(twsource, area, useNA="ifany") gives me a nice cross tabulation of frequencies of two factors, but now I want to convert to pecentages of those absolute values. In addition I'd like an extra column and an extra row with absolute sums. I know, Excel or the
2009 Nov 09
1
Percentage effects in logistic regression
Dear ALL, I'm trying to figure out what the percentage effects are in a logistic regression. To be more clear, I'm not interested in the effect on y of a 1-unit increase in x, but on the percentage effect on y of a 1% increase in x (in economics this is also often called an "elasticity"). For example, if my independent variables are in logs, the betas can be directly
2010 Sep 27
1
Percentages and lattice
What I'm trying to do is to figure out how to create lattice charts of %right by region, or alternatively, by date from a dataset of observations that looks something like this: date,location,region,correct 2010-09-10,a,r1,yes 2010-09-10,a,r1,yes 2010-09-10,a,r1,no 2010-09-11,a,r1,yes 2010-09-01,b,r1,yes 2010-09-02,b,r1,no 2010-09-01,a,r2,yes 2010-09-02,a,r2,no 2010-09-02,a,r2,yes