Comments (5)
Sure we should be able to do this with existing functions. I'll make a reprex for it
from conquestr.
Here's a possible solution using existing functions. If you think this is something we'll do often let's build it in to the core functionality so you don't need to do workarounds...
library(conquestr)
my_cmds <- cqc_cmds()
my_defaults <- cqc_defaults()
my_cmds$data <- "data {customfile}.txt"
my_defaults$customfile <- "my_default_file.txt"
writeLines(unlist(cqc_syntax("example1", "1-10", my_cmds, my_defaults)))
#> reset;
#> data my_default_file.txt.txt
#> label << example1.lab;
#> format responses 1-10;
#> model item;
#> estimate ! iter=1000, nodes=30;
#> itanal >> example1.itn;
#> show ! estimates=latent >> example1.shw;
#> export logfile >> example1.CQL;
#> put >> example1.CQS;
Created on 2018-04-20 by the reprex package (v0.2.0).
from conquestr.
I reckon I will frequently need to do this .
I am happy to use your reprex in the interim
thanks for get me a solution so quickly
from conquestr.
New commit to develop branch should address this issue now. If you don't want a custom filename it defaults to the current setup and uses the value of the name
argument provided to cqc_syntax
from conquestr.
This is now been merged into the master branch with 8dae718
from conquestr.
Related Issues (20)
- generate Conquest syntax
- add tests
- auto-detect number of pvs in pv file
- conquest analysis function HOT 1
- rlang package needed HOT 1
- import show files
- order of syntax commands - 'label' after 'format' HOT 2
- Perfect/Zero items HOT 12
- Extreme items where threshold = +-32 HOT 1
- Itanal: "Discrimination" sometimes labelled "Item-Rest Cor."
- Import output gracefully when estimate fit=no;
- example data files not internally consistent
- cq_show currently has error if conquestr is only library loaded
- length of key string HOT 1
- import .shw file?? HOT 2
- Gender Dif HOT 1
- CR items
- import score equivalence tables
- Super Large mnsq HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conquestr.