I am trying to set a model using the pcrfit() function of the R's qpcR
package. I have defined a dataframe with 45 cycles (rows) and 4
readings (columns) derived from a TaqMan qPCR with relative
quantification. The data is based on the normalized fluorescent
results (main fluorescence minus ROX).
The example reported herein has a couple of readings with abnormal
amplification (which would be the usual kind of results for the PCR I
am carrying out) and two with a proper amplification; the plot section
of the example is meant to describe the data itself.
For each implementation, the error returned is:
> Error in model.frame.default(formula = ~Fluo + Cycles, data = DATA,
weights = WEIGHTS, :
variable lengths differ (found for '(do.optim)')
However each column has 45 rows.
Any tips on how to problem-solve this issue?
Many thanks,
Luigi
PS:
The following example writes a file in the current folder, uses it for
the pcrfit modelling and then removes it.
>>>
# qpcR
if(!is.element('qpcR', installed.packages()[,1]))
{
install.packages('qpcR')
} else {
library(qpcR)
}
# create dataframe
col.0