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

Polynomial Regression Plots

I ran the following regression (sample data below): Code: xtreg lngdp i.iso3 tmean tmeansq pmean pmeansq lnpop The results are the following (country fixed effects absorbed). Code: tmean | .0082621...

View Article


appropriateness of graphing survival curves after cox regression of...

Hello, I have a general question. I conducted a survival analysis using a multivariable Cox regression. Suppose that the variable of interest is dichotomous and time-varying (such as before and after...

View Article


Including Sample Sizes in Bar Graphs Chart

Hi, I am trying to create a bar graph using the following code: Code: graph bar (mean) twpcnhomicides, over(ldlvl) /// subtitle("Average Annual Homicides Per 100,000""by Liberal Democracy Level") ///...

View Article

Problem with the probit regression that "psmatch2" estimates

Dear Statalist, I am confused because of the output I am getting out of the command psmatch2. Specifically, I wanted to get the same result for the probit model that the command uses for estimating the...

View Article

Creating new variables from dates

Hello, I have a large dataset made up of transmissions from wifi-enabled scales. Each participant has a unique ID with multiple corresponding transmission dates. I am trying to create new variables...

View Article


problem with if command

I'm trying to restrict my regression to observations where the variable wageindex does not equal 26.82. for some reason stata is not registering any observations with wage index of 26.82 though I know...

View Article

Problem with import delim, values usually separated by commas, sometimes by...

Apologies if this has been asked before; I couldn't find a similar situation: I'm developing a do file to take CSV's from our information management system, merge them into one large database, and...

View Article

How to run first and second stage regression?

I want to run first and second stage regression as defined in the picture. How can I run that? I am attaching here my model in picture format if someone could help me in this regard. Array

View Article


Survival analysis question

Hello, I did a survival analysis (and are fairly new to that stuff) with the coxph model where I tested two different drugs, each tested in two age groups: Model1: Drug A - Age1 and Age2 Model2: Drug B...

View Article


Identifying duplicates which are not system duplicates

Hello In my dataset, I have, let's say: ID Name Birthday 9559 Jose Tadeu Silva 1960-08-25 9560 José Tadeu Silva 1960-08-25 9561 Maria dos Santos 1960-08-25 What is the best way to identify duplicates...

View Article

MarkDoc (GitHub) bug on Windows: markdocstyle sometimes creates a tex file...

MarkDoc (GitHub) version 3.9.5 seems to have a new small bug on Windows. That is, the subprogram markdocstyle.ado sometimes creates a tex file with an unintended line break or omits comments in double...

View Article

Missing SE estimates in -mixed-?

Hi, I was running -mixed- on a clinical sample, and I noticed that the random effects parameters did not attribute much variance to r.time and was actually did not report an SE estimate(and...

View Article

droping observations that are not whole numbers

is there a way to drop observations that are not whole numbers? I want to drop all observations that have a decimal point.

View Article


numbering string variables

I would like to give each unique string a numeric identifier so I can use it for my panel variable in xtset. how can I do this? here is a sample of the variable Code: * Example generated by -dataex-....

View Article

Arellano-Bond test and coefficient estimates in GMM

Hi statalisters, I have a question for you. When I analyse an ECM panel model and I try to specify a GMM-diff and GMM-sys model, it's more important that I choose instruments in order to obtain:no...

View Article


Technical/conceputal question about calculating Cohen's d after -margins'.

Hello Everyone, We are conducting research that is exploring the difference in recovery trajectories for persons with schizophrenia and persons with bipolar disorder. Over two years, we gathered...

View Article

log-differences in a log-log regression

Dear Stata people, i have the following problem i want to measure in a log log regression the effect of differences in growth rates on the dependent variable gdp per capita growth. And to be able to do...

View Article


Polychoric output

I am trying to produce a LaTex table from a polychoric correlation matrix. Any ideas on how to do it will be much appreciated.

View Article

Merging Data

Hi, I'm having trouble merging one data set with another. For example, I have one file "Student Birthdate Data" and I'm trying to merge with "Student Program Data" using the student ID number as the...

View Article

Problem with fixed effects (time invariant dummies not dropping out)

I'm running a fixed effects model and for some reason my time invariant variables aren't dropping out. These variables are coded 0 or 1. I only have about 1000 observations so I've been sorting them by...

View Article
Browsing all 65029 articles
Browse latest View live


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