Science topics: LinguisticsSyntax
Science topic

Syntax - Science topic

In linguistics, syntax is "the study of the principles and processes by which sentences are constructed in particular languages".
Questions related to Syntax
  • asked a question related to Syntax
Question
2 answers
JEWISH HUMOR
In 1978, psychologist Samuel Janus conducted a study which found that although Jews constituted only 3 percent of the U.S. population, 80 percent of the nation’s professional comedians were Jewish. The percentage of comedians is less today not because there are fewer Jewish comedians, but because in response to ethnic and gender identity movements, many new comedians have come from groups that were previously under-represented. Belle Barth, Danny Kaye, and other Jewish comedians substituted Yiddish for English when they wanted to fool English-speaking censors with risque jokes.
In Mel Brooks’ The Producers there is a play within the play called “Springtime for Hitler.” Dozens of dancers, singers, actors and pantomimists of every race and shape audition for the role of Hitler. The show’s opening production number culminates in the formation of a slowly turning swastika. The pillars at the back of the set are being lowered to a horizontal position and transformed into cannons. After seeing a bizarre interview on TV, Reiner turned to Brooks and said, “I understand you were actually at the scene of the Crucifixion.”
Brooks responded, “Ooooooh, boy!” and then continued in character saying that yes, he had known Christ. “He was a thin lad, always wore sandals. Came into the store but never bought anything.”
Henry Spalding says that much Jewish humor is in the form of honey-coated barbs at the people and things Jews love the most. Jews verbally attack their loved ones and their religion, but with the grandest sense of affection. Their jokes are “a kiss with salt on the lips, but a kiss nevertheless.” Dolf Zillman says that Jewish humor exhibits two antithetical statures: disparagement and superiority. This antithesis can be seen in the following joke:
The Israeli Knesset is lamenting all of the challenges that Israel faces.
One member of the Knesset suggests that Israel go to war against the United States. Other members say, “What?” “Such a war wouldn’t last 10 minutes.” “I know. I know. But then we would be a conquered country and the Americans would send us aid. They would build roads and hospitals and send food and agricultural experts.” “But,” said another member of the Knesset, “What if we win?”
Jewish stereotypes include the shrewd businessman, the overbearing mother, the Jewish American Princess, and the persecuted Jew. Arthur Naiman illustrates the stereotype of the overbearing Jewish mother with a story about a psychiatrist who tells a Jewish mother that her son has an Oedipus complex. The mother responds, “Oedipus, schmoedipus, just so long as he loves his mother.”
Yiddish is the language of sarcasm and irony. It is also the language of Jewish culture. Richard Fein’s experiences were typical:
“Yiddish was in my bones, but hidden from my tongue. I did not know Yiddish as a language, but I felt reared in its resonance, pitch, and tone. I recognized a few words uttered in isolation, grasped nothing of its structure, but felt washed in its rhythms. Although I could not speak Yiddish, it was not a foreign language. I never possessed it, but sensed it possessing me.”
Here is a sampling of Yiddish words and expressions:
Bobehla: “little grandmother” term of endearment
Chutzpah: gall or incredible nerve
Ganeff: a thief or mischievous prankster
Kibitz: kidding around
Mishmash: flagrant disorder or confusion
Nebish: a loser or sad sack
Nosh: a snack
Schmaltz: “chicken fat” sentimentality
Schmear: bribing or greasing the palm
Schmooz: a heartfelt visit
Shlemiel: clumsy or inept person
Shlep: carrying things (including oneself) in an undignified way
Shlimazl: fall guy or luckless oaf
Shnorrer: a beggar
In The Joys of Yiddish, Leo Rosten says that Yiddish syntax also enters the English Language:
Fancy-schmancy
kvetch
maven
mazel tov
tanz
Oy Vey!
Get lost.
You should live so long!
Who needs it?
He should excuse the expression.
It shouldn’t happen to a dog.
On him it looks good.
Other Yiddish patterns include virus schmirus, and a real no-goodnik.
Relevant answer
Answer
Jewish humor is often characterized by certain themes, styles, and cultural references that distinguish it from other forms of humor. While it's important to note that humor can vary widely among individuals and communities, there are some common elements often associated with Jewish humor:
  1. Clever Wordplay and Wit.
  2. Self-Deprecation.
  3. Cultural Observations.
  4. Irony and Satire.
  5. Shtick and Characters.
  6. In-group References.
  7. Storytelling Tradition.
  • asked a question related to Syntax
Question
15 answers
CASE GRAMMAR: A MERGER OF SYNTAX AND SEMANTICS
Charles Fillmore’s Deep Cases are determined not by syntax, but rather by semantics. Rather than having Subject, Indirect Object and Direct Object, Fillmore uses such terms as Agent, Experiencer, Instrument, and Patient.
The semantic features often occur in contrasting pairs, like Animate vs. Inanimate, and Cause vs. Effect. Thus:
Agent: Animate Cause
Experiencer: Animate Effect
Instrument: Inanimate Cause
Patient: Inanimate Effect
In an Active Sentence the most active Deep Case is eligible to become the Subject and the least active is eligible to become the Direct Object.
In a Passive Sentence the least active Deep Case is eligible to become the Subject and the most active case becomes an Object of the Preposition “by.”
Normally, the most active deep case is selected as the subject of the sentence:
The Actor if there is one
If not, the Instrument if there is one
If there is no Actor or Instrument, the Object becomes eligible. Therefore we have the following:
The boy opened the door with the key.
The key opened the door.
The door opened.
Is Case Grammar an effective method for showing the interrelationships between syntax and semantics?
Relevant answer
Answer
Anton: Excellent response. It's OK if the levels remain separated as long as there is eventually an interface between the two. This is the tricky part.
  • asked a question related to Syntax
Question
5 answers
Hi,
I have just installed and used spss 29. I was using spss 27.
I am analyzing data with a crossed random effects mixed model.
I am using syntax for this type of analysis. With the exact same syntax and data base I obtain different results with spss 29 and spss 27!
Specifically, the same model (that I call model 3) run with spss 27 was not giving me a warning whereas with spss 29 I get a warning (The final Hessian matrix is not positive definite although all convergence criteria are satisfied. The MIXED procedure continues despite this warning. Validity of subsequent results cannot be ascertained.).
Another case: with a slightly simpler model that I call model 2, I have no warnings but the results with spss 27 and spss 29 are not identical (e.g. BIC is different).
Is anyone experiencing the same or similar ?
Relevant answer
Answer
Thanks. I am running with SPSS29 a syntax written with SPSS27.
  • asked a question related to Syntax
Question
1 answer
Hi everyone,
I tested a traditional 2-1-1 MLM based on the Mplys syntax example of Preacher
I specified for standardized output in the syntax, which I received for the direct effects and path coefficients etc. The problem is that I did not get standardized estimates for the calculated indirect effects but only unstandardized coefficients. I was looking for the answer on why this is, but I can only seem to find papers who also report unstandardized estimates for indirect effects yet don't explain why.
So in short, why are standardized estimates for indirect effects of multilevel mediation models in Mplus not included in the output even though I requested it?
Cheers,
Maria
Relevant answer
Answer
Maria Wiertsema In Mplus, the output for indirect effects in multilevel mediation models is typically provided in unstandardized form, even if you have requested standardized output. This is because indirect effects are typically computed as products of regression coefficients, and standardization is not a straightforward process for these coefficients.
The reason for not including standardized estimates for indirect effects in the output is that standardization can introduce complexities in multilevel models due to the hierarchical structure of the data. Standardization typically involves dividing coefficients by standard deviations, which may vary at different levels of the hierarchy.
In multilevel models, standardization at one level may not be meaningful or appropriate when considering the entire hierarchical structure. Therefore, Mplus, like other statistical software, usually provides unstandardized estimates for indirect effects to maintain the integrity of the multilevel model and to avoid potential misinterpretations that can arise from standardizing coefficients in a hierarchical context.
If you wish to obtain standardized indirect effects, you may need to manually compute them by dividing the unstandardized indirect effects by appropriate standard deviations of the variables involved. However, it's essential to exercise caution when standardizing coefficients in multilevel models and to consider the hierarchical nature of the data to ensure meaningful interpretations.
  • asked a question related to Syntax
