Hi guys, I know what the error means but have no clue how to fix this. Im going quite mental at this point. So basically I want to run a simple regression.
total.rev <- CompustatPharma$Revenue total - Y
[!is.na(CompustatPharma$Revenue total - Y
)]
cap.ex <- CompustatPharma$Capital expenditure - Y
[!is.na(CompustatPharma$Capital expenditure - Y
)]
SGA.exp <- CompustatPharma$SG&A expense - Y
[!is.na(CompustatPharma$SG&A expense - Y
)]
EBITDA <- total.rev - cap.ex - SGA.exp
summary(EBITDA)
equity.total <- CompustatPharma$Common - Ordinary Equity Total - Q
[!is.na(CompustatPharma$Common - Ordinary Equity Total - Q
)]
debt.total <- CompustatPharma$Long term debt total - Q
[!is.na(CompustatPharma$Long term debt total - Q
)]
cash <- CompustatPharma$Cash - Q
[!is.na(CompustatPharma$Cash - Q
)]
firm.value <- ((equity.total + debt.total - cash) / EBITDA)
summary(firm.value)
regmod <- lm(firm.value ~ working.capital)
My firm value is numeric with 1:5550 and working capital numeric with 1:5286
Hopefully someone can help me