I have a continuous variable whose n=15000
remarks and displays 451 NA's. When running qqnorm
to evaluate the normality, I verified that it does not present normality and so I applied a logarithmic transformation. However, when running qqnorm
with the log-transformed variable, the graph was not plotted and the following error message appeared:
Error in plot.window(...) : need finite 'ylim' values
Below the script in the order explained above:
> summary(data1$microalb)
Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
0.0000 0.3474 0.5042 1.3220 0.8426 308.0000 451
> qqnorm(data1$microalb) # inspecionando a normalidade
> log.microalb=log(data1$microalb) # aplicando transformação logarítmica
> qqnorm(log.microalb, main="Q-Q Plot - Log microalb", xlab="Quantis Teóricos", ylab= "Quantis Observados")
I deleted the NA's from the variable, but the error persisted, so probably the problem is not in the missings. What could be making qqnorm generation with log-transformed data impossible?
NOTE: I applied the same transformation to other variables and there was no problem, just that.