Good morning,
I am a new user of this forum and Stata 17 (SE) newbie too. I am grateful if you can help me figure out what is wrong here.
I just upgrade Stata to 17 SE to have the ability to include more variables, since the spatial weight matrix would be 3108 x 3108 in size. I also reset maxvar to 32767.
Below is my memory setting:
Memory settings
set maxvar 32767 2048-32767; max. vars allowed
set niceness 5 0-10
set min_memory 0 0-16g
set max_memory 16g 32m-1600g or .
set segmentsize 32m 1m-32g
set adosize 1000 kilobytes
However, when using spmat to obtain the summary of links, I got the error - name: too many specified r(103). Below is the information with tracing (set trace on).
I am a new user of this forum and Stata 17 (SE) newbie too. I am grateful if you can help me figure out what is wrong here.
I just upgrade Stata to 17 SE to have the ability to include more variables, since the spatial weight matrix would be 3108 x 3108 in size. I also reset maxvar to 32767.
Below is my memory setting:
Memory settings
set maxvar 32767 2048-32767; max. vars allowed
set niceness 5 0-10
set min_memory 0 0-16g
set max_memory 16g 32m-1600g or .
set segmentsize 32m 1m-32g
set adosize 1000 kilobytes
However, when using spmat to obtain the summary of links, I got the error - name: too many specified r(103). Below is the information with tracing (set trace on).
Code:
. spmat summarize W links
--------------------------------------------------------------- begin spmat ---
- version 11.1
- gettoken sub 0 : 0 , parse(" ,")
- local len = length(`"`sub'"')
= local len = length(`"summarize"')
- if `len'==0 {
= if 9==0 {
di as err "No subcommand specified"
exit 198
}
- if `"`sub'"'==substr("idistance",1,max(5,`len')) {
= if `"summarize"'==substr("idistance",1,max(5,9)) {
SPMAT_idistance `0'
}
- else if `"`sub'"'==substr("contiguity",1,max(3,`len')) {
= else if `"summarize"'==substr("contiguity",1,max(3,9)) {
cap noi SPMAT_contiguity `0'
SPMAT_drop_tempnames `matanames'
}
- else if `"`sub'"'==substr("use",1,max(3,`len')) {
= else if `"summarize"'==substr("use",1,max(3,9)) {
SPMAT_read `0'
}
- else if `"`sub'"'==substr("import",1,max(2,`len')) {
= else if `"summarize"'==substr("import",1,max(2,9)) {
SPMAT_import `0'
}
- else if `"`sub'"'==substr("export",1,max(2,`len')) {
= else if `"summarize"'==substr("export",1,max(2,9)) {
SPMAT_export `0'
}
- else if `"`sub'"'==substr("save",1,max(2,`len')) {
= else if `"summarize"'==substr("save",1,max(2,9)) {
SPMAT_save `0'
}
- else if `"`sub'"'=="drop" {
= else if `"summarize"'=="drop" {
SPMAT_drop `0'
}
- else if `"`sub'"'==substr("graph",1,max(2,`len')) {
= else if `"summarize"'==substr("graph",1,max(2,9)) {
SPMAT_graph `0'
}
- else if `"`sub'"'==substr("putmatrix",1,max(3,`len')) {
= else if `"summarize"'==substr("putmatrix",1,max(3,9)) {
syntax [ namelist(max=3)] [, * ]
local w : word count `namelist'
if `w'==0 {
di "{err}name of spmat object required"
exit 498
}
local objname : word 1 of `namelist'
if `w'>2 local old _old
cap noi SPMAT_putmatrix`old' `0'
local rc = _rc
if `rc' {
capture SPMAT_drop_tempnames `matanames'
capture mata: SPMAT_fcheck(`objname')
if _rc capture mata mata drop `objname'
}
exit `rc'
}
- else if `"`sub'"'==substr("getmatrix",1,max(3,`len')) {
= else if `"summarize"'==substr("getmatrix",1,max(3,9)) {
syntax namelist(min=1 max=3) [, * ]
local w : word count `namelist'
if `w'>2 local old _old
SPMAT_getmatrix`old' `0'
}
- else if `"`sub'"'==substr("permute",1,max(3,`len')) {
= else if `"summarize"'==substr("permute",1,max(3,9)) {
SPMAT_permute `0'
}
- else if `"`sub'"'==substr("dta",1,max(3,`len')) {
= else if `"summarize"'==substr("dta",1,max(3,9)) {
cap noi SPMAT_dta `0'
SPMAT_drop_tempnames `matanames'
}
- else if `"`sub'"'==substr("summarize",1,max(2,`len')) {
= else if `"summarize"'==substr("summarize",1,max(2,9)) {
- SPMAT_summarize `0'
= SPMAT_summarize W links
name: too many specified
return add
}
----------------------------------------------------------------- end spmat ---
r(103);