Question
1 answer
Hi all,
I previously ran Little's MCAR test in mplus (all variables are categorical), but I am unable to find the syntax/steps to run it now. Can anyone point me in the correct direction in where to find this syntax/code/steps?
Thank you all so much!
Relevant answer
Answer
You can get it by specifying a mixture model with a single latent class. Below is an example syntax for a 1-factor CFA model with ordinal indicators:
TITLE: Ordinal CFA Example
DATA: FILE = data.txt;
VARIABLE: NAMES = y1-y4;
CATEGORICAL = y1-y4;
MISSING = *;
CLASSES = c(1);
ANALYSIS: TYPE = MIXTURE;
MODEL: %OVERALL%
F by y1-y4;
  • asked a question related to Syntax
Question
1 answer
I am currently initiating Calphad optimization for my experimental phase diagram construction, and I want a complete list of the items (keyword, operator, etc.) of .pop file.
Although I managed to get explanative documentation from Thermocalc and Computherm (Pandat), it is more like a case study rather than a complete explanation.
Relevant answer
Answer
Hello
You will find some examples in this video :
Regards
  • asked a question related to Syntax
Question
1 answer
I want to run FMOLS and DOLS in stata. Can someone share the syntax or help me guide about the process?
Relevant answer
Answer
xtcointreg ROA BOS FGD CEOD BOE LEV FMS FAGE, est(fmols) noconstant full
xtcointreg ROA BOS FGD CEOD BOE LEV FMS FAGE, est(fmols) noconstant
xtcointreg ROA BOS FGD CEOD BOE LEV FMS FAGE, est(fmols)
///////////////////////////////////////
xtcointreg ROA BOS FGD CEOD BOE LEV FMS FAGE, est(dols) noconstant full
  • asked a question related to Syntax
Question
6 answers
We are recoding our data and transforming the data values into the values we won't according to the questionaries we have used and its scores.
The first couples of recodes went fine, and we can see the values in the Data view after we ran the syntax. But then all of a sudden after we ran a recode of the next variable in our syntax, the value did not show in the Data view, and instead of the value, the columns just have a dot; .
We don't have any missing values, and the original data, we are recoding, has values. So what are we doing wrong, can any body help us?
We have been checking the syntax over and over again, to see if we are doing something diffrent form the first couples of recodes, where nothing is wrong.. but we can't find any differences.
Relevant answer
Answer
I tried to recode a string to a numeric variable twice, once by typing in the syntax and then by using the drop-down menu. Neither one worked. The hand-entered syntax kept generating different errors even though it's identical to the drop-down version. The drop-down version ran correctly (no error messages), but the string variable didn't get recoded.
  • asked a question related to Syntax
Question
2 answers
Dear scholars!
I have collected data on the met need for EMOC (Having expected obstetric complications, treated obstetric complications, and the met need in percentage) of certain countries. Can I do a descriptive meta-analysis?
What commands in Stata can I use?
I wanted to use CMA, but it's not freely accessible.
thanks.
Melese
Relevant answer
Answer
Thanks@blate Moges. Finally i did it using CMA.
  • asked a question related to Syntax
Question
3 answers
Dear all,
I installed the latest Vina version on my conputer and as everyone knows, it does not have the log file generation argument. so we have to do it manually. Previously, Dr. Muniba of Bioinformatics review website was helpful in providing scripts to sort the log files.
Now the only option is the output pdbqt file. The script provided by Dr. Trott, gives errors and people have reported previously. But the issue is not resolved. The syntax error is in the line with "print" keyword as python recognises "print()" syntax.
So i changed theses line and now no error is generated but there is now output file to see any result.
Can someone help me with the matter as have a small library of 1000 compounds but without sorting them, i am stuck.
Thank you everyone in advance.
Best regards
Ayesha
Relevant answer
Answer
One more thing, to add
verify that there are .pdbqt files present in the current directory and subdirectories.
  • asked a question related to Syntax
Question
10 answers
Hi all!
I would like to test the effectiveness of an intervention that I conducted in a randomized controlled trial design (pre-test and post-test, intervention and control group). I read that fitting linear mixed models (LMM) would do the job, and I was wondering whether anyone knows of syntax available for doing this in Mplus.
Thank you very much for helping me out.
Lara
Relevant answer
Answer
Hi Lara. I had to go back to check your earlier post. You said that schools, not students, were randomly allocated to the two treatments. Searching for resources on analysis of cluster-randomized controlled trials turned up this 2018 article, which you may find helpful:
I've only scanned it quickly, but it discusses a few different approaches, and concludes with these recommendations.
The analysis of a cluster randomised trial with a baseline assessment of outcome is not as straightforward as it might seem, but the advice is similar for cohort and for cross sectional designs. ANCOVA should adjust for the baseline cluster mean, even in a cohort design where individual level adjustment at baseline is also possible. A good, all round alternative to ANCOVA is a constrained baseline analysis with a suitably flexible model for the correlation between individuals from the same cluster. We do not recommend a difference of differences analysis for a cluster randomised trial. Any analysis using mixed regression or generalised estimating equations has an increased risk of a false positive finding when there are relatively few clusters, so analysts should apply a correction in this case if one is available, or consider aggregating results at the cluster level.
HTH.
  • asked a question related to Syntax
Question
1 answer
How can I get the table tab in Amos v23?
Relevant answer
Answer
To add a published paper to your ResearchGate profile, you need to:
  1. Go to the Research tab on your profile.
  2. On the left, select Preprints and locate your publication.
  3. Click Add published version under the preprint title.
  4. Select the published work you want to link to if it’s already on ResearchGate, or create a new publication if it’s not.
  5. Click Add published version.
Alternatively, you can add a publication page to your profile by clicking the Add new button at the top right-hand corner of any ResearchGate page. I hope that helps!
  • asked a question related to Syntax
Question
6 answers
I have a dataset of patients with ESRD and want to estimate GFR using the 2021 CKD-EPI formula.
Relevant answer
Answer
Hello Dineo
Here attached the code to calculate eGFR according to the CKD -EPI 2021
gen eGFR01 = .
replace eGFR01 = 142 * (PreopCreatinine/0.9)^(-1.2) * 0.9938^Ageatdx if SexM1==1 & PreopCreatinine > 0.9
replace eGFR01 = 142 * (PreopCreatinine/0.9)^(-0.302) * 0.9938^Ageatdx if SexM1==1 & PreopCreatinine <= 0.9
replace eGFR01 = 142 * (PreopCreatinine/0.7)^(-1.2) * 0.9938^Ageatdx * 1.012 if SexM1==0 & PreopCreatinine > 0.7
replace eGFR01 = 142 * (PreopCreatinine/0.7)^(-0.241) * 0.9938^Ageatdx * 1.012 if SexM1==0 & PreopCreatinine <= 0.7
best regards.
  • asked a question related to Syntax
Question
1 answer
I would like to improve the accuracy of the frequency from the Gaussian or Orca software please which syntax will I use?
Relevant answer
Answer
To calculate precision on a theoretical frequency, you need to have a set of predicted values and corresponding actual values. Precision is a metric used in classification tasks to measure the accuracy of positive predictions.
The formula to calculate precision is:
code Precision = True Positives / (True Positives + False Positives)
Here, True Positives refer to the number of correctly predicted positive values, and False Positives refer to the number of incorrectly predicted positive values.
If you have a set of predicted values predictions and corresponding actual values you can calculate precision in Python using the scikit-learn library as follows:
Use python code from sklearn.metrics import precision_score precision = precision_score(actual_values, predictions)
Make sure that the predicted values and actual values are in the correct format. For example, if you have binary classification (0 and 1), both predictions and actual_values should be arrays/lists of 0s and 1s.
If you are working with a different programming language or framework, the syntax may vary, but the underlying concept of calculating precision remains the same.
  • asked a question related to Syntax
Question
1 answer
Syntax is studied in both Linguistics and Computer science, merging researches between the researchers is likely to exposes further horizons of challenges which can only be solve by the team.
Relevant answer
Answer
This is what is done in some teams, right?
  • asked a question related to Syntax
Question
4 answers
Hi all,
I am looking for SPSS syntax to calculate the Framingham Risk Score of Cardiovascular disease. I need to calculate this for 500 people.
Thanks in advance for your help!
Relevant answer
Answer
Framingham has been churning out risk scores since the 1960s! Which one do you want? Their papers usually give a step by step calculation.
I should note that the coefficient for smoking in Framingham is surprisingly small. And also that Framingham is actually a family study, but this does not seem to have been taken into account in the models. Familial clustering of smoking and risk may account for the strange odds ratio.
  • asked a question related to Syntax
