##For data without any non-sampled area
data(dataPanelbeta) # Load dataset
dataPanelbeta = dataPanelbeta[1:25,] #for the example only use part of the dataset
formula = ydi ~ xdi1 + xdi2
area = max(dataPanelbeta[, "area"])
period = max(dataPanelbeta[,"period"])
result <- Panel.beta(formula, area, period, data = dataPanelbeta)
result$Est
result$refVar
result$coef
result$plot
## For data with non-sampled area use dataPanelbetaNs
Run the code above in your browser using DataLab