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

Estout table with multiple univariate regression models

I am trying to create a table with multiple univariate regression models with estout. I've been able to create a table with multiple models, but only if each subsequent model adds on an additional...

View Article


Test for heteroskedasticity for a panel data (random model)

Hi everyone, I am doing a panel data analysis using a random effect model. Do you know how can I test for heteroskedasticity for a random model? Thank you, in advance, for your patience and help. Best...

View Article


option ytitle in line commands

Does anyone know why I am having problems including the option -ytitle- in the graphs below? : . line ppc anomes, ytitle ("% PC") title("Taxa de Partos Cesareos") "% PC invalid name r(198); end of...

View Article

CFA & SEM analysis of panel data

Hi there. I am looking for some help around CFA (Confirmative factor analysis) & SEM analysis of panel data. I am writing my master thesis around how to best onboard new employees into...

View Article

initial value estimation for NL

I have a loop in Stata14.0; forval i=1/342 { nl ( lnY = ln({b0=1}*A + {b1=0.9}*A^2 + {b3=0.9}*A^3)) if gr==`i' outreg using test.doc,eq_merge se rtitles(`i') append replace predict r_`i' if gr==`i',...

View Article


How does STATA treat missing values of variable

Hello, I am interested in how STATA treats missing values. For example with a database like this: number: return: 1 0,1 2 0,5 3 . 4 0,05 5 0,1 At number 3 there is no return given. What is STATA doing...

View Article

Interpreting marginal effects for logged variable

Hello, I am running a logit model and i have a variable in my analysis that measures population, I am using a log of population, but I am having trouble interpreting this when i run the margins...

View Article

Finite population correction for PSUs sampled with certainty

Hi fellow Stata users, I’m running analysis on a dataset that employs a complex survey design and which samples a large portion of a population, indicating that I should use a finite population...

View Article


Problem with Spatial Weight Matrix for spreg

Hello everyone, I'm working with Stata 13.1 and created a spatial weight matrix using spmat. In the next step, I merged a dataset with the attribute data of the shapefile with another cross-section...

View Article


If condition to define observation count

Hello, I want to add an if-condition that checks if there are e.g. 60 observations available. If there aren`t 60 observations for a special variable I want to add an else. If it`s not clear what I want...

View Article

Imputation please help

Dear all: I am working with data from a large cohort study in which participants were asked, retrospectively, about their work history. Data are structured such that there is one observation (row) per...

View Article

Do I need to use the svyset command to control for clustering? - Small number...

I am doing a mulivariable regression to assess which variables are associated with my outcome. Data were collected from 3 schools thus I have 3 PSUs. My question is: is it necessary to control for...

View Article

Plotting smoothed tide charts with -twoway-

Hello, I am seeking to create a twoway graph of date/time vs. tide height, in which the data points are connected by a smooth "roller-coaster" line. Is this possible? The data structure is: : day ht...

View Article


high dimensional matrices in Mata

I am wondering whether there are high dimensional matrices in Mata. Right now I can just use pointer for high dimensional matrices. I think high dimensional matrices are quite essential for matrix...

View Article

Balancing Panel

Any recommendations of how to balance panel data? My dataset has monthly information about infrastruture per hospital for 2006-2013. I would like to keep only the hospitals form whom I have information...

View Article


Instrumental varibale regression and survival analysis

Hello I am working on a cancer database looking at the impact of a treatment on survival. I am using the quantiles of ratio of treament usage by region as my instrument(IV). So far in term of comands I...

View Article

Should I use time fixed effects and a lagged independent variable in the same...

Hello, I have a panel data model in which I run fixed effects and yearly time fixed effects (1994-2012). Theoretically, my model calls for the inclusion of a lagged independent variable, which I have...

View Article


How to run DID after psmatch2

Dear all I need to run a difference-in-difference analysis using propensity score matching. I have two groups of treated and untreated firms. The event year is 1991, therefore I match treated and...

View Article

clogit

Hello, I am running this regression: clogit fundvotefordumm ownersfivepercentpctg insiderspctg frac_tna_t FfracCompHeldCRSP_t numberfundsvotingfrac ISSCtm1disclosedcompensationM ceopayslicetm1 roatm1...

View Article

May not label .

This post probably targeted at Stata developers, but is posted here for public discussion as well: The following produces an error 198 "May not label ." : label define dottest . "is a dot" However the...

View Article
Browsing all 73269 articles
Browse latest View live


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