Question
7 answers
To be more specific, my experimental design is based on 3-way (4*2*2) ANOVA. Three independent variables: factor 1=type of microorganism (4 levels), factor 2=time (2 levels), and factor 3=moisture level (2 levels).
The interaction effect (microorganism*time*moisture level) was significant, but I do not know which interaction is significant.
So, in your opinion, which way is the best to use SPSS syntax in my case?
/EMMEANS=TABLES(microorganism*time*moisture_level) COMPARE(time) COMPARE(moisture_level)?
or
/EMMEANS=TABLES(microorganism*time*moisture_level) COMPARE(time)?
or
/EMMEANS=TABLES(microorganism*time*moisture_level) COMPARE(moisture_level)?
Your help is highly appreciated.
Thank you so much
Relevant answer
Answer
Hello A. M. A. Al-Khdri. If I follow, you want to carry out interaction contrasts. E.g., you want to test one of the two-way interactions at each level of the 3rd variable. Is that right? If so, I fear that it is not terribly straightforward in SPSS (IMO). The 2008 article by Howell & Lacroix shows some examples, but they the method they use requires fairly advance understanding of how to generate contrast codes. I think it would be much easier to get the desired results using the MANOVA command that they show in some of the supplementary files. You can see their article and get the supplementary materials (i.e., the Appendix link) here:
Meanwhile, do you have access to any other stats packages? I know that the contrasts (I think) you want to look at are much easier to get using Stata. And I imagine the same is true of R or SAS.
HTH.
  • asked a question related to Syntax
Question
3 answers
Hi there,
does anyone know, how to implement more than one group in the following syntax:
calc.relimp(swiss,
type = c("lmg", "last", "first"), rela = FALSE,
groups = c("Education","Examination"), weights = abs(-23:23) )
Let´s say we have "age" and "sex" as IVs and want to run this analysis with group 1 "Education" and "Examination" and with group 2 "age" and "sex". Is there a way to do this?
Thanks in advance,
Michael
Relevant answer
Answer
..thank you for your detailed answer!
Greetings,
Michael
  • asked a question related to Syntax
Question
1 answer
I just need to know how to specify a material in case of defining doping profile in SIlvaco.
Relevant answer
Answer
In Silvaco Atlas TCAD, you can dope a region with carbon by defining a carbon impurity profile in the input file. The syntax for this would depend on the specific file format you are using (e.g., deck, MSDX, etc.). Here is an example of the syntax for doping a region with carbon in a deck file:
*Region definition
REGION
...
CARBON 1.0e20
...
END
In this example, the CARBON keyword is used to specify the doping concentration of carbon in the region, which is set to 1.0e20 cm^-3. The REGION and END keywords are used to define the beginning and end of the region definition, respectively. The dots (...) represent other parameters or regions that may be present in your input file.
Note that the doping concentration and other parameters may need to be adjusted based on your specific device requirements and simulation setup. Additionally, you may need to add additional keywords or parameters to specify the distribution and type of doping. Please refer to the Silvaco Atlas TCAD user manual for more information on the syntax and usage of these keywords.
  • asked a question related to Syntax
Question
2 answers
Hi everyone,
I have conducted multigroup sem in JASP. I got measurement invariance test results that I expected. Now, I wonder to know how I can write the syntax showing constrained path to be equal in two groups. I could not find any explanations about it. Thank you for your answer
Relevant answer
Answer
Structural equation modeling (SEM) in JASP allows you to estimate SEM models for multiple groups. To write the syntax for a multigroup SEM model in JASP, you will need to specify which paths are constrained to be equal across the groups.
You can do this by indicating the equality constraints in the path diagram by adding the same label to the path in the different groups. You can use the constrain button in JASP to equalize the path in different groups.
Here is an example of how to write the syntax for a multigroup SEM model with a constrained path:
# Measurement Model
group = {group1, group2}
model {
for (i in 1:2) {
y1 by A1@1;
y2 by A2@1;
}
}
# Structural Model
model {
for (i in 1:2) {
A1 -> y1;
A2 -> y2;
}
# Constrain path A1->y1 to be equal across groups
A1@1 = A1@2;
# Constrain path A2->y2 to be equal across groups
A2@1 = A2@2;
}
  • asked a question related to Syntax
Question
1 answer
I would like to display all the output in #.###,## format. Currently all output is in the format ####,## i.e. for example 19248,34. I would like to display it as 19,248.34. I can edit the individual table by going into edit mode > right key > cell properties > format value but I don't know the syntax. In the images the current output format and the desired format. Thanks! Andrea
Relevant answer
Answer
You appear to be talking about formatting the cell counts in a contingency table created via CROSSTABS. I suspect you may be able to achieve what you want using the OUTPUT MODIFY command. See the TABLECELLS subcommand and keyword FORMAT.
HTH.
  • asked a question related to Syntax
