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

Is Stata's C function ST_var_is_string returning the wrong values, or is my C...

I have this C code: Code: #include <stdio.h> #include "stplugin.h" STDLL stata_call(int argc, char *argv[]) { ST_boolean b; int i; for (i = 1; i <= SF_nvars(); i++) { b = SF_var_is_string(i);...

View Article


Generating random variable from 95% confidence interval

Hello, I would like to randomly generate a variable from the 95% confidence interval of a normally distributed variable. I've had no luck finding any suggestions so far. Any suggestions? Thanks in...

View Article


Possible misspecification in gravity model (PPML, RESET test)

Dear all, Brief overview: I' m trying to estimate the impact of intrawar presence(1) interwar presence(2) and economic sanctions(3) on exports, using a gravity model. When it comes to estimate gravity...

View Article

number of obs in mixed effect model, panel data

Hi, I have a data set of 4,500 children's' weight status and their lifestyle behaviors and two waves (baseline and follow-up) are included. Now I am trying to examine the relationship between weight...

View Article

multiple imputation, variance

Dear all, I have dataset which contains multiply imputed values (5 implicates) and survey weights & I am trying to estimate the standard deviation for the regressors using Rubin's combination...

View Article


New Stata Module to Estimate Shirley Almon Generalized Polynomial Distributed...

TITLE 'ALMON': Module to Estimate Shirley Almon Generalized Polynomial Distributed Lag Model DESCRIPTION/AUTHOR(S) almon estimates Shirley Almon Polynomial Distributed Lag Model for many variables with...

View Article

Creating a table showing number of unique subjects seen by each of several...

Hello, The short code below will simulate data and create a report showing how many subjects seen per care provider, where some subjects have seen multiple providers, and some subjects will have seen...

View Article

Image may be NSFW.
Clik here to view.

Question: how to select several variables date1, date2, date3, ..., dateX at...

Hi Stata Masters, Before I post my question, I would like to inform that I'm quite new with Stata and English is not my mother language. Please apologize if you find my questions or English is weird....

View Article


GMNL model

Dear STATA users, I am trying to run a GMNL model using this commands: gmnl choice rand(espresso highcalories italy highprice) group(setid) id(id) nrep(100) but I got this message: "factor variables...

View Article


Using file command to link Stata with LaTeX

Hello everyone. Basic stuff: I'm using a Mac, Stata/MP 13.1 version, and this is my first post. Well, the basic idea is that I want to link Stata outputs automatically to LaTeX (for my dissertation)....

View Article

Difference in difference example

I want to apply DID method on a economic problem. I would like to estimate the effect of financial constraints (if there is any) on investment. I want to be sure I have done everything right so I will...

View Article

Descriptive stats for analyzed sample -- different Ns for xtregar but not xtreg

Hello Following a previous forum answer, I used the e(sample) method to get statistics on an analyzed panel sample. Since it was a panel sample, I also wanted to collapse by participants since I was...

View Article

How to save the coefficients on a mode;

Dear Statalist I have this this model which will be run for each firm in each industry every year y= a+Bx1+B2x1+B3x3+e how can I save the the estimated coefficients B1,B2 &B3of this model to use it...

View Article


Image may be NSFW.
Clik here to view.

Recoding

Dears, We have a large dataset (panel). For each observation (individual) in the dataset we have industry code 1 and industry code 2. But industry code 2 have missing values so does industry code 1,...

View Article

multicollinearity test

Dear all, How can I test multicollinearity with survey data? I have tried: display "tolerance = " 1-e(r2) " VIF = " 1/(1-e(r2)) but it returns: tolerance = . VIF = . Thank you in advance. BR

View Article


Please help: Error r(2000) when running svy logistic

Hello, I am using Stata/1C 12.0 and have been having some difficulty running svy logistic. I would greatly appreciate any help. I am able to run the model no problem using: svy: logistic outcome mode...

View Article

j-1 or j number of IMR after mlogit

Hello! I am trying to estimate treatment effect (endogenous switching regression) using multinomial selection equation with three treatment categories . I have in fact tried to browse regarding the IMR...

View Article


New command calculating sf12 version 2

Hi Thanks to Kit Baum a new command -sf12- is present at ssc. It calculates the sf12 version 2 as described at Mr Hays homepage. Have fun!

View Article

How can i reset normal menu view?

Hi everyone and Merry Xmas! I have a big problem with my menu view! Evrything is written in capital letters and i would like to reset it to default! Any suggestions? Thank you

View Article

Alphas from dummy variables

Hello, I have a question about my regression running in STATA. At the moment my model is Gearing ratio= a + a1*Public+ a2*DebtCrisis + b1LNStructure-Aggregate + b2 Structure-Aggregate*Public +...

View Article
Browsing all 72769 articles
Browse latest View live


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