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

Counting observations and doing it for a different value of the variable

Hello, I have data that is separated by entity and each entity by municipality. It contains information of individuals such as age, school level, economic activity, among others, and I would like to...

View Article


entropyetc available from SSC

With thanks as always to Kit Baum, I flag that a new program entropyetc is available from SSC for Stata 11.2 up. The name entropyetc should be parsed "entropy, etc." and flags that it calculates...

View Article


Error with user written program grc1leg. It produces 3 legends instead of 1...

Hi at all. I try to use grc1leg with margins plot. I have the strange error, that I get 3 in stead of 1 legend. I tried to create an example, that closely follows my data, but I cannot manage with the...

View Article

Simulating data for students

Hi all, I was hoping someone could help me with the code to simulate some data. I am a professor and I want to simulate some data to teach students how to analyze epidemiological data- a...

View Article

Can't input date in Stata. SRF from HRF

Hello everyone! I'm running into this really really annoying problem. I'm trying to import this column in STATA which contains the date However,, I can't seem to input it inside STATA while using any...

View Article


Repeated measusres Logistic regression

Hello everyone, I am performing a logistic regression model where I try to predict the probability of winning from a series of chess players However, each player is followed several times in all...

View Article

Simple question regarding generating variable

Hi, I have a simple question regarding generating a new variable, but I don't know how to solve it. I want to generate a new variable (var3) which creates 2 values: a 0 if var1==0 and a 1 if var2>0....

View Article

Lincom/test using estimates from two independent samples?

Hi, I would like to test if the unconditional mean of outcome Y from one sample is equal to the linear combination of a regression estimate (i.e., partial effect of X on Y) in a different sample. Below...

View Article


Replacing data in a panel data set

Hey guys, with a lot of learning-by-doing, I have created a (tremendously dirty) panel dataset. Now I need to adjust it and turn it into shape in order to analyze it. My indicator variables are company...

View Article


Do-File to word document

Dear Statalist-Users, Is there a possibiltiy to transfer the do-file itself to a word document? I only found instructions for transfering the results. Thanks for your help in advance!

View Article

iter not concave question

Dear Statalisters, A while ago I ran into the not concave error while running a negative binomial regression. I received several very good alternatives of one of the forum members. However, I found out...

View Article

Irt

Hi I'm estimating a irt grm in stata and I wantde to do a likelihood ratio test. It is possible? How? Thanks.

View Article

How to code missing values after using -encode- on a string variable?

I have a number of variables that are in string format but lend themselves to being numerically coded. There are a number of missing values that were originally coded as -9, -10, 999. I used the...

View Article


Help me understand spline "nl" formula

Hi all, This is my first post. I am a very junior researcher new to stata. I'm trying to use "nl" to estimate the knot and the best tutorial available to me is...

View Article

Compute average annual growth rate in Stata

Hi all, I'm totally new to Stata and this is my first post in this forum :-). I have the following problem: I have a Data set in the form of Country Year (GDP/capita)( Labor force,total) Gross fixed...

View Article


Collapsing individual records' dates into a range

id_number grouping date 12345 A 01mar2015 12345 A 02mar2015 12345 A 03mar2015 12345 A 06jun2015 67890 A 09sep2015 67890 B 11nov2015 67890 B 12nov2015 67890 B 13nov2015 67890 A 14nov2015 I apologize in...

View Article

Simple Program: How to store different arguments from a loop in one local

Hello, I am new here and I have a question regarding a simple program and searching with google did not help me. I want to write a program wich calculates the product all odd numbers i give to it as...

View Article


Panel Regression, Fixed Effects, problems with normality and skewness (part 2)

Hi everyone, a few days ago I posted this topic: http://www.statalist.org/forums/foru...rust-the-tests Basically asking if I could trust the results of the regression analyzis. Mr. Lazzaro was kind...

View Article

Interpreting XTMIXED output

Hello, I am using XTMIXED command of STATA version 12.0 in order to analyse whether or not participants in two groups show differential improvement in two treatment condities over the course of time (3...

View Article

How can I check if two string variables contain the same content?

I have 2 string variables of which I want to compare the content. I want to know if the content is exactly the same or not. I wanted to include a snippet via dataex but it returned the error 'data...

View Article
Browsing all 65136 articles
Browse latest View live