alexchristensen / semnet Goto Github PK
View Code? Open in Web Editor NEWMethods and Measures for Semantic Network Analysis
Methods and Measures for Semantic Network Analysis
Hi,
I am using the SemNeT package to calculate semantic networks of two datasets. In each datasets two groups are compared and the two files look the same, apart from the animals the participants said. The package works really great with one of the datasets, but not with the other one. For the one with problems I can estimate the networks, compare them to a random network, but I get an error for the bootstrap analysis. The function test.bootSemNeT leads to the error: "Warning: Error in contrasts<-: contrasts can be applied only to factors with 2 or more levels" However, the bootstrap graphs are plotted and they show two groups. This error also only appears if I use the TMFG method with Pearson's correlation. Is there anything in a data set that can lead to such a mistake?
Best wishes,
Michaela
Copy and paste of error from your R console
Computing forward flow with glove...
Computing forward flow with glove...
Computing forward flow with glove...
Computing forward flow with glove...
Computing forward flow with glove...
Computing forward flow with glove...
Error: node stack overflow
Error during wrapup: node stack overflow
Error: no more error handlers available (recursive errors?); invoking 'abort' restart
To Reproduce:
Optional (but extremely helpful): Attach data to issue or send data to [email protected] with the subject line SemNeT Data: [your GitHub username] using this template
response_matrix.csv
R and SemNeT versions:
Operating System:
Additional context and comments
Copy and paste of error from your R console
Warning: Navigation containers expect a collection of `bslib::nav()`/`shiny::tabPanel()`s and/or `bslib::nav_menu()`/`shiny::navbarMenu()`s. Consider using `header` or `footer` if you wish to place content above (or below) every panel's contents.
Warning in spreadr::spreadr(network = nets[[net_name]], start_run = act_df, :
These nodes specified in start_run don't exist in network: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112
To Reproduce:
Optional (but extremely helpful): Attach data to issue or send data to [email protected] with the subject line SemNeT Data: [your GitHub username] using this template
R and SemNeT versions:
Operating System:
Additional context and comments
Copy and paste of error from your R console
Error in compare.nets(Young.net, Old.net, title = list("Younger Adults", :
could not find function "compare.nets"
To Reproduce:
Optional (but extremely helpful): Attach data to issue or send data to [email protected] with the subject line SemNeT Data: [your GitHub username] using this template
R and SemNeT versions:
Operating System:
Additional context and comments
[# Visually compare networks
compare.nets(Young.net, Old.net,
title = list("Younger Adults", "Older Adults"),
config = "spring", weighted = TRUE)]
[worked before but doesn't now]
Copy and paste of error from your R console
SemNetShiny()
To Reproduce:
R and SemNeT versions:
Don't know your versions? You can check using the following code:
# R
R.version$version.string
# SemNeT
packageVersion("SemNeT")
Operating System:
Don't know your OS? You can check using the following code:
# OS
Sys.info()[1:3]
Additional context and comments
Warning: Error in [: subscript out of bounds
SemNeTShiny()
To Reproduce:
Optional (but extremely helpful): Attach data to issue or send data to [email protected] with the subject line SemNeT Data: [your GitHub username] using this template
R and SemNeT versions:
**Operating System:**
- OS: [Mac]
- Version [10.15.7, 13-inch, 2018]
--->
**Additional context and
comments**
[I put the text cleaner object variable into shiny, and then I try to estimate the network using 4 methods, but neither of them works]
[Attchment includes the data after cleaning
[cleandata.csv](https://github.com/AlexChristensen/SemNeT/files/8457872/cleandata.csv)
]
Copy and paste of error from your R console
install.packages('SemNeTShiny')
Installing package into ‘/Users/mtd143/Library/R/4.0/library’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘SemNeTShiny’ is not available for this version of R
To Reproduce:
Optional (but extremely helpful): Attach data to issue or send data to [email protected] with the subject line SemNeT Data: [mtd143] using this template
R and SemNeT versions:
Operating System:
Additional context and comments
Hi Alex,
In your SemNA Tutorial paper with Yoed Kenett, you mention that you can use the general dictionary for phonological verbal fluency tasks. My question is, what do you use to create the edges for the phonological network? Siew (2013) and Vitevitch (2002,2008) used phonological similarity between words to determine edges. I did not see specifically what you would use to calculate the edges/edge wights from the SemNet package, but please let me know if I missed something.
Thank you,
Abby
Hi @AlexChristensen , do you plan on fixing the CRAN check issues and resurrect the package on CRAN? I'm asking because the package is currently still listed in the Psychometrics task view, see: cran-task-views/Psychometrics#26
Thanks in advance for your consideration!
Copy and paste of error from your R console
Error in stat.cooccur(data, window = window, alpha = alpha):
CN(): Only a response matrix or ordered numeric matrix can be used as input for 'data'
Copy and paste error code here
net.low <- CN(low)
To Reproduce:
Optional (but extremely helpful): Attach data to issue or send data to [email protected] with the subject line SemNeT Data: ezequielfk using this template
R and SemNeT versions:
Operating System:
Additional context and comments
net.low <- CN(low)
Error in stat.cooccur(data, window = window, alpha = alpha):
CN(): Only a response matrix or ordered numeric matrix can be used as input for 'data'
A similar problem occurs when I want to incorporate another binary database. In the case of the shiny app, the program stops when trying to load a binary data base (for example, a database of mine, or the "high" database derived from the open.animals database). When I want to incorporate or estimate the network of a binary database, the program crashes (or the corresponding function returns such an error).
My main purpose is to apply the network estimation methods you propose, but from a pre-existing binary database. That is my big obstacle, mainly that when I try to load a binary database to the shiny app the program crashes or gives me the error indicated in the previous message (if I directly run the syntax in R).
Well I await any help on how to implement the methods you propose but directly on a binary database like the ones I sent you attached (i.e. without the need to select from clean$response in the shiny app).
Thanks!
high_BRM.csv
low_BRM.csv
prueba.csv
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.