Question
8 answers
I need to know what's going on inside a Fortran code which is not originally mine. I have a linux system and I tried the gdb debugger with some breakpoints but it didn't work( the compiler didn't compile it with -g).
I also tired using print for my variables in order to use them for plotting but after adding some lines of "print*, " syntax, the compiler again showed some errors and didn't show me any results.
I would be grateful if anyone can help me on this problem.
Relevant answer
Answer
Thanks a lot. I'll try it and see if it works.
  • asked a question related to Syntax
Question
1 answer
Respected Nick Papior,
Sir Iam using SIESTA v4.0.2
I want to fix electrode position in scattering region calculation. In manual of v4.0.2 SIESTA it is given as
%block GeometryConstraints
position from -1 to -8 # to fix atoms
%endblock GeometryConstraints
but when i tried this atoms are not fixing there respective positions.
i also tried many syntaxes to fix positions but nothing worked.
Any help will be highly appreciated.
Thanks & Regards
Shanmuk
  • asked a question related to Syntax
Question
3 answers
Hello, I currently have a set of categorical variables, coded as Variable A,B,C,etc... (Yes = 1, No = 0). I would like to create a new variable called severity. To create severity, I know I'll need to create a coding scheme like so:
if Variable A = 1 and all other variables = 0, then severity = 1.
if Variable B = 1 and all other variables = 0, then severity = 2.
So on, and so forth, until I have five categories for severity.
How would you suggest I write a syntax in SPSS for something like this?
Relevant answer
Answer
* Create a toy dataset to illustrate.
NEW FILE.
DATASET CLOSE ALL.
DATA LIST LIST / A B C D E (5F1).
BEGIN DATA
1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
0 0 0 0 1
1 1 0 0 0
0 1 1 0 0
0 0 1 1 0
0 0 0 1 1
1 0 2 0 0
END DATA.
IF A EQ 1 and MIN(B,C,D,E) EQ 0 AND MAX(B,C,D,E) EQ 0 severity = 1.
IF B EQ 1 and MIN(A,C,D,E) EQ 0 AND MAX(A,C,D,E) EQ 0 severity = 2.
IF C EQ 1 and MIN(B,A,D,E) EQ 0 AND MAX(B,A,D,E) EQ 0 severity = 3.
IF D EQ 1 and MIN(B,C,A,E) EQ 0 AND MAX(B,C,A,E) EQ 0 severity = 4.
IF E EQ 1 and MIN(B,C,D,A) EQ 0 AND MAX(B,C,D,A) EQ 0 severity = 5.
FORMATS severity (F1).
LIST.
* End of code.
Q. Is it possible for any of the variables A to E to be missing? If so, what do you want to do in that case?
  • asked a question related to Syntax
Question
3 answers
Hello, I currently have a set of categorical variables, coded as Variable A,B,C,etc... (Yes = 1, No = 0). I would like to create a new variable called severity. To create severity, I know I'll need to create a coding scheme like so:
if Variable A = 1 and all other variables = 0, then severity = 1.
if Variable B = 1 and all other variables = 0, then severity = 2.
So on, and so forth, until I have five categories for severity.
How would you suggest I write a syntax in SPSS for something like this? Thank you in advance!
Relevant answer
Answer
Ange, I think the easiest way for you to find an answer to your question would be to google something such as "SPSS recode variables YouTube". You'll probably find several sites that demonstrate what you want to do.
All the best with your research.
  • asked a question related to Syntax
Question
3 answers
I'm trying to translate the following line of Stata code into its equivalent SPSS syntax:
mixed outcome i.time c.age i.gender || id:, cov(unstr)
My understanding is that the equivalent SPSS syntax would be:
mixed outcome by time gender with age
/fixed time gender age
/random intercept | subject(id) COVTYPE(UN)
/print = solution
...and indeed, the two commands produce identical parameter estimates for the fixed effects. However, the parameter estimate for the _cons/Intercept term, standard errors and p-values they calculate are completely different. I would expect some variation in how these are calculated between programs, but this is to an unusual extent. Any thoughts?
Relevant answer
Answer
Hello Alice Wickersham. A couple of possibilities come to mind. IIRC, Stata's -mixed- command uses ML by default, whereas SPSS's MIXED command uses REML. So you'll have to decide which one of those you want to use, and modify one of the commands to use that one.
Also, IIRC, Stata's mixed command does large sample estimation by default--i.e., it reports z-tests and Chi2 tests. If you want it to report t-tests and F-tests instead, you have to use the dfmethod() option.
HTH.
  • asked a question related to Syntax
Question
4 answers
Hello,
I want to create the tertiles in SAS to organize my NRF variable into categories. I used the below syntax to do so but the problem is that the number of observations in each category is not similar. I am wondering if there is a potential error that I missed here.
PROC UNIVARIATE DATA=master2.NRF noprint;
VAR NRF;
WEIGHT WTS_M;
OUTPUT OUT=master2.NRFTertile PCTLPTS= 33 67 PCTLPRE=NRF_P;
RUN;
DATA master2.NRF;
SET master2.NRF;
IF NRF le ..... THEN NRFTertile=1;
ELSE IF NRF gt ..... AND NRF lt ..... THEN NRFTertile=2;
ELSE IF NRF ge ..... THEN NRFTertile=3;
RUN;
Thanks,
Elsa
Relevant answer
Answer
David Eugene Booth Thank you so much for the attachment and your reply.
  • asked a question related to Syntax
Question
7 answers
I think that when examining dyslexia in children, the emphasis should be on decoding, as when the child reads, it performs both alphabetic and semantic decoding of the text. ith other stages, morphosyntactic language levels
Relevant answer
Very interesting question. I am following it.
  • asked a question related to Syntax
Question
4 answers
Can anyone tell me the syntax in Mathematica or MATLAB for finding the Lyapunov exponents for five-dimensional and six-dimensional systems?
  • asked a question related to Syntax
Question
7 answers
Hello! My question concerns linguistics: I am looking for a method to measure recursion at the syntax level of natural languages. Are there any computerized instruments for this purpose? Which languages are they applicable to? I would appreciate any hint or publication on this issue!
Relevant answer
Answer
First any definition of a concept should follow a linguistic approach or theory in whose term you would define what recursion is. Then, an identification of the level at which you want to measure recursion is required.
As natural as it seems, recursion seems incalculable by observation. But, data may be limited to a certain number of languages in a certain type of texts. This may be a good beginning.
Regards
  • asked a question related to Syntax
Question
5 answers
I need to learn the syntax as a beginner.
Relevant answer
Answer
Initially I am practising on arty board which have internal XADC. I am able to give analog signal and able to display(debugging). But I have problem in finding the address of the stored sample. Basically I want to monitor those samples.
  • asked a question related to Syntax
Question
2 answers
Dear Professors, I have a question about my EMG data(The sampling frequency was 1500 Hz). The movement phase was different from one subject to another and had a different number of EMG data for each person. Now, how can I decrease the number of data to 100 data in each phase without changing in data Pattern for all subject's muscles (normalized to 100 data). Can I use the syntax"spline" for this goal or not? If yes, how should I use it? Please explain it. Best wishes Somayeh
Relevant answer
Answer
Somayeh,
EMG generally results from a bi-polar signal measurement of muscle activity with both positive and negative components as the activation occurs. As such, the signal is usually measured at a high frequency to pick up the signal's relative positive and negative directions. So merely downsampling or using a spline to decrease the number of samples will remove important parts of the signal.
That being said, the positive-negative parts of that signal are usually physiologically challenging, if not impossible, to interpret and what is often of more interest is the timing of increasing or decreasing muscle activation, which is correlated to the net amplitude of the signal as time progresses. Increased activation yields an increased EMG signal as more motor units are recruited via a more significant electrical signal.
Therefore, you should first use a moving root mean squared (RMS) window that takes the RMS of a certain number of samples (n) at a time and progresses to the end of the waveform. The RMS window process will then remove the positive-negative component of the signal and leave only information related to the modulating amplitude of the signal. In the more general signal processing realm, this is often referred to as "demodulation." After you have RMS windowed/demodulated your signal, you can simply use a spline filter or a standard downsampling/algorithm to get your data and your desired number of samples for your 100 data points for the complete movement phase for the individual.
Thor
  • asked a question related to Syntax
Question
2 answers
We are using the SF12 in our master thesis.
We would like to know what the exact difference is between SF12 v1 and v2?
We already found a syntax for v1, but we have used the second version and could'nt find a syntax for v2.
Is it possible that anyone can send us this syntax for the second version for SPSS (/excel)?
Thanks in advance!!
Relevant answer
Answer
Dear Heleen, did you find an answer to the question, what are the differences between the two versions?
Also would it be possible to receive the syntax for version 1?
Thank you so much in advance!
Kind regards, Johann
  • asked a question related to Syntax
Question
5 answers
Hi all,
I'm having trouble converting one particular variable in my dataset from string to numeric. I've tried manually transforming/recoding into a different variable and automatic recoding. I've also tried writing syntax (see below). The same syntax has worked for every other variable I needed to convert but this one. For all methods (manual recode, automatic recode, and writing a syntax), I end up with missing data.
recode variablename ('Occurred 0 times' = 0) ('Occurred 1 time' = 1) ('Occurred 2 times' = 2) ('Occurred 3+ times' = 3) into Nvariablename.
execute.
VALUE LABELS
Nvariablename
0 'Occurred 0 times'
1 'Occurred 1 time'
2 'Occurred 2 times'
3 'Occurred 3+ times'.
EXECUTE.
Thank you in advance for your help!
Relevant answer
Answer
Konstantinos Mastrothanasis, by introducing manual copying & pasting etc., you make reproducibility much more difficult. IMO, anything that can be done via command syntax ought to be done via command syntax. The basic code Ange H. posted will work for the particular values she showed in her post--see the example below. If it is not working, that suggests there are other values present in the dataset other than the ones she has shown us. But we are still waiting for her to upload a small file including the problematic cases.
Meanwhile, here is the aforementioned example that works.
* Read in the values Angela showed in her post.
NEW FILE.
DATASET CLOSE ALL.
DATA LIST LIST / svar(A20).
BEGIN DATA
'Occurred 0 times'
'Occurred 1 time'
'Occurred 2 times'
'Occurred 3+ times'
END DATA.
LIST.
* Recode svar to nvar.
RECODE svar
('Occurred 0 times' = 0)
('Occurred 1 time' = 1)
('Occurred 2 times' = 2)
('Occurred 3+ times' = 3) into nvar.
FORMATS nvar (F1).
VALUE LABELS nvar
0 'Occurred 0 times'
1 'Occurred 1 time'
2 'Occurred 2 times'
3 'Occurred 3+ times'
.
CROSSTABS svar BY nvar.
  • asked a question related to Syntax
Question
1 answer
How to define *fracture criterion, type = FATIGUE in the inp file and the different material constants. If one has an example of such syntax, i would appreciate that, thank you in advance.
Relevant answer
There is one for low cycle fatigue with the direct cyclic approach. The inp file can be found here:
  • asked a question related to Syntax
Question
1 answer
Hi everyone ,
I have a time series with a weekly seasonality (365 samples), and want to perform SARIMA in Eviews. Could anyone can help me to understand the estimate equation syntax for SARIMA(2,1,2)(1,1,0) with weekly seasonality?
Also should I have to use the differenced series or the actual series in the equation for the above SARIMA case.
ie, if my actual series is series 1, and the first difference is series 2 how can I write the equation for SARIMA(2,1,2)(1,1,0) with weekly seasonality
Thank you
Relevant answer
Answer
sophia.pwadam@stu.uccedu.gh @ Isaac mwinlaaru PHD
  • asked a question related to Syntax
Question
1 answer
Is there any easy to understand resource for network meta-analysis using Stata? I am looking for stata syntax for network meta-analysis.
Relevant answer
Answer
Part 6 in "Meta-Analysis in Stata: An Updated Collection from the Stata Journal" by T.M. Palmer and J.A.C. Sterne (2016) provides a good first step. The "help network" command in Stata is also useful. Cochrane also used to sponsor training at the University of Bristol for doing network meta-analysis using Stata but they may have switched to using R. That was a good course.
  • asked a question related to Syntax
Question
3 answers
I would like to include 90% CI for the estimate instead of the p-value, but I used Mplus to generate the standardized model results and I see that the syntax does not report confidence intervals, but "Estimate / S.E. /Est./S.E. and p -value".
Relevant answer
  • asked a question related to Syntax
Question
2 answers
I have tried several times to input ma-def2svp basis set in Gaussian Software but received a syntax error. I tried : custom=madef2svp .
ma stands for minimally augmented.
I would be very grateful if anyone kindly inform me the procedure.
Relevant answer
Answer
When your basis set is not on G16, you need to write the "gen" keyword on your command line instead of the basis set. Then you write the coordinates and finally, you put the info of the basis set for every atom involved. The info for every atom must be separated with four asterisks.
I will show you the format that you should follow along
%chk=water.chk
%mem=4GB
%nprocs=4
#p opt freq b3lyp/gen
(leave a blank space here)
Title Card Required
(leave a blank space here)
0 1
H 2.75003900 -0.15335800 -0.68738400
O 2.15041200 -0.17165800 0.06153800
H 2.01471800 -1.09859400 0.27260600
(leave a blank space here)
H 0
S 5 1.00
3.387000D+01 6.068000D-03
5.095000D+00 4.530800D-02
1.159000D+00 2.028220D-01
3.258000D-01 5.039030D-01
1.027000D-01 3.834210D-01
S 1 1.00
3.258000D-01 1.000000D+00
S 1 1.00
1.027000D-01 1.000000D+00
S 1 1.00
0.0252600 1.0000000
P 1 1.00
1.407000D+00 1.000000D+00
P 1 1.00
3.880000D-01 1.000000D+00
P 1 1.00
0.1020000 1.0000000
D 1 1.00
1.057000D+00 1.0000000
D 1 1.00
0.2470000 1.0000000
****
O 0
S 10 1.00
1.533000D+04 5.080000D-04
2.299000D+03 3.929000D-03
5.224000D+02 2.024300D-02
1.473000D+02 7.918100D-02
4.755000D+01 2.306870D-01
1.676000D+01 4.331180D-01
6.207000D+00 3.502600D-01
1.752000D+00 4.272800D-02
6.882000D-01 -8.154000D-03
2.384000D-01 2.381000D-03
S 10 1.00
1.533000D+04 -1.150000D-04
2.299000D+03 -8.950000D-04
5.224000D+02 -4.636000D-03
1.473000D+02 -1.872400D-02
4.755000D+01 -5.846300D-02
1.676000D+01 -1.364630D-01
6.207000D+00 -1.757400D-01
1.752000D+00 1.609340D-01
6.882000D-01 6.034180D-01
2.384000D-01 3.787650D-01
S 1 1.00
1.752000D+00 1.000000D+00
S 1 1.00
2.384000D-01 1.000000D+00
S 1 1.00
0.0737600 1.0000000
P 5 1.00
3.446000D+01 1.592800D-02
7.749000D+00 9.974000D-02
2.280000D+00 3.104920D-01
7.156000D-01 4.910260D-01
2.140000D-01 3.363370D-01
P 1 1.00
7.156000D-01 1.000000D+00
P 1 1.00
2.140000D-01 1.000000D+00
P 1 1.00
0.0597400 1.0000000
D 1 1.00
2.314000D+00 1.000000D+00
D 1 1.00
6.450000D-01 1.000000D+00
D 1 1.00
0.2140000 1.0000000
F 1 1.00
1.428000D+00 1.0000000
F 1 1.00
0.5000000 1.0000000
****
(leave a blank space here)
Hope this helps!
  • asked a question related to Syntax
Question
2 answers
What is the matlab
Relevant answer
Answer
There are several sources for defining matlab and matlab code. Particularly, you can read the definition of the Matlab code below:
Also, I found new source about Matlab for you pdf file. You can look. Siddharth Kamila
  • asked a question related to Syntax
Question
7 answers
Hello all,
I have a dataset which contains some couples and some single people. I want to keep all the singles and keep one person from each couple. Specifically, from the couples, I want to keep the person who has the highest score between the two partners on a specific variable.
I cannot figure out how to do this with syntax. Any advice would be greatly appreciated. Thank you!
Relevant answer
Answer
Hello Laurien Meijer. I think it is easier to tackle this with the data in the LONG format. E.g., suppose you have a variable called PairID that shows which pair each row belongs to. And suppose you want to keep for each pair the row with the higher age. This would do the trick:
* Save the max age for each pair as new variable age_max.
AGGREGATE
/OUTFILE=* MODE=ADDVARIABLES OVERWRITE=YES
/BREAK=PairID
/age_max=MAX(age).
* For each pair, keep the record with the higher age.
SELECT IF Age EQ age_max.
DESCRIPTIVES Age PairID.
Note that if both members of a pair have exactly the same age, both would be kept in the dataset. I don't know if that is possible for your data.
  • asked a question related to Syntax
Question
2 answers
I have ecological momentary assessment (EMA) data consisting of 3 daily assessments for 14 days. The 3 daily assessments are three individual 'items', for which taking a mean is appropriate.
At the row-level I can take the mean across the items, giving me 3 time-point specific means each day for each individual. If an individual is missing an item at any specific time point I can account for that using the "mean." syntax.
I want to aggregate all three within-day timepoints up to a daily mean using 'aggregate' in SPSS, but SPSS uses all the within-day timepoints to do so, even if one is missing. Does anybody know how to overcome this issue? I've tried the MISSING = COLUMNWISE command but that omits the entire day for anyone missing anything within day.
For example: (where TP = timepoint, and '.' = missing)
TP_MEAN TP_TOTAL AGGREGATED_VAR
T1 1 2 3 2 6 3.80
T2 3 2 4 3 9 3.80
T3 . . . . . 3.80
So for the daily mean I want (1+2+3+3+2+4)/6 (= 2.5)
but using AGGREATE (MEAN TP_TOTAL), SPSS is giving me 3.80, AND filling it in at the row level for T3 where there was no timepoint data.
Does anybody know how to fix this?
Thanks!
Relevant answer
Answer
Hi There David Morse
Thanks for your response, it is much appreciated! I think I realized from your reply that I need to restructure the data - it is in wide format in terms of the items but not in terms of the timepoints/days. After having banged my head against the wall for a while on this I am going to use R instead ;)
  • asked a question related to Syntax
