How to do logistic regression in R when outcome is fractional (a ratio of two counts)? I'm reviewing a paper which has the following biological experiment. A device is used to expose cells to varying amounts of fluid shear stress. As greater shear stress is applied to the cells, more of them start to detach from the substrate. At each level of shear stress, they count the cells that remain attached, and since they know the total number of cells that were attached at the beginning, they can calculate a fractional attachment (or detachment).
If you plot the adherent fraction vs. shear stress, the result is a logistic curve. In theory, each individual cell is a single observation, but obviously there are thousands or tens of thousand of cells, so the data set would be gigantic, if it was set up in the usual way (with each row being an observation).
So, naturally, my question (as stated in the title) should make sense now. How do we do a logistic regression using the fractional outcome as the D.V.? Is there some automatic transform that can be done in glm?
Along the same lines, if there were potentially 3 or more (fractional) measurements, how would one do this for a multinomial logistic regression?
 A: I'v been using nnet::multinom (package nnet is part of MASS) for a similar purpose, it accepts continuous input in [0, 1].
If you need a reference: C. Beleites et.al.:
Raman spectroscopic grading of astrocytoma tissues: using soft reference information.
Anal Bioanal Chem, 2011, Vol. 400(9), pp. 2801-2816
A: The glm function in R allows 3 ways to specify the formula for a logistic regression model.  
The most common is that each row of the data frame represents a single observation and the response variable is either 0 or 1 (or a factor with 2 levels, or other varibale with only 2 unique values).
Another option is to use a 2 column matrix as the response variable with the first column being the counts of 'successes' and the second column being the counts of 'failures'.
You can also specify the response as a proportion between 0 and 1, then specify another column as the 'weight' that gives the total number that the proportion is from (so a response of 0.3 and a weight of 10 is the same as 3 'successes' and 7 'failures').
Either of the last 2 ways would fit what you are trying to do, the last seems the most direct for how you describe your data. 
A: As a start, if you have a dependent variable that is a proportion, you can use Beta Regression. This doesn't extend (with my limited knowledge) to multiple proportions.
For Beta Regression overview and an R implementation check out betareg.
