Quantcast
Channel: Statalist
Browsing all 73297 articles
Browse latest View live
↧

Plot predictions after xthreg

Hello Statalist, I have experimental panel data und used xthreg to estimate a threshold function (with one threshold). Here is the output (it looks good and somehow as expected): Array I now would like...

View Article


ttest result and asdoc table not agree.

Hi all, I am getting problem with results in asdoc table, p-values in the Word file not agree with stata output. example: Code: clear all set more off sysuse auto *ssc install asdoc ttest price,...

View Article


Calculate total/collapse part of the values of one variable based on values...

Dear All, In my dataset I have a categorical variable with different sub-categories: Code: A1 A2 A3 A4 B1 B2 C1 C2 C3 I have several other variables (var1 var2 var3...) with numeric values...

View Article

Panel data interpretation

I need to analyze how returns to education have changed based on major selection overtime using panel data. The panel data I have surveyed the respondents in 1992 and then again in 2012. I do not...

View Article

wrapping up using lines of codes in a loop

Hi, How can I wrap up the below code in a loop? Best, Nader gen n=_n gen sample=_n replace sample=1 if n<=1000 replace sample=2 if n>1000 & n<=2000 replace sample=3 if n>2000 &...

View Article


installing an ado file

Can anyone guide me on how to install an ado file? I'm using stata 14.2 in Mac. Here is the file http://tabout.net.au/downloads/main_version/tabout.txt

View Article

operating sums of columns

I guess this is about using stata as a very basic calculator--but I really need it to go that way. I have four variables, ses1-ses4, each records the number of participants who participated in 1,2,3,4...

View Article

Transition analysis

Hi I want to do a transitional analysis. I have the following transition periods that is 1. No morbidity to mild morbidity 2. Mild morbidity to severe morbidity 3. Mild to No morbidity 4. Severe to No...

View Article


API from Alpha Vantage. How to download and organize data in Stata?

Hi, I would like to download data via API. I am using the website Alpha Vantage. I have gotten my API key and I also have a sample of the JSON output that I enclose at the end of the message in case...

View Article


testing for adjustment parameters (alpha coefficients) in a VECM

Hi Statalisters, I'm running a VECM on data coming from a dataset with 87 obs regarding two variables over some years observed on a unique statistical unit (quarterly data). More specifically the...

View Article

Matching Case and control data by age and sex

Hello, I have two datasets 1 containing treatment/case data and the other containing potential controls. I need to match potential control to the cases but I need the output to look a certain way. I...

View Article

linear regression

Hi all, I conducted a linear regression where the dependent variable (measured as a percentage) is squared root transformed. The independent variables are categorical. See below for the syntax generate...

View Article

Difference in Difference model of the effect of minimum wage on unemployment

Hello, Can I please get help for building my model for the effect of minimum wage on unemployment. I want to analyse the difference between two US states one that raised its minimum wage and one that...

View Article


Testing instrument validity - ordered probit

Hi, I am looking at the relationship between financial inclusion and poverty. my dependent variable is income quintile (inc_q) which is an ordinal variable and i have some control variables along with...

View Article

xtset an tsset

Hi! For the construction of a certain variable, I have to do following calculation: Code: generate capitalexpenditure = (c21_28-L.c21_28+c630)/c20_58 It is a dataset which includes various financial...

View Article


graph bar with controls

Hello - For a paper submission, I want to display a graph bar after a multivariate linear regression, with the dependent variable (racism) on the y-axis and the independent variable (religino) on the...

View Article

sort may not be combined with by

Hi, Using the below current code, I could generate my desired output. That is the 95% credible interval for my variables of interests consiting of HLE_ ULE_ TLE_ PLE_. I would like to run this code by...

View Article


Penalized Quasi-Likelihood for Mixed linear model

Is it possible to use Penalized Quasi-Likelihood estimation for GLMM model ? I found the meglm glm and related command all uses Lap or AGQH for estimation, but no one contained the PQL, is there any...

View Article

compare incidence rate among three groups

Dear colleagues. I already have definided the failure event (DEAD) and time variable (TIME), and I have three groups with different treatment (groups 0, 1 and 2; variable GROUP). I calculated the...

View Article

Removing Blue Character Values

Hi, I am struggling at the moment with two -probably basic- issues. 1. I am working on the Italian dataset which collected the results of the PIAAC questionnaire (a research of the OECD). The majority...

View Article
Browsing all 73297 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>