Question
2 answers
I was trying to optimize an organoaluminium compound using the PBE0-D3(BJ)/def2-SVP level of theory. I have not used this theory before for my work. But after reading the Gaussian documentation and googling, I came up with the input like below -
PBE1PBE/Def2SVP EmpiricalDispersion=GD3BJ Fopt Freq=NoRaman
But Gaussian is throwing a syntax error in the basis set input. Can anyone help me with this issue?
The gaussian output message is attached below.
Relevant answer
Answer
Dear Aritra Roy ,
I think GD3BJ empirical dispersion was included in later revisions of Gaussian 09, so you should move either to not-so-old versions of G09 or directly to G16.
Hope you find it helpful
  • asked a question related to Syntax
Question
3 answers
A research was carried out on broiler chickens, which is divided into two phases (starter and finisher). However, during the finisher phase, the birds were not redistributed, thereby necessitating the application of analysis of covariance when analysing the performance parameters at finisher phase, whereby the initial weight (IW) will be the covriate variable. The analysis was carried out using SPSS in the past, and was quite straightforward. However using the proc syntax on SAS for this proves difficult. I used the;
Proc GLM;
Class Enzyme Level;
Model FW TWG Av_FI FCR DFI Survival = Enzyme Level IW;
LSMeans Enzyme Level / StdErr Pdiff Adjust = Tukey;
Run;
which makes use of LSMeans for mean adjustment, but the result obtained is same as that obtained without covariate, and also different from that obtained from SPSS.
Could anyone kindly help out on the correct syntax, and/or the interpretation for ANCOVA using SAS proc?
The result obtained from SAS proc is attached.
Thank you
Relevant answer
Answer
I believe your model is written incorrectly. The DV SHOULD BE ON THE LEFT SIDE OF THE = Sign. See the attached screenshot example.
Best wishes David Booth
  • asked a question related to Syntax
