@@ -130,6 +130,7 @@ spBreg_lag <- function(formula, data = list(), listw, na.action, Durbin, type,
130
130
attr(dvars , " f" ) <- Durbin
131
131
attr(dvars , " inds" ) <- inds
132
132
attr(dvars , " zero_fill" ) <- zero_fill
133
+ attr(dvars , " formula_durbin_factors" ) <- formula_durbin_factors
133
134
}
134
135
x <- cbind(x , WX )
135
136
m <- NCOL(x )
@@ -386,6 +387,7 @@ spBreg_lag <- function(formula, data = list(), listw, na.action, Durbin, type,
386
387
attr(res , " acc_rate" ) <- acc_rate
387
388
attr(res , " dvars" ) <- dvars
388
389
attr(res , " MH" ) <- priors $ rhoMH
390
+ attr(res , " have_factor_preds" ) <- have_factor_preds
389
391
class(res ) <- c(" MCMC_sar_G" , class(res ))
390
392
res
391
393
@@ -613,6 +615,7 @@ spBreg_err <- function(formula, data = list(), listw, na.action, Durbin, etype,
613
615
attr(dvars , " f" ) <- Durbin
614
616
attr(dvars , " inds" ) <- inds
615
617
attr(dvars , " zero_fill" ) <- zero_fill
618
+ attr(dvars , " formula_durbin_factors" ) <- formula_durbin_factors
616
619
}
617
620
x <- cbind(x , WX )
618
621
xcolnames <- colnames(x )
@@ -948,6 +951,7 @@ spBreg_err <- function(formula, data = list(), listw, na.action, Durbin, etype,
948
951
attr(res , " n" ) <- n
949
952
attr(res , " k" ) <- k
950
953
attr(res , " MH" ) <- priors $ lambdaMH
954
+ attr(res , " have_factor_preds" ) <- have_factor_preds
951
955
class(res ) <- c(" MCMC_sem_G" , class(res ))
952
956
res
953
957
@@ -1112,6 +1116,7 @@ spBreg_sac <- function(formula, data = list(), listw, listw2=NULL, na.action,
1112
1116
attr(dvars , " f" ) <- Durbin
1113
1117
attr(dvars , " inds" ) <- inds
1114
1118
attr(dvars , " zero_fill" ) <- zero_fill
1119
+ attr(dvars , " formula_durbin_factors" ) <- formula_durbin_factors
1115
1120
}
1116
1121
x <- cbind(x , WX )
1117
1122
m <- NCOL(x )
@@ -1383,6 +1388,7 @@ spBreg_sac <- function(formula, data = list(), listw, listw2=NULL, na.action,
1383
1388
attr(res , " acc_rate1" ) <- acc_rate1
1384
1389
attr(res , " acc_rate2" ) <- acc_rate2
1385
1390
attr(res , " dvars" ) <- dvars
1391
+ attr(res , " have_factor_preds" ) <- have_factor_preds
1386
1392
class(res ) <- c(" MCMC_sac_G" , class(res ))
1387
1393
res
1388
1394
0 commit comments