Command For Stata
Command For Stata
encode feedingmanagement,
gen(feed)--- Converting string
variables with non-numeric values into
numeric values
histogram pcv
To import Data
testing interaction
The predicted values can be calculated (pred = coef(_cons) +
coef(age)*age + coef(metritis)*metritis + coef(ovarian)*ovarian)
predict p
gen pred=exp(xb)/(1+exp(xb))
gen lower=exp(xb-1.96*stdp)/(1+exp(xb-1.96*stdp))
gen upper=exp(xb+1.96*stdp)/(1+exp(xb+1.96*stdp))
list
hist reactor
xi: nbreg reactors i.type i.sex i.age, exposure ( par) irr---
used to calculate negative binomial regression
signtest lf = hf