Question
8 answers
I am trying to do a transformation of a data set, while analyzing a certain data set, and I want to calculate the inverse of a certain variable set. Kindly let the know the syntax for calculating the inverse of a number in R
Relevant answer
Answer
It depends on what you mean by inverse.
For E.g. it could also be inverse <- 1/x
or
inverse <- -x
  • asked a question related to Syntax
Question
3 answers
Please help,
I ran a Battese and Coelli 1995 sfpanel model in Stata 12.1 of the following translog equation
sfpanel lny lnl lnm lne lnk lnksq lnlsq lnesq lnklnl lnmsq lnklne lnklnm lnllne lnllnm lnelnm year, model(bc95) dist(tn) emean( for for5 for10 for15 for20 for25 exp_firm firm_size) ort(o)
Aimed at establishing the effect of FDI on efficiency and productivity at firm level.
I wish to estimate TFP whose components are Technical Change(TC), Technical Efficiency Change (TEC) and Scale Efficiency Change (SEC).
  1. Can this be done directly in Stata?
  2. And what is the syntax considering the 4-input translog equation?
Thanks.
Relevant answer
Answer
bonjour je voudrai connaitre la commande pour décomposer la productivité totale des facteurs en efficacité technique et progrès technologique
  • asked a question related to Syntax
Question
5 answers
I have "QPErr --- A syntax error was detected in the input line" error in my gaussian. I am trying to use the model to see MO for a system containing C and Au.
I appreciate your guidance
Relevant answer
Answer
There are multiple problems in your gjf file:
1. The **** after lanl2mb for Au is missing. The **** should be present at the end of each set of basis set, even when it is the last one.
2. For Au, you must define both the basis set and the pseudopotential.
3. Never use 6-31G. Use 6-31G(d) instead. The d-functions are essential.
4. The molecule is two large (293 atoms). It is severely out of the scale of DFT calculations. Please reduce the size into less than 150 atoms.
5. There are a vast number of carbon atoms at the edge that do not have adequate valence bonds. Please saturate them with H.
6. In general, Au do not exhibit 1-coordination. Please carefully reconsider the reasons of making this molecular model.
7. LanL2MB is quite out of date. Please use LanL2DZ instead at least. The better choice is SDD.
The right way of defining the basis set is shown as below (comments are shown after !, and please remove them when you write an input file):
# b3lyp em=gd3bj genecp ! use genecp to set both the basis set and pseudopotential
(blabla)
-C -H 0
6-31G(d)
****
-Au 0
SDD ! set the basis set for the valence shell of Au
**** ! Don't forget this line
-Au 0 ! set the pseudopotential for the core electron of Au
SDD
! there is no more **** here in the pseudopotential part
  • asked a question related to Syntax
Question
5 answers
I am looking for the scoring information for the JSE and the paper that is cited. Even better if you have SPSS syntax.
Relevant answer
Answer
Thank you!
  • asked a question related to Syntax
Question
3 answers
I want to perform a protein-DNA-ligand complex simulation by gromacs. but my system contain two ligands named PTR and LIG. but when ever i am going to perform the energy minimization.
This is the content of the topology file:
;
; File 'Protein.top' was generated
; By user: arindam (1000)
; On host: localhost.localdomain
; At date: Mon Dec 24 16:49:35 2018
;
; This is a standalone topology file
;
; It was generated using program:
; pdb2gmx - VERSION 4.6.2
;
; Command line was:
; ./pdb2gmx -ff amber99sb -f duplex.pdb -o Protein2.pdb -p Protein.top -water tip3p -ignh
;
; Force field was read from the standard Gromacs share directory.
;
; Include forcefield parameters
#include "amber99sb.ff/forcefield.itp"
#include "PTR.itp"
#include "ligand.itp"
; Include chain topologies
#include "Protein_Protein_chain_A.itp"
#include "Protein_DNA_chain_B.itp"
#include "Protein_DNA_chain_C.itp"
#include "Protein_DNA_chain_D.itp"
; Include water topology
#include "amber99sb.ff/tip3p.itp"
#ifdef POSRES_WATER
; Position restraint for each water oxygen
[ position_restraints ]
; i funct fcx fcy fcz
1 1 1000 1000 1000
#endif
; Include topology for ions
#include "amber99sb.ff/ions.itp"
[ system ]
; Name
Grunge ROck MAChoS in water
[ molecules ]
; Compound #mols
Protein_chain_A 1
DNA_chain_B 1
DNA_chain_C 1
DNA_chain_D 1
PTR 1
LIG 1
SOL 46535
can anyone tell me the way out?
Best regards.
Relevant answer
Answer
Hello Sourav Pal
The directives in the .top and .itp files have rules about the order in which they can appear, and this error is seen when the order is violated. The include file mechanism cannot be used to  #include a file in just any old location, because they contain directives and these have to be properly placed.
In particular, "Invalid order for directive defaults" is a result of defaults being set in the topology or force field files in the inappropriate location; the [defaults] section can only appear once and must be the first directive in the topology.  The [defaults] directive is typically present in the force field file (forcefield.itp), and is added to the topology when you #include this file in the system topology.
If the directive in question is atomtypes (which is the most common source of this error) or any other bonded or nonbonded [*types] directive, typically the user is adding some non-standard species (ligand, solvent, etc) that introduces new atom types or parameters into the system. As indicated above, these new types and parameters must appear before any [moleculetype] directive. The force field has to be fully constructed before any molecules can be defined.
Hope it helps.
  • asked a question related to Syntax
Question
2 answers
comsol syntax for the velocity of a rotating cylinder.
Relevant answer
I wish you success
  • asked a question related to Syntax
Question
3 answers
I've studied for how to run 2 mediation and 2 moderators ( 1 for first stage, 1 for second stage) SEW in Mplus. However, the first stage moderator is a congruence variable which is consist of two variables (and each with four items to measure). Cheung (2009) suggested the way in LISERAL syntax, but I've only learned Mplus. Could anyone prove how the syntax of putting congruence variable as first stage moderator?
Relevant answer
Answer
You might want to check out Stride et al.'s (2015) excellent and very comprehensive Mplus syntax collection for various mediation & moderation models to see if you can find the syntax that you need:
  • asked a question related to Syntax
Question
3 answers
I am fairly new to syntax writing/coding and need to merge many excel files (with the same set of variables) into one SPSS dataset but it must be done with syntax. So far, all of the loops for completing this that I have found online require the Python Essentials extension which I cannot use as it will not download on a work computer. I assume I will need to use the CONCAT function to merge the files one on top of the other but how do I get SPSS to call on all the files in a folder and then merge them (as it would time consuming and not automated enough to use GET DATA for each individual file before merging)? Any ideas/solutions would be greatly appreciated! Thanks!
  • asked a question related to Syntax
Question
3 answers
Hi, all! I have recently used the AutoDockTools sofware. But it said that "added gasteiger charges found 44 aromatic carbons detected 0 rotatable bonds set TORSDOF to 0". And when I were doing the docking, the sofware mentioned " ATOM syntax incorrect: "As" is not a valid AutoDock type. Note that AutoDock atom types are case-sensitive." How could I figure it out? If someone else knows? Thank you very much!!!
Relevant answer
Answer
Thanks for all of you and I have tried many many ways like the answer provided, but don't figure it out. Still wait for the right way.
  • asked a question related to Syntax
Question
3 answers
I want the syntax.
Relevant answer
Answer
Here's an example (simple mediation model with one mediator m and two groups):
TITLE: multigroup path analysis
DATA: data.dat;
VARIABLE: NAMES ARE x m y;
GROUPING IS g (1=male 2=female);
MODEL: y on x m;
m on x;
OUTPUT: SAMPSTAT STDYX;
In this example, all 3 paths would be estimated separately/freely between groups. If you wanted the paths to be constrained equal across groups, you would have to change the MODEL statement as follows:
MODEL: y on x (c)
m (b);
m on x (a);
The labels (a), (b), and (c) tell Mplus to hold the path coefficients equal across groups.
If you wanted to obtain the direct, indirect, and total effects from x to y, you would add the statement
MODEL INDIRECT: y ind x;
to the MODEL command.
  • asked a question related to Syntax
Question
3 answers
Can we use endogenous switching regression model in analyzing impact of any intervention using R-software? if so, can any one tell me the syntax?
Relevant answer
Answer
BTW I forgot to say to be sure that you have the intervention coded on the RHS. Best wishes David Booth
  • asked a question related to Syntax
Question
5 answers
Can someone share their syntax for how to set the nested fixed effect in SPSS for the repeated measure MANOVA?
Relevant answer
Answer
Hello Hannah,
Can you be a bit more specific as to what your variables include (between, and within on the IV side; the DVs as well)?
Good luck with your work.
  • asked a question related to Syntax
Question
4 answers
My assignment is a space marching solution of the potential flow around a cylinder, using a code in Matlab. Once I have the grid generated using the meshgrid function, I need to apply the boundary conditions of the streamfunction psi to the boundaries of the grid, but I'm not sure how to code this.
However, I'm not sure the meshgrid function is necessarily the best method to use. Are there any other methods of generating a mesh type grid in Matlab?
I understand the theory behind it, bit its the syntax and coding which I am stuck with.
Any advice on how to code this would be appreciated.
Jack
Relevant answer
Answer
Thanks Saeb AmirAhmadi Chomachar for the reply, it has helped significantly.
  • asked a question related to Syntax
Question
1 answer
Hello,
I'm having some problems running PROCESS v 4.0 on my Mac, for SPSS v27.0.
I can get to the stage where I run the Syntax and it looks like it works. But then the PROCESS tab isn't actually available.
There aren't error signs that appear at any stage, so I was wondering if anyone else was having this issue, and whether there are any solutions to this problem?
Any help would be much appreciated.
Adam
Relevant answer
Answer
I work with SPSS ver. 25 (MAC) and SPSS ver. 28 (Windows) and have not detected any problems with the macro. As an alternative PROCESS you can use the free statistical package JASP, which has a specific module for mediation (https://jasp-stats.org/) or JAMOVI (another free software alternative available at https://www.jamovi.org/). If you have worked with R, PROCESS macro works correctly in this environment.
Best Regards
  • asked a question related to Syntax
Question
10 answers
I am carrying out a research on patients with sarcopenia related to fracture rate, using SF-12 version 2 as the QoL tool.
I was wondering if anyone is using the same questionnaire and calculate the scores using SPSS syntax? Thank you very much!
Relevant answer
Answer
Could someone send me the syntax of the sf12v2 for SPSS?
I try to get a license of SF12 version 2 scoring is very expensive. I would greatly appreciate it. Thank you very much. My email: sumikao@icn.usyd.edu.au
  • asked a question related to Syntax
Question
6 answers
I have executed a research to assess the performance among diagnostics kits. I could determine the statistical components except Cohen's kappa coefficient. Here I compiled my data in binary values [1=positive, 0=negative]. To check the agreements among data I am in a need of calculating kappa coefficient. If anyone could provide me with syntax to calculate kappa coefficient using either Python or R I would be much obliged and feel grateful.
Regards....
  • asked a question related to Syntax
Question
3 answers
In the current biolinguistics studies, the human language mechanism, viz., I-language ('i' stands for 'internal, individual and intensional') is regarded as the unique mental faculty of human being, hence, the language faculty. It can generate expressions for the internal abstract thinking activities, and the externalization of the generated expressions can be used for human communication. As a result, the distinction between I-language and externalization turns out to be more significant than had been realized until recently, as Chomsky recently points out. As for the design of computer, a laptop runs with an operative system, and is connected to other devices, such as a printer. That is to say, the message from the laptop can also be externalized as instructions for other systems. In this case, what are the similarities and differences in the designs of human language and a laptop?
Relevant answer
Answer
I think that you already pointed out an important similarity: laptops can somehow communicate with other devices, such as printers.
For me, the most important difference is that the laptop and printer can only exchange a limited set of 'communications', whereas human language can communicate an infinite number of different messages. Maybe you can say that for human communication you need intelligence, in order to understand and produce messages that have not been foreseen in advance.
  • asked a question related to Syntax
Question
21 answers
Referential and model-theoretic semantics has wide applications in linguistics, cognitive science, philosophy and many other areas. These formal systems incorporate the notion - first introduced by the father of analytic philosophy Gottlob Frege more than a century ago - that words correspond to things. The term ‘2’ denotes or refers to the number two. The name ‘Peter’ refers to Peter, the general term ‘water’ refers to H2O and so on. This simple idea later enabled Alfred Tarski to reintroduce the notion of ‘Truth’ into formal logic in a precise way, after it had been driven out by the logical positivist. Willard van Orman Quine, one of the most important analytic philosophers of the last century devoted most of his carer to understanding this notion. Reference is central to the work of people such as Saul Kripke, David Lewis and Hilary Putnam and many others.
Furthermore, the idea of a correspondence between whole expressions between, sentences or propositions and states of the world or facts drive the recent developments in philosophy of language and metaphysics under the label of ‘Grounding’ and ‘Truthmaking’ where a state of the world or a fact is taken to “make true” a sentence or a proposition. For example, the sentence “Snow is white.” is made true (or is grounded in) the fact that snow is white obtains. [1]
Given that this humble notion is of such importance to contemporary analytic philosophy, one may wonder why the father of modern linguistics - and a driving force in the field ever since the (second) cognitive revolution in the nineteen fifties - has argued for decades that natural language has no reference. Sure, we use words to refer to things, but usage is an action. Actions involve things like intentions, believes, desires etc. And thus, actions are vastly more complicated then the semantic notion of reference suggests. On Chomsky’s view then, natural language (might) not have semantics, but only syntax and pragmatics.
On Chomsky’s account, syntax is a formal representation of physically realized processes in the mind-brain of an organism. Which allows him to explain why semantics yields such robust results (a fact that he now acknowledges). What we call ‘semantics’ is in fact a formal representation of physically realized processes in the mind-brain of an organism – us. [2]
Chomsky has argued for this for a very long time and, according to him, to no avail. In fact, I only found discussion about this by philosophers long after I learned about his work. No one in a department that sides heavily on philosophy of language, metaphysics and logic ever mentioned Chomsky’s views on this core notion to us students. To be fair, some in the field seem to begin to pay attention. For instance, Kit Fine, one of the leading figures in contemporary metaphysics, addresses Chomsky’s view in a recent article (and rejects it). [3]
The main reason why I open this thread is that I came recently across an article that provides strong independent support to Chomsky’s position. In their article Fitness Beats Truth in the Evolution of Perception, Chetan Parakash et al. use evolutionary game theory to show that the likelihood for higher organisms to have evolved to see the world as it is (to have veridical perception) is exceedingly small. [4]
Evolutionary game theory applies the formalism originally developed by John von Neumann to analyze economic behavior and applies it in the context of natural selection. Thus, an evolutionary game is a game where at least two types of organisms compete over the same resources. By comparing different possible strategies, one can compute the likelihood for a stable equilibrium. [5]
Parakash et al. apply this concept to the evolution of perception. Simplifying a bit, we can take a veridical perception to be a perceptual state x of an organism such that x corresponds to some world state w. Suppose there are two strategies. One where the organism estimates the world state that is most likely to be the true state of the world. And another where the organism estimates which perceptual state yields the highest fitness. Then, the first strategy is consistently driven into extinction.
Now, compare this with reference: Some word (here taken to be a mental state) refers to a thing or a state of the world such that there is a one-to-one correspondence between the word and the world. It seems that this is an analogous situation. And thus, it should be equally unlikely that we have evolved to have reference in natural language. Any such claim needs empirical evidence and this is what Chomsky provides.
Chomsky’s main evidence comes from a test. I frame the test in terms of truthmaking. Consider the basic idea again:
  • The sentence A is made true (or grounded in) the fact that A obtains.
Now, if this is true, then one would expect that the meaning of A changes because the world changes. We take a fact to be something that our best scientific theories can identify. In other words we take the objective reality to be whatever science tells us it is. Then we systematically vary physically identifiable aspects of the world and see how the meaning of a term that is supposed to pic out these aspects changes. The hypothesis is that if there is reference or correspondence, then the changes on one side should be correlated with changes on the other side. If this is not the case, then there is no one-to-one correspondence between words and things, and thus, natural language is not related to the physical world.
I give three examples, often discussed by Chomsky, to illustrate how this works: Consider the term ‘water’, embedded in the sentence “The water flows in the river.” Then, what flows in the river should be H2O. Suppose there is a chemical plant upstream and suppose there is an accident. There may be very few H2O molecules left, but it is still a river, it’s still water. So, we have enormous change in the world, but no change in meaning.
Or suppose you put a teabag into a cup of water. The chemical change may be undetectable small, but if you order tea and you get water, you wouldn’t be amused. So, virtually no change in the physical world and clear change in meaning.
Last, consider a standard plot of a fairy tale. The evil witch turns the handsome prince into a frog, the story continuous and at the end, the beautiful princess kisses the frog and turns him back into the prince. Any child knows that the frog was the princess all along. All physical properties have changed, but no child has any difficulty to track the prince. What this suggests is that object permanence does not depend on the physical world, but on our mind-internal processes.
This test has been carried out for a large number of simple concepts, in all cases, there is no correlation between physically identifiable aspects of the world and words. Notice that the test utilizes a dynamic approach. Only if we look at changes we see what is going on.
So, counterintuitive as this may seem, the evidence from the test supports the argument from evolutionary biology that developing concepts that correspond to the world is no advantage at all. And so, we shouldn’t be surprised that this is what we find, once we look closely.
On the other hand, does this conclusively prove that there is no relation between our concepts and the physical world? Not really, after all, the logical structure of language is there, but it suggests that we should look at the mind for a connection between words and the world. If we want to show that language has reference in the technical sense.
Sven Beecken
  1. https://www.researchgate.net/publication/338557376_Ground_and_Truthmaker_Semantics
  2. Chomsky, Noam (2016). What Kind of Creatures are We? Columbia Themes in Philosophy. Columbia University Press.
  3. https://www.researchgate.net/publication/338549555_The_Identity_of_Social_Groups
  4. http://cogsci.uci.edu/~ddhoff/FitnessBeatsTruth_apa_PBR
  5. https://plato.stanford.edu/entries/game-evolutionary/
Relevant answer
Answer
I'm sorry I can't say anything about Chomsky's claims, but I'd like to try to add a few things to the discussion. Frege did not establish that words correspond to things but that it is possible to differentiate, within the meaning, between sense and reference; that is, "the morning star" and "the evening star" are two expressions that have different meanings (for example, because one alludes to morning situations and the other does not) but name, designate or refer to the same object or referent (the planet Venus). It must be said, however, that in order to metalinguistically affirm that these two expressions designate the same object, it is necessary to assume an ontology according to which what is seen in the morning and in the afternoon is the same thing; that is, when Cicero wrote De natura deorum, alluding to the morning star (Phosphorus, Lucero or Lucifer) and the evening star (Vesperus or Hespero) as two different entities, the Fregean distinction could have been made but not with these examples. What Tarski does - which to me has little to do with this semantic distinction - is to provide a criterion for any definition of truth in the "material" correspondence sense (in the sense of correspondence to extralinguistic reality), using a formula for expressions different level linguistic sentences (for a metalinguistic sentence and an object sentence): "X is true if and only if p", which is typically exemplified by the famous sentence "'Snow is white' is a true sentence if and only if snow is white". However, in the text itself, where he states that "truth" is a semantic term, he refers to "the truth" as if it were some kind of substance or entity and -fundamentally- as if it were the same as speaking of a term or a definition, which in my opinion rather obscures his claims. But, furthermore, since it can also be said " 'Nothing nothings' is a true sentence if and only if nothing nothings", it seems to me that the formula has much the aspect of a circular or tautological logical device and that, most importantly, which is to explain why a "material" sentence is true and what exactly it means to correspond to a fact precisely remains unexplained.
Also -and despite Chomsky's affirmations-, one must not confuse the thesis that natural language has no reference with the one that it does not describe in the material sense (that it does not describe facts that actually exist), because these affirmations are not equivalents. To speak of reference is to speak of language, and only of language. It can be said that a term or a sentence refers and that does not commit one to the affirmation that this referent exists beyond language, that it can be sustained or not. On the other hand, when it is affirmed that a thing exists or that an event occurs, we are not talking about language, but about a part of the extralinguistic reality that is assumed to exist. For example, and given the Fregean distinction, it can be said that the phlogiston theory refers, because the phlogiston theory is language and the reference is a semantic relation: the phlogiston is the object to which it alludes (its referent), and that in her the term "phlogiston" has a certain meaning, and to say at the same time that her affirmations do not describe any fact or any entity of the world (that phlogiston does not exist), and in the first case, from our metalanguage something is affirmed about a language object (the phlogiston theory) but when it is said that there is no entity in the world that is phlogiston, one is not talking about language and, therefore, nothing is being said about semantic relations. Now, the thesis that natural language does not have a descriptive function, or does not describe extralinguistic facts or entities and properties, has been confuted in various ways, fundamentally assuming different assumptions about its nature, for example, by pragmatist, neopragmatist arguments, by those who maintain that languages ​​are acts or actions, etc. In an article on the beginnings of the Vienna Circle, Carl Hempel says that the thesis that there could be a correspondence between language and facts was already rejected because they were things of a different nature between which there was an "abyss". Perhaps a quick way to express it is to say that there will always be an insurmountable metaphysical difference between the word table, with its meaning, and table, and for some authors that means that "correspondence" is impossible. If you want to complicate things further, a Kantian or neo-Kantian might say that correspondence with facts is impossible because at best there may be a correspondence with what appears to us as facts in the mind.
If we are talking about language, reference and correspondence with facts, it can be problematic to offer arguments that speak of perceptions or words as mental states, since there are several arguments that have opposed the thesis of the mental or internal nature of language natural, from the sciences considering that it is a system of (physical) signs that responds to certain rules and is intended for communication between speakers, and from philosophy authors such as Reichenbach or Carnap have considered that it is not mental, and even Karl Popper has been emphatic about it, considering that it is abstract in nature. Another way of understanding it is by thinking that natural language is a collective evolutionary product of a species of animals, that words and meanings existed before any of us, that we have simply learned to reproduce it in consciousness and use it. That is, is this a philosophy of language debate or a philosophy of mind debate? Thank you.
  • asked a question related to Syntax
Question
1 answer
Is there anyone who can provide me a mixed ANOVA model syntax for analysis of genotype X location X year data of RCBD and suggest to me which parameters are assumed to be fixed and random?
Relevant answer
Answer
Hello Gecho,
I dont have sorry.
Best,
  • asked a question related to Syntax
Question
2 answers
I have a database referring to a customer satisfaction survey with 500 respondents and 23 variables based on a linkert scale. I understand that the Rating Scale Model can be a good tool for evaluating research, I would like to know if anyone could recommend an R package or syntax to process this data.
Relevant answer
Answer
I need it too, Please if you get let me know
  • asked a question related to Syntax
Question
3 answers
Fatal error: Syntax error - File CHL.itp, line 7 Last line read:'[ atomtypes ] '
Invalid order for directive atomtypes.
During the energy minimization step, I've obtained this error when I'm running protein-ligand Simulation in Gromacs. I've prepared the ligand topology through CHARMM27 using the SwissParam web server. However, I've tried to solve this error using the following link
Still, I've not found any way to solve this. Kindly help me to fix the above error
Relevant answer
Answer
Hello,
I checked the topol.top where the forcefield parameters lines in top while in older version the force field parameters defines in last section of topol.top
so you have to define your ligand .itp in below forcefield parameters lines.
ex.
; This is a standalone topology file
;
; Created by:
; :-) GROMACS - gmx pdb2gmx, 2020.4 (-:
;
; Executable: /apps/GROMACS/2020.4/bin/gmx_mpi
; Data prefix: /apps/GROMACS/2020.4
; Working dir:
; Command line:
; gmx_mpi pdb2gmx -f protein.pdb -o complex.gro -ignh
; Force field was read from the standard GROMACS share directory.
;
; Include forcefield parameters
#include "charmm36-feb2021.ff/forcefield.itp"
#include "AW_GMX.itp"
.....
[ molecules ]
; Compound #mols
Protein_chain_A 1
LIG 1
SOL 13404
  • asked a question related to